1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2013 Gumstix, Inc. - http://www.gumstix.com/
6 #ifndef __CONFIG_PEPPER_H
7 #define __CONFIG_PEPPER_H
9 #include <configs/ti_am335x_common.h>
12 #define V_OSCK 24000000 /* Clock output from T2 */
13 #define V_SCLK (V_OSCK)
15 #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
18 #define CONFIG_MACH_TYPE MACH_TYPE_PEPPER
20 #define CONFIG_EXTRA_ENV_SETTINGS \
21 DEFAULT_LINUX_BOOT_ENV \
24 "fdtfile=am335x-pepper.dtb\0" \
25 "console=ttyO0,115200n8\0" \
28 "mmcroot=/dev/mmcblk0p2 rw\0" \
29 "mmcrootfstype=ext4 rootwait\0" \
30 "mmcargs=setenv bootargs console=${console} " \
33 "rootfstype=${mmcrootfstype}\0" \
34 "bootenv=uEnv.txt\0" \
35 "loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
36 "importbootenv=echo Importing environment from mmc ...; " \
37 "env import -t ${loadaddr} ${filesize}\0" \
38 "mmcload=load mmc ${mmcdev}:2 ${loadaddr} ${bootdir}/${bootfile}; " \
39 "load mmc ${mmcdev}:2 ${fdtaddr} ${bootdir}/${fdtfile}\0" \
40 "loaduimage=fatload mmc ${mmcdev}:1 ${loadaddr} uImage\0" \
41 "uimageboot=echo Booting from mmc${mmcdev} ...; " \
43 "bootm ${loadaddr}\0" \
44 "mmcboot=echo Booting from mmc ...; " \
46 "bootz ${loadaddr} - ${fdtaddr}\0" \
47 "ubiboot=echo Booting from nand (ubifs) ...; " \
48 "run ubiargs; run ubiload; " \
49 "bootz ${loadaddr} - ${fdtaddr}\0" \
51 #define CONFIG_BOOTCOMMAND \
52 "mmc dev ${mmcdev}; if mmc rescan; then " \
53 "echo SD/MMC found on device ${mmcdev};" \
54 "if run loadbootenv; then " \
55 "echo Loaded environment from ${bootenv};" \
56 "run importbootenv;" \
58 "if test -n $uenvcmd; then " \
59 "echo Running uenvcmd ...;" \
62 "if run mmcload; then " \
65 "if run loaduimage; then " \
70 /* Serial console configuration */
71 #define CONFIG_SYS_NS16550_COM1 0x44e09000
73 /* Ethernet support */
74 #define CONFIG_PHY_RESET_DELAY 1000
78 #endif /* __CONFIG_PEPPER_H */