]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/pepper.h
karo: tx6: increase SYS_BOOTM_LEN to 32MiB
[karo-tx-uboot.git] / 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 #define CONFIG_MMC
11 #include <configs/ti_am335x_common.h>
12
13 #undef CONFIG_BOARD_LATE_INIT
14 #undef CONFIG_SPL_OS_BOOT
15
16 /* Clock defines */
17 #define V_OSCK                          24000000  /* Clock output from T2 */
18 #define V_SCLK                          (V_OSCK)
19
20 #define CONFIG_SYS_I2C_EEPROM_ADDR      0x50
21
22 /* Mach type */
23 #define MACH_TYPE_PEPPER                4207    /* Until the next sync */
24 #define CONFIG_MACH_TYPE                MACH_TYPE_PEPPER
25
26 #define CONFIG_ENV_SIZE                 (128 << 10)     /* 128 KiB */
27 #define CONFIG_ENV_IS_NOWHERE
28 /* Display cpuinfo */
29 #define CONFIG_DISPLAY_CPUINFO
30
31 #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
32 #define CONFIG_EXTRA_ENV_SETTINGS \
33         DEFAULT_LINUX_BOOT_ENV \
34         "bootdir=/boot\0" \
35         "bootfile=zImage\0" \
36         "fdtfile=am335x-pepper.dtb\0" \
37         "console=ttyO0,115200n8\0" \
38         "optargs=\0" \
39         "mmcdev=0\0" \
40         "mmcroot=/dev/mmcblk0p2 rw\0" \
41         "mmcrootfstype=ext4 rootwait\0" \
42         "mmcargs=setenv bootargs console=${console} " \
43                 "${optargs} " \
44                 "root=${mmcroot} " \
45                 "rootfstype=${mmcrootfstype}\0" \
46         "bootenv=uEnv.txt\0" \
47         "loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
48         "importbootenv=echo Importing environment from mmc ...; " \
49                 "env import -t ${loadaddr} ${filesize}\0" \
50         "mmcload=load mmc ${mmcdev}:2 ${loadaddr} ${bootdir}/${bootfile}; " \
51                 "load mmc ${mmcdev}:2 ${fdtaddr} ${bootdir}/${fdtfile}\0" \
52         "loaduimage=fatload mmc ${mmcdev}:1 ${loadaddr} uImage\0" \
53         "uimageboot=echo Booting from mmc${mmcdev} ...; " \
54                 "run mmcargs; " \
55                 "bootm ${loadaddr}\0" \
56         "mmcboot=echo Booting from mmc ...; " \
57                 "run mmcargs; " \
58                 "bootz ${loadaddr} - ${fdtaddr}\0" \
59         "ubiboot=echo Booting from nand (ubifs) ...; " \
60                 "run ubiargs; run ubiload; " \
61                 "bootz ${loadaddr} - ${fdtaddr}\0" \
62
63 #define CONFIG_BOOTCOMMAND \
64         "mmc dev ${mmcdev}; if mmc rescan; then " \
65                 "echo SD/MMC found on device ${mmcdev};" \
66                 "if run loadbootenv; then " \
67                         "echo Loaded environment from ${bootenv};" \
68                         "run importbootenv;" \
69                 "fi;" \
70                 "if test -n $uenvcmd; then " \
71                         "echo Running uenvcmd ...;" \
72                         "run uenvcmd;" \
73                 "fi;" \
74                 "if run mmcload; then " \
75                         "run mmcboot;" \
76                 "fi;" \
77                 "if run loaduimage; then " \
78                         "run uimageboot;" \
79                 "fi;" \
80         "fi;" \
81
82 /* Serial console configuration */
83 #define CONFIG_CONS_INDEX               1 /* UART0 */
84 #define CONFIG_SERIAL1                  1
85 #define CONFIG_SYS_NS16550_COM1         0x44e09000
86
87 /* Ethernet support */
88 #define CONFIG_PHY_GIGE
89 #define CONFIG_PHYLIB
90 #define CONFIG_PHY_ADDR                 0
91 #define CONFIG_PHY_MICREL
92 #define CONFIG_PHY_MICREL_KSZ9021
93 #define CONFIG_PHY_RESET_DELAY 1000
94
95 /* SPL */
96 #define CONFIG_SPL_LDSCRIPT             "$(CPUDIR)/am33xx/u-boot-spl.lds"
97
98 #endif /* __CONFIG_PEPPER_H */