]> git.sur5r.net Git - u-boot/blob - include/configs/pepper.h
Migrate CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG to Kconfig
[u-boot] / include / configs / pepper.h
1 /*
2  * Copyright (C) 2013 Gumstix, Inc. - http://www.gumstix.com/
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 #ifndef __CONFIG_PEPPER_H
8 #define __CONFIG_PEPPER_H
9
10 #include <configs/ti_am335x_common.h>
11
12 /* Clock defines */
13 #define V_OSCK                          24000000  /* Clock output from T2 */
14 #define V_SCLK                          (V_OSCK)
15
16 #define CONFIG_SYS_I2C_EEPROM_ADDR      0x50
17
18 /* Mach type */
19 #define CONFIG_MACH_TYPE                MACH_TYPE_PEPPER
20
21 #define CONFIG_ENV_SIZE                 (128 << 10)     /* 128 KiB */
22
23 #define CONFIG_EXTRA_ENV_SETTINGS \
24         DEFAULT_LINUX_BOOT_ENV \
25         "bootdir=/boot\0" \
26         "bootfile=zImage\0" \
27         "fdtfile=am335x-pepper.dtb\0" \
28         "console=ttyO0,115200n8\0" \
29         "optargs=\0" \
30         "mmcdev=0\0" \
31         "mmcroot=/dev/mmcblk0p2 rw\0" \
32         "mmcrootfstype=ext4 rootwait\0" \
33         "mmcargs=setenv bootargs console=${console} " \
34                 "${optargs} " \
35                 "root=${mmcroot} " \
36                 "rootfstype=${mmcrootfstype}\0" \
37         "bootenv=uEnv.txt\0" \
38         "loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
39         "importbootenv=echo Importing environment from mmc ...; " \
40                 "env import -t ${loadaddr} ${filesize}\0" \
41         "mmcload=load mmc ${mmcdev}:2 ${loadaddr} ${bootdir}/${bootfile}; " \
42                 "load mmc ${mmcdev}:2 ${fdtaddr} ${bootdir}/${fdtfile}\0" \
43         "loaduimage=fatload mmc ${mmcdev}:1 ${loadaddr} uImage\0" \
44         "uimageboot=echo Booting from mmc${mmcdev} ...; " \
45                 "run mmcargs; " \
46                 "bootm ${loadaddr}\0" \
47         "mmcboot=echo Booting from mmc ...; " \
48                 "run mmcargs; " \
49                 "bootz ${loadaddr} - ${fdtaddr}\0" \
50         "ubiboot=echo Booting from nand (ubifs) ...; " \
51                 "run ubiargs; run ubiload; " \
52                 "bootz ${loadaddr} - ${fdtaddr}\0" \
53
54 #define CONFIG_BOOTCOMMAND \
55         "mmc dev ${mmcdev}; if mmc rescan; then " \
56                 "echo SD/MMC found on device ${mmcdev};" \
57                 "if run loadbootenv; then " \
58                         "echo Loaded environment from ${bootenv};" \
59                         "run importbootenv;" \
60                 "fi;" \
61                 "if test -n $uenvcmd; then " \
62                         "echo Running uenvcmd ...;" \
63                         "run uenvcmd;" \
64                 "fi;" \
65                 "if run mmcload; then " \
66                         "run mmcboot;" \
67                 "fi;" \
68                 "if run loaduimage; then " \
69                         "run uimageboot;" \
70                 "fi;" \
71         "fi;" \
72
73 /* Serial console configuration */
74 #define CONFIG_SERIAL1                  1
75 #define CONFIG_SYS_NS16550_COM1         0x44e09000
76
77 /* Ethernet support */
78 #define CONFIG_PHY_RESET_DELAY 1000
79
80 /* SPL */
81
82 #endif /* __CONFIG_PEPPER_H */