1
2
3
4
5
6
7
8
9
10#ifndef __CONFIG_CM_T54_H
11#define __CONFIG_CM_T54_H
12
13#define CONFIG_CM_T54
14#define CONFIG_DRAM_2G
15
16#define PARTS_DEFAULT
17
18#include <configs/ti_omap5_common.h>
19
20
21#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
22#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
23#define CONFIG_SYS_I2C_EEPROM_BUS 0
24
25
26#define OMAP_HSMMC_USE_GPIO
27
28
29#define CONFIG_SYS_NS16550_COM4 UART4_BASE
30
31
32#undef CONFIG_ENV_OFFSET
33#undef CONFIG_ENV_SIZE
34
35#define CONFIG_SYS_MMC_ENV_DEV 1
36#define CONFIG_SYS_MMC_ENV_PART 0
37#define CONFIG_ENV_OFFSET 0xc0000
38#define CONFIG_ENV_SIZE (16 << 10)
39#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
40#define CONFIG_SYS_REDUNDAND_ENVIRONMENT
41
42
43#define CONFIG_HSMMC2_8BIT
44#define CONFIG_SUPPORT_EMMC_BOOT
45
46
47#define CONFIG_SPL_SATA_BOOT_DEVICE 0
48#define CONFIG_SYS_SATA_FAT_BOOT_PARTITION 1
49
50#define CONFIG_SCSI_AHCI_PLAT
51#define CONFIG_SYS_SCSI_MAX_SCSI_ID 1
52#define CONFIG_SYS_SCSI_MAX_LUN 1
53#define CONFIG_SYS_SCSI_MAX_DEVICE (CONFIG_SYS_SCSI_MAX_SCSI_ID * \
54 CONFIG_SYS_SCSI_MAX_LUN)
55
56#define CONFIG_EHCI_HCD_INIT_AFTER_RESET
57
58#define CONFIG_OMAP_EHCI_PHY2_RESET_GPIO 76
59#define CONFIG_OMAP_EHCI_PHY3_RESET_GPIO 83
60
61
62
63
64#define CONFIG_ENV_EEPROM_IS_ON_I2C
65#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
66#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4
67#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5
68#define CONFIG_SYS_EEPROM_SIZE 256
69
70
71
72
73
74
75#undef CONFIG_SYS_AUTOLOAD
76#undef CONFIG_EXTRA_ENV_SETTINGS
77#undef CONFIG_BOOTCOMMAND
78
79#define CONFIG_SYS_AUTOLOAD "no"
80
81#define CONFIG_EXTRA_ENV_SETTINGS \
82 DEFAULT_LINUX_BOOT_ENV \
83 "baudrate=115200\0" \
84 "bootdelay=3\0" \
85 "autoload=no\0" \
86 "bootscr=bootscr.img\0" \
87 "fdtfile=omap5-sbc-t54.dtb\0" \
88 "kernel=zImage-cm-t54\0" \
89 "ramdisk=ramdisk-cm-t54.img\0" \
90 "console=ttyO3\0" \
91 "ramdisksize=16384\0" \
92 "mmcdev=0\0" \
93 "mmcroot=/dev/mmcblk1p2\0" \
94 "mmcargs=setenv bootargs console=${console} " \
95 "root=${mmcroot} rw rootwait\0" \
96 "ramroot=/dev/ram0\0" \
97 "ramargs=setenv bootargs console=${console} " \
98 "root=${ramroot} ramdisk_size=${ramdisksize} rw\0" \
99 "mmcloadkernel=load mmc ${mmcdev} ${loadaddr} ${kernel}\0" \
100 "mmcloadfdt=load mmc ${mmcdev} ${fdtaddr} ${fdtfile}\0" \
101 "mmcloadramdisk=load mmc ${mmcdev} ${rdaddr} ${ramdisk}\0" \
102 "mmcloadbootscript=load mmc ${mmcdev} ${loadaddr} ${bootsrc}\0" \
103 "mmcbootscript=echo Running bootscript from mmc${mmcdev}...; " \
104 "source ${loadaddr}\0" \
105 "mmcbootlinux=echo Booting from mmc${mmcdev} ...; " \
106 "bootz ${loadaddr} ${rdaddr} ${fdtaddr}\0" \
107 "mmcboot=if mmc dev ${mmcdev} && mmc rescan; then " \
108 "if run mmcloadbootscript; " \
109 "then run mmcbootscript; " \
110 "fi; " \
111 "if run mmcloadkernel; then " \
112 "if run mmcloadfdt; then " \
113 "if run mmcloadramdisk; then " \
114 "run ramargs; " \
115 "run mmcbootlinux; " \
116 "fi; " \
117 "run mmcargs; " \
118 "setenv rdaddr - ; " \
119 "run mmcbootlinux; " \
120 "fi; " \
121 "fi; " \
122 "fi;\0"
123
124#define CONFIG_BOOTCOMMAND \
125 "bootcmd=run mmcboot || setenv mmcdev 1; setenv mmcroot /dev/mmcblk0p2; run mmcboot;"
126
127#endif
128