1076446f1SDmitry Lifshitz /* 2076446f1SDmitry Lifshitz * Config file for Compulab CM-T54 board 3076446f1SDmitry Lifshitz * 4076446f1SDmitry Lifshitz * Copyright (C) 2014, Compulab Ltd - http://compulab.co.il/ 5076446f1SDmitry Lifshitz * 6076446f1SDmitry Lifshitz * Author: Dmitry Lifshitz <lifshitz@compulab.co.il> 7076446f1SDmitry Lifshitz * 8076446f1SDmitry Lifshitz * SPDX-License-Identifier: GPL-2.0+ 9076446f1SDmitry Lifshitz */ 10076446f1SDmitry Lifshitz 11076446f1SDmitry Lifshitz #ifndef __CONFIG_CM_T54_H 12076446f1SDmitry Lifshitz #define __CONFIG_CM_T54_H 13076446f1SDmitry Lifshitz 14076446f1SDmitry Lifshitz #define CONFIG_CM_T54 15076446f1SDmitry Lifshitz #define CONFIG_DRAM_2G 16076446f1SDmitry Lifshitz 17076446f1SDmitry Lifshitz #include <configs/ti_omap5_common.h> 18076446f1SDmitry Lifshitz 19076446f1SDmitry Lifshitz #undef CONFIG_SPL_OS_BOOT 20076446f1SDmitry Lifshitz 21bbfb286bSDmitry Lifshitz /* Enable Generic board */ 22bbfb286bSDmitry Lifshitz #define CONFIG_SYS_GENERIC_BOARD 23bbfb286bSDmitry Lifshitz 24a9375f33SDmitry Lifshitz /* Device Tree defines */ 25a9375f33SDmitry Lifshitz #define CONFIG_OF_LIBFDT 26a9375f33SDmitry Lifshitz #define CONFIG_OF_BOARD_SETUP 27a9375f33SDmitry Lifshitz 28a9375f33SDmitry Lifshitz /* EEPROM related defines */ 29a9375f33SDmitry Lifshitz #define CONFIG_SYS_I2C_OMAP34XX 30a9375f33SDmitry Lifshitz #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 31a9375f33SDmitry Lifshitz #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 3252658fdaSNikita Kiryanov #define CONFIG_SYS_I2C_EEPROM_BUS 0 33a9375f33SDmitry Lifshitz 34076446f1SDmitry Lifshitz /* Enable SD/MMC CD and WP GPIOs */ 35076446f1SDmitry Lifshitz #define OMAP_HSMMC_USE_GPIO 36076446f1SDmitry Lifshitz 37076446f1SDmitry Lifshitz /* UART setup */ 38076446f1SDmitry Lifshitz #define CONFIG_CONS_INDEX 4 39076446f1SDmitry Lifshitz #define CONFIG_SYS_NS16550_COM4 UART4_BASE 40076446f1SDmitry Lifshitz #define CONFIG_BAUDRATE 115200 41076446f1SDmitry Lifshitz 42076446f1SDmitry Lifshitz /* SD/MMC RAW boot */ 43076446f1SDmitry Lifshitz #undef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 44076446f1SDmitry Lifshitz #undef CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 45076446f1SDmitry Lifshitz 46076446f1SDmitry Lifshitz #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x200 /* 0x40000 - 256 KB */ 47076446f1SDmitry Lifshitz #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x300 /* 384 KB */ 48076446f1SDmitry Lifshitz 49076446f1SDmitry Lifshitz /* MMC ENV related defines */ 50076446f1SDmitry Lifshitz #undef CONFIG_ENV_OFFSET 51076446f1SDmitry Lifshitz #undef CONFIG_ENV_SIZE 52076446f1SDmitry Lifshitz 53076446f1SDmitry Lifshitz #define CONFIG_ENV_IS_IN_MMC 54076446f1SDmitry Lifshitz #define CONFIG_SYS_MMC_ENV_DEV 1 /* SLOT2: eMMC(1) */ 551c8c36f5SDmitry Lifshitz #define CONFIG_SYS_MMC_ENV_PART 0 56076446f1SDmitry Lifshitz #define CONFIG_ENV_OFFSET 0xc0000 /* (in bytes) 768 KB */ 57076446f1SDmitry Lifshitz #define CONFIG_ENV_SIZE (16 << 10) /* 16 KB */ 58076446f1SDmitry Lifshitz #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) 59076446f1SDmitry Lifshitz #define CONFIG_SYS_REDUNDAND_ENVIRONMENT 60076446f1SDmitry Lifshitz #define CONFIG_CMD_SAVEENV 61076446f1SDmitry Lifshitz 62076446f1SDmitry Lifshitz /* Enhance our eMMC support / experience. */ 63076446f1SDmitry Lifshitz #define CONFIG_HSMMC2_8BIT 64076446f1SDmitry Lifshitz #define CONFIG_SUPPORT_EMMC_BOOT 65076446f1SDmitry Lifshitz 66*96b5bf11SDmitry Lifshitz /* SATA Boot related defines */ 67*96b5bf11SDmitry Lifshitz #define CONFIG_SPL_SATA_SUPPORT 68*96b5bf11SDmitry Lifshitz #define CONFIG_SPL_SATA_BOOT_DEVICE 0 69*96b5bf11SDmitry Lifshitz #define CONFIG_SYS_SATA_FAT_BOOT_PARTITION 1 70*96b5bf11SDmitry Lifshitz 71*96b5bf11SDmitry Lifshitz #define CONFIG_CMD_SCSI 72*96b5bf11SDmitry Lifshitz #define CONFIG_LIBATA 73*96b5bf11SDmitry Lifshitz #define CONFIG_SCSI_AHCI 74*96b5bf11SDmitry Lifshitz #define CONFIG_SCSI_AHCI_PLAT 75*96b5bf11SDmitry Lifshitz #define CONFIG_SYS_SCSI_MAX_SCSI_ID 1 76*96b5bf11SDmitry Lifshitz #define CONFIG_SYS_SCSI_MAX_LUN 1 77*96b5bf11SDmitry Lifshitz #define CONFIG_SYS_SCSI_MAX_DEVICE (CONFIG_SYS_SCSI_MAX_SCSI_ID * \ 78*96b5bf11SDmitry Lifshitz CONFIG_SYS_SCSI_MAX_LUN) 79076446f1SDmitry Lifshitz /* USB UHH support options */ 80076446f1SDmitry Lifshitz #define CONFIG_CMD_USB 81076446f1SDmitry Lifshitz #define CONFIG_USB_HOST 82076446f1SDmitry Lifshitz #define CONFIG_USB_EHCI 83076446f1SDmitry Lifshitz #define CONFIG_USB_EHCI_OMAP 84076446f1SDmitry Lifshitz #define CONFIG_USB_STORAGE 85076446f1SDmitry Lifshitz #define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 3 86076446f1SDmitry Lifshitz #define CONFIG_EHCI_HCD_INIT_AFTER_RESET 87076446f1SDmitry Lifshitz 88076446f1SDmitry Lifshitz #define CONFIG_OMAP_EHCI_PHY2_RESET_GPIO 76 /* HSIC2 HUB #RESET */ 89076446f1SDmitry Lifshitz #define CONFIG_OMAP_EHCI_PHY3_RESET_GPIO 83 /* HSIC3 ETH #RESET */ 90076446f1SDmitry Lifshitz 91076446f1SDmitry Lifshitz /* Enabled commands */ 92076446f1SDmitry Lifshitz #define CONFIG_CMD_DHCP /* DHCP Support */ 93076446f1SDmitry Lifshitz #define CONFIG_CMD_NET /* bootp, tftpboot, rarpboot */ 94076446f1SDmitry Lifshitz #define CONFIG_CMD_PING 95076446f1SDmitry Lifshitz 96076446f1SDmitry Lifshitz /* USB Networking options */ 97076446f1SDmitry Lifshitz #define CONFIG_USB_HOST_ETHER 98076446f1SDmitry Lifshitz #define CONFIG_USB_ETHER_SMSC95XX 99076446f1SDmitry Lifshitz #define CONFIG_USB_ETHER_RNDIS 100076446f1SDmitry Lifshitz #define CONFIG_USB_ETHER_ASIX 101076446f1SDmitry Lifshitz #define CONFIG_USB_ETHER_MCS7830 102076446f1SDmitry Lifshitz 103076446f1SDmitry Lifshitz /* Max time to hold reset on this board, see doc/README.omap-reset-time */ 104076446f1SDmitry Lifshitz #define CONFIG_OMAP_PLATFORM_RESET_TIME_MAX_USEC 16296 105076446f1SDmitry Lifshitz 106076446f1SDmitry Lifshitz /* 107076446f1SDmitry Lifshitz * Miscellaneous configurable options 108076446f1SDmitry Lifshitz */ 109076446f1SDmitry Lifshitz #undef CONFIG_SYS_AUTOLOAD 110076446f1SDmitry Lifshitz #undef CONFIG_SYS_PROMPT 111076446f1SDmitry Lifshitz #undef CONFIG_EXTRA_ENV_SETTINGS 112076446f1SDmitry Lifshitz #undef CONFIG_BOOTCOMMAND 113076446f1SDmitry Lifshitz #undef CONFIG_BOOTDELAY 114076446f1SDmitry Lifshitz 115076446f1SDmitry Lifshitz #define CONFIG_BOOTDELAY 3 116076446f1SDmitry Lifshitz #define CONFIG_SYS_AUTOLOAD "no" 117076446f1SDmitry Lifshitz #define CONFIG_SYS_PROMPT "CM-T54 # " 118076446f1SDmitry Lifshitz 119076446f1SDmitry Lifshitz #define CONFIG_EXTRA_ENV_SETTINGS \ 120076446f1SDmitry Lifshitz DEFAULT_LINUX_BOOT_ENV \ 121076446f1SDmitry Lifshitz "baudrate=115200\0" \ 122076446f1SDmitry Lifshitz "bootdelay=3\0" \ 123076446f1SDmitry Lifshitz "autoload=no\0" \ 124076446f1SDmitry Lifshitz "bootscr=bootscr.img\0" \ 125076446f1SDmitry Lifshitz "fdtfile=omap5-sbc-t54.dtb\0" \ 126076446f1SDmitry Lifshitz "kernel=zImage-cm-t54\0" \ 127076446f1SDmitry Lifshitz "ramdisk=ramdisk-cm-t54.img\0" \ 128076446f1SDmitry Lifshitz "console=ttyO3\0" \ 129076446f1SDmitry Lifshitz "ramdisksize=16384\0" \ 130076446f1SDmitry Lifshitz "mmcdev=0\0" \ 131076446f1SDmitry Lifshitz "mmcroot=/dev/mmcblk1p2\0" \ 132076446f1SDmitry Lifshitz "mmcargs=setenv bootargs console=${console} " \ 133076446f1SDmitry Lifshitz "root=${mmcroot} rw rootwait\0" \ 134076446f1SDmitry Lifshitz "ramroot=/dev/ram0\0" \ 135076446f1SDmitry Lifshitz "ramargs=setenv bootargs console=${console} " \ 136076446f1SDmitry Lifshitz "root=${ramroot} ramdisk_size=${ramdisksize} rw\0" \ 137076446f1SDmitry Lifshitz "mmcloadkernel=load mmc ${mmcdev} ${loadaddr} ${kernel}\0" \ 138076446f1SDmitry Lifshitz "mmcloadfdt=load mmc ${mmcdev} ${fdtaddr} ${fdtfile}\0" \ 139076446f1SDmitry Lifshitz "mmcloadramdisk=load mmc ${mmcdev} ${rdaddr} ${ramdisk}\0" \ 140076446f1SDmitry Lifshitz "mmcloadbootscript=load mmc ${mmcdev} ${loadaddr} ${bootsrc}\0" \ 141076446f1SDmitry Lifshitz "mmcbootscript=echo Running bootscript from mmc${mmcdev}...; " \ 142076446f1SDmitry Lifshitz "source ${loadaddr}\0" \ 143076446f1SDmitry Lifshitz "mmcbootlinux=echo Booting from mmc${mmcdev} ...; " \ 144076446f1SDmitry Lifshitz "bootz ${loadaddr} ${rdaddr} ${fdtaddr}\0" \ 145076446f1SDmitry Lifshitz "mmcboot=if mmc dev ${mmcdev} && mmc rescan; then " \ 146076446f1SDmitry Lifshitz "if run mmcloadbootscript; " \ 147076446f1SDmitry Lifshitz "then run mmcbootscript; " \ 148076446f1SDmitry Lifshitz "fi; " \ 149076446f1SDmitry Lifshitz "if run mmcloadkernel; then " \ 150076446f1SDmitry Lifshitz "if run mmcloadfdt; then " \ 151076446f1SDmitry Lifshitz "if run mmcloadramdisk; then " \ 152076446f1SDmitry Lifshitz "run ramargs; " \ 153076446f1SDmitry Lifshitz "run mmcbootlinux; " \ 154076446f1SDmitry Lifshitz "fi; " \ 155076446f1SDmitry Lifshitz "run mmcargs; " \ 156076446f1SDmitry Lifshitz "setenv rdaddr - ; " \ 157076446f1SDmitry Lifshitz "run mmcbootlinux; " \ 158076446f1SDmitry Lifshitz "fi; " \ 159076446f1SDmitry Lifshitz "fi; " \ 160076446f1SDmitry Lifshitz "fi;\0" 161076446f1SDmitry Lifshitz 162076446f1SDmitry Lifshitz #define CONFIG_BOOTCOMMAND \ 163076446f1SDmitry Lifshitz "bootcmd=run mmcboot || setenv mmcdev 1; setenv mmcroot /dev/mmcblk0p2; run mmcboot;" 164076446f1SDmitry Lifshitz 165076446f1SDmitry Lifshitz #endif /* __CONFIG_CM_T54_H */ 166