2 * Copyright (C) 2013 Gumstix, Inc. - http://www.gumstix.com/
4 * SPDX-License-Identifier: GPL-2.0+
7 #ifndef __CONFIG_PEPPER_H
8 #define __CONFIG_PEPPER_H
11 #include <configs/ti_am335x_common.h>
13 #undef CONFIG_BOARD_LATE_INIT
14 #undef CONFIG_SPL_OS_BOOT
17 #define V_OSCK 24000000 /* Clock output from T2 */
18 #define V_SCLK (V_OSCK)
20 #undef CONFIG_SYS_PROMPT
21 #define CONFIG_SYS_PROMPT "pepper# "
24 #define MACH_TYPE_PEPPER 4207 /* Until the next sync */
25 #define CONFIG_MACH_TYPE MACH_TYPE_PEPPER
27 #define CONFIG_ENV_SIZE (128 << 10) /* 128 KiB */
28 #define CONFIG_ENV_IS_NOWHERE
30 #define CONFIG_DISPLAY_CPUINFO
32 #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
33 #define CONFIG_EXTRA_ENV_SETTINGS \
34 DEFAULT_LINUX_BOOT_ENV \
37 "fdtfile=am335x-pepper.dtb\0" \
38 "console=ttyO0,115200n8\0" \
41 "mmcroot=/dev/mmcblk0p2 rw\0" \
42 "mmcrootfstype=ext3 rootwait\0" \
43 "mmcargs=setenv bootargs console=${console} " \
46 "rootfstype=${mmcrootfstype}\0" \
47 "bootenv=uEnv.txt\0" \
48 "loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
49 "importbootenv=echo Importing environment from mmc ...; " \
50 "env import -t ${loadaddr} ${filesize}\0" \
51 "mmcload=load mmc ${mmcdev}:2 ${loadaddr} ${bootdir}/${bootfile}; " \
52 "load mmc ${mmcdev}:2 ${fdtaddr} ${bootdir}/${fdtfile}\0" \
53 "loaduimage=fatload mmc ${mmcdev}:1 ${loadaddr} uImage\0" \
54 "uimageboot=echo Booting from mmc${mmcdev} ...; " \
56 "bootm ${loadaddr}\0" \
57 "mmcboot=echo Booting from mmc ...; " \
59 "bootz ${loadaddr} - ${fdtaddr}\0" \
60 "ubiboot=echo Booting from nand (ubifs) ...; " \
61 "run ubiargs; run ubiload; " \
62 "bootz ${loadaddr} - ${fdtaddr}\0" \
64 #define CONFIG_BOOTCOMMAND \
65 "mmc dev ${mmcdev}; if mmc rescan; then " \
66 "echo SD/MMC found on device ${mmcdev};" \
67 "if run loadbootenv; then " \
68 "echo Loaded environment from ${bootenv};" \
69 "run importbootenv;" \
71 "if test -n $uenvcmd; then " \
72 "echo Running uenvcmd ...;" \
75 "if run mmcload; then " \
78 "if run loaduimage; then " \
83 /* Serial console configuration */
84 #define CONFIG_CONS_INDEX 1 /* UART0 */
85 #define CONFIG_SERIAL1 1
86 #define CONFIG_SYS_NS16550_COM1 0x44e09000
88 /* Ethernet support */
89 #define CONFIG_PHY_GIGE
91 #define CONFIG_PHY_ADDR 0
92 #define CONFIG_PHY_MICREL
93 #define CONFIG_PHY_MICREL_KSZ9021
94 #define CONFIG_PHY_RESET_DELAY 1000
97 #define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/am33xx/u-boot-spl.lds"
99 #endif /* __CONFIG_PEPPER_H */