blob: 50308fb28f2a7cdbf01c29dd2d2e839d2aebd766 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Dmitry Lifshitz076446f2014-05-19 12:50:54 +03002/*
3 * Config file for Compulab CM-T54 board
4 *
5 * Copyright (C) 2014, Compulab Ltd - http://compulab.co.il/
6 *
7 * Author: Dmitry Lifshitz <lifshitz@compulab.co.il>
Dmitry Lifshitz076446f2014-05-19 12:50:54 +03008 */
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
Sam Protsenkoc90a7602018-04-19 23:57:30 +030016#define PARTS_DEFAULT
17
Dmitry Lifshitz076446f2014-05-19 12:50:54 +030018#include <configs/ti_omap5_common.h>
19
Dmitry Lifshitza9375f32014-04-27 13:18:46 +030020/* EEPROM related defines */
Dmitry Lifshitza9375f32014-04-27 13:18:46 +030021#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
22#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
Nikita Kiryanov52658fd2014-08-20 15:08:52 +030023#define CONFIG_SYS_I2C_EEPROM_BUS 0
Dmitry Lifshitza9375f32014-04-27 13:18:46 +030024
Dmitry Lifshitz076446f2014-05-19 12:50:54 +030025/* Enable SD/MMC CD and WP GPIOs */
26#define OMAP_HSMMC_USE_GPIO
27
28/* UART setup */
Dmitry Lifshitz076446f2014-05-19 12:50:54 +030029#define CONFIG_SYS_NS16550_COM4 UART4_BASE
Dmitry Lifshitz076446f2014-05-19 12:50:54 +030030
Dmitry Lifshitz076446f2014-05-19 12:50:54 +030031/* MMC ENV related defines */
Dmitry Lifshitz076446f2014-05-19 12:50:54 +030032
Dmitry Lifshitz076446f2014-05-19 12:50:54 +030033#define CONFIG_SYS_MMC_ENV_DEV 1 /* SLOT2: eMMC(1) */
Dmitry Lifshitz1c8c36f2014-04-27 13:18:48 +030034#define CONFIG_SYS_MMC_ENV_PART 0
Dmitry Lifshitz076446f2014-05-19 12:50:54 +030035
36/* Enhance our eMMC support / experience. */
37#define CONFIG_HSMMC2_8BIT
Dmitry Lifshitz076446f2014-05-19 12:50:54 +030038
Dmitry Lifshitz96b5bf12014-12-15 16:02:59 +020039/* SATA Boot related defines */
Dmitry Lifshitz96b5bf12014-12-15 16:02:59 +020040#define CONFIG_SPL_SATA_BOOT_DEVICE 0
41#define CONFIG_SYS_SATA_FAT_BOOT_PARTITION 1
42
Dmitry Lifshitz96b5bf12014-12-15 16:02:59 +020043#define CONFIG_SCSI_AHCI_PLAT
44#define CONFIG_SYS_SCSI_MAX_SCSI_ID 1
45#define CONFIG_SYS_SCSI_MAX_LUN 1
46#define CONFIG_SYS_SCSI_MAX_DEVICE (CONFIG_SYS_SCSI_MAX_SCSI_ID * \
47 CONFIG_SYS_SCSI_MAX_LUN)
Dmitry Lifshitz076446f2014-05-19 12:50:54 +030048/* USB UHH support options */
Dmitry Lifshitz076446f2014-05-19 12:50:54 +030049#define CONFIG_EHCI_HCD_INIT_AFTER_RESET
50
51#define CONFIG_OMAP_EHCI_PHY2_RESET_GPIO 76 /* HSIC2 HUB #RESET */
52#define CONFIG_OMAP_EHCI_PHY3_RESET_GPIO 83 /* HSIC3 ETH #RESET */
53
54/* Enabled commands */
Dmitry Lifshitz076446f2014-05-19 12:50:54 +030055
Nikita Kiryanov66b7e422016-04-16 17:55:07 +030056/* EEPROM */
Nikita Kiryanov66b7e422016-04-16 17:55:07 +030057#define CONFIG_ENV_EEPROM_IS_ON_I2C
58#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
59#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4
60#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5
61#define CONFIG_SYS_EEPROM_SIZE 256
62
Dmitry Lifshitz076446f2014-05-19 12:50:54 +030063/* USB Networking options */
Dmitry Lifshitz076446f2014-05-19 12:50:54 +030064
Dmitry Lifshitz076446f2014-05-19 12:50:54 +030065/*
66 * Miscellaneous configurable options
67 */
68#undef CONFIG_SYS_AUTOLOAD
Dmitry Lifshitz076446f2014-05-19 12:50:54 +030069#undef CONFIG_EXTRA_ENV_SETTINGS
70#undef CONFIG_BOOTCOMMAND
Dmitry Lifshitz076446f2014-05-19 12:50:54 +030071
Dmitry Lifshitz076446f2014-05-19 12:50:54 +030072#define CONFIG_SYS_AUTOLOAD "no"
Dmitry Lifshitz076446f2014-05-19 12:50:54 +030073
74#define CONFIG_EXTRA_ENV_SETTINGS \
75 DEFAULT_LINUX_BOOT_ENV \
76 "baudrate=115200\0" \
77 "bootdelay=3\0" \
78 "autoload=no\0" \
79 "bootscr=bootscr.img\0" \
80 "fdtfile=omap5-sbc-t54.dtb\0" \
81 "kernel=zImage-cm-t54\0" \
82 "ramdisk=ramdisk-cm-t54.img\0" \
83 "console=ttyO3\0" \
84 "ramdisksize=16384\0" \
85 "mmcdev=0\0" \
86 "mmcroot=/dev/mmcblk1p2\0" \
87 "mmcargs=setenv bootargs console=${console} " \
88 "root=${mmcroot} rw rootwait\0" \
89 "ramroot=/dev/ram0\0" \
90 "ramargs=setenv bootargs console=${console} " \
91 "root=${ramroot} ramdisk_size=${ramdisksize} rw\0" \
92 "mmcloadkernel=load mmc ${mmcdev} ${loadaddr} ${kernel}\0" \
93 "mmcloadfdt=load mmc ${mmcdev} ${fdtaddr} ${fdtfile}\0" \
94 "mmcloadramdisk=load mmc ${mmcdev} ${rdaddr} ${ramdisk}\0" \
95 "mmcloadbootscript=load mmc ${mmcdev} ${loadaddr} ${bootsrc}\0" \
96 "mmcbootscript=echo Running bootscript from mmc${mmcdev}...; " \
97 "source ${loadaddr}\0" \
98 "mmcbootlinux=echo Booting from mmc${mmcdev} ...; " \
99 "bootz ${loadaddr} ${rdaddr} ${fdtaddr}\0" \
100 "mmcboot=if mmc dev ${mmcdev} && mmc rescan; then " \
101 "if run mmcloadbootscript; " \
102 "then run mmcbootscript; " \
103 "fi; " \
104 "if run mmcloadkernel; then " \
105 "if run mmcloadfdt; then " \
106 "if run mmcloadramdisk; then " \
107 "run ramargs; " \
108 "run mmcbootlinux; " \
109 "fi; " \
110 "run mmcargs; " \
111 "setenv rdaddr - ; " \
112 "run mmcbootlinux; " \
113 "fi; " \
114 "fi; " \
115 "fi;\0"
116
117#define CONFIG_BOOTCOMMAND \
118 "bootcmd=run mmcboot || setenv mmcdev 1; setenv mmcroot /dev/mmcblk0p2; run mmcboot;"
119
120#endif /* __CONFIG_CM_T54_H */