2014-01-07 16:06:21 +00:00
|
|
|
diff --git a/boards.cfg b/boards.cfg
|
2014-08-11 18:10:55 +01:00
|
|
|
index 1ba2081..08dc221 100644
|
2014-01-07 16:06:21 +00:00
|
|
|
--- a/boards.cfg
|
|
|
|
+++ b/boards.cfg
|
2014-08-11 18:10:55 +01:00
|
|
|
@@ -1218,3 +1218,4 @@ Orphan powerpc ppc4xx - sandburst metrobox
|
|
|
|
# The following were move to "Orphan" in September, 2013
|
|
|
|
Orphan arm arm1136 mx31 - imx31_phycore imx31_phycore_eet imx31_phycore:IMX31_PHYCORE_EET (resigned) Guennadi Liakhovetski <g.liakhovetski@gmx.de>
|
|
|
|
Orphan arm arm1136 mx31 freescale mx31ads mx31ads - (resigned) Guennadi Liakhovetski <g.liakhovetski@gmx.de>
|
|
|
|
+Active arm armv7 am33xx ti am335x am335x_bbb am335x_bbb:SERIAL1,CONS_INDEX=1 Ricardo Martins <rasm@fe.up.pt>
|
2014-01-07 16:06:21 +00:00
|
|
|
diff --git a/include/configs/am335x_bbb.h b/include/configs/am335x_bbb.h
|
|
|
|
new file mode 100644
|
2014-08-11 18:10:55 +01:00
|
|
|
index 0000000..9e00817
|
2014-01-07 16:06:21 +00:00
|
|
|
--- /dev/null
|
|
|
|
+++ b/include/configs/am335x_bbb.h
|
2014-09-30 12:52:28 +01:00
|
|
|
@@ -0,0 +1,138 @@
|
2014-01-07 16:06:21 +00:00
|
|
|
+/*
|
|
|
|
+ * am335x_evm.h
|
|
|
|
+ *
|
|
|
|
+ * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
|
|
|
|
+ *
|
|
|
|
+ * This program is free software; you can redistribute it and/or
|
|
|
|
+ * modify it under the terms of the GNU General Public License as
|
|
|
|
+ * published by the Free Software Foundation version 2.
|
|
|
|
+ *
|
|
|
|
+ * This program is distributed "as is" WITHOUT ANY WARRANTY of any
|
|
|
|
+ * kind, whether express or implied; without even the implied warranty
|
|
|
|
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
+ * GNU General Public License for more details.
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+#ifndef __CONFIG_AM335X_EVM_H
|
|
|
|
+#define __CONFIG_AM335X_EVM_H
|
|
|
|
+
|
|
|
|
+#include <configs/ti_am335x_common.h>
|
|
|
|
+
|
|
|
|
+#ifdef CONFIG_BOOTDELAY
|
2014-09-30 12:52:28 +01:00
|
|
|
+# undef CONFIG_BOOTLDELAY
|
2014-01-07 16:06:21 +00:00
|
|
|
+#endif
|
2014-09-30 12:52:28 +01:00
|
|
|
+#define CONFIG_BOOTDELAY 2
|
|
|
|
+#define CONFIG_AUTOBOOT_KEYED 1
|
|
|
|
+#define CONFIG_AUTOBOOT_DELAY_STR "uboot"
|
|
|
|
+#define CONFIG_AUTOBOOT_PROMPT \
|
|
|
|
+ "autoboot in %d seconds\n",bootdelay
|
2014-01-07 16:06:21 +00:00
|
|
|
+
|
|
|
|
+#undef CONFIG_BOOTM_NETBSD
|
|
|
|
+#undef CONFIG_BOOTM_PLAN9
|
|
|
|
+#undef CONFIG_BOOTM_RTEMS
|
|
|
|
+#undef CONFIG_BOOTM_VXWORKS
|
|
|
|
+#undef CONFIG_BOOTP_DNS
|
|
|
|
+#undef CONFIG_BOOTP_DNS2
|
|
|
|
+#undef CONFIG_BOOTP_SEND_HOSTNAME
|
|
|
|
+#undef CONFIG_CMD_ASKENV
|
|
|
|
+#undef CONFIG_CMD_BDI
|
|
|
|
+#undef CONFIG_CMD_BOOTD
|
|
|
|
+#undef CONFIG_CMD_CRC32
|
|
|
|
+#undef CONFIG_CMD_DFU
|
|
|
|
+#undef CONFIG_CMD_DHCP
|
|
|
|
+#undef CONFIG_CMD_EDITENV
|
|
|
|
+#undef CONFIG_CMD_EDITENV
|
|
|
|
+#undef CONFIG_CMD_EXPORTENV
|
|
|
|
+#undef CONFIG_CMD_FPGA
|
|
|
|
+#undef CONFIG_CMD_ITEST
|
|
|
|
+#undef CONFIG_CMD_LOADB
|
|
|
|
+#undef CONFIG_CMD_LOADS
|
|
|
|
+#undef CONFIG_CMD_MEMORY
|
|
|
|
+#undef CONFIG_CMD_MISC
|
|
|
|
+#undef CONFIG_CMD_NET
|
|
|
|
+#undef CONFIG_CMD_NFS
|
|
|
|
+#undef CONFIG_CMD_PING
|
|
|
|
+#undef CONFIG_CMD_SETGETDCR
|
|
|
|
+#undef CONFIG_CMD_SPI
|
|
|
|
+#undef CONFIG_DRIVER_TI_CPSW
|
|
|
|
+#undef CONFIG_MII
|
|
|
|
+#undef CONFIG_MUSB_GADGET
|
|
|
|
+#undef CONFIG_MUSB_HOST
|
|
|
|
+#undef CONFIG_NAND
|
|
|
|
+#undef CONFIG_OMAP3_SPI
|
|
|
|
+#undef CONFIG_SPI
|
|
|
|
+#undef CONFIG_SPI_BOOT
|
|
|
|
+#undef CONFIG_SPL_ETH_SUPPORT
|
|
|
|
+#undef CONFIG_SPL_NAND_LOAD
|
|
|
|
+#undef CONFIG_SPL_NAND_SUPPORT
|
|
|
|
+#undef CONFIG_SPL_SPI_FLASH_SUPPORT
|
|
|
|
+#undef CONFIG_SPL_SPI_LOAD
|
|
|
|
+#undef CONFIG_SPL_SPI_SUPPORT
|
|
|
|
+#undef CONFIG_SPL_YMODEM_SUPPORT
|
|
|
|
+#undef CONFIG_SYS_LONGHELP
|
|
|
|
+
|
|
|
|
+#define MACH_TYPE_TIAM335EVM 3589 /* Until the next sync */
|
|
|
|
+#define CONFIG_MACH_TYPE MACH_TYPE_TIAM335EVM
|
|
|
|
+
|
|
|
|
+/* Clock Defines */
|
|
|
|
+#define V_OSCK 24000000 /* Clock output from T2 */
|
|
|
|
+#define V_SCLK (V_OSCK)
|
|
|
|
+
|
|
|
|
+/* Custom script for NOR */
|
|
|
|
+#define CONFIG_SYS_LDSCRIPT "board/ti/am335x/u-boot.lds"
|
|
|
|
+
|
|
|
|
+/* Always 128 KiB env size */
|
|
|
|
+#define CONFIG_ENV_SIZE (128 << 10)
|
|
|
|
+
|
|
|
|
+#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
|
|
|
|
+
|
|
|
|
+#ifndef CONFIG_SPL_BUILD
|
|
|
|
+#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
+ "loadaddr=0x80200000\0" \
|
|
|
|
+ "fdtaddr=0x80F80000\0" \
|
|
|
|
+ "console=ttyO0,115200n8\0" \
|
|
|
|
+ "mmcroot=/dev/mmcblk0p2\0" \
|
|
|
|
+ "mmcrootfstype=ext4\0"
|
|
|
|
+
|
|
|
|
+#define CONFIG_BOOTCOMMAND \
|
|
|
|
+ "setenv bootargs \"console=${console} root=${mmcroot} rootfstype=${mmcrootfstype} rootwait ro quiet\"; " \
|
|
|
|
+ "mmc dev 0; " \
|
2014-01-21 00:24:42 +00:00
|
|
|
+ "ext4load mmc0 0:2 ${loadaddr} /boot/kernel; " \
|
|
|
|
+ "ext4load mmc0 0:2 ${fdtaddr} /boot/board.dtb; " \
|
2014-01-07 16:06:21 +00:00
|
|
|
+ "bootz ${loadaddr} - ${fdtaddr}; "
|
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+/* NS16550 Configuration */
|
|
|
|
+#define CONFIG_SYS_NS16550_COM1 0x44e09000 /* Base EVM has UART0 */
|
|
|
|
+#define CONFIG_SYS_NS16550_COM2 0x48022000 /* UART1 */
|
|
|
|
+#define CONFIG_SYS_NS16550_COM3 0x48024000 /* UART2 */
|
|
|
|
+#define CONFIG_SYS_NS16550_COM4 0x481a6000 /* UART3 */
|
|
|
|
+#define CONFIG_SYS_NS16550_COM5 0x481a8000 /* UART4 */
|
|
|
|
+#define CONFIG_SYS_NS16550_COM6 0x481aa000 /* UART5 */
|
|
|
|
+#define CONFIG_BAUDRATE 115200
|
|
|
|
+
|
|
|
|
+#define CONFIG_CMD_EEPROM
|
|
|
|
+#define CONFIG_ENV_EEPROM_IS_ON_I2C
|
|
|
|
+#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 /* Main EEPROM */
|
|
|
|
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
|
|
|
|
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
|
|
|
|
+
|
|
|
|
+/* PMIC support */
|
|
|
|
+#define CONFIG_POWER_TPS65217
|
|
|
|
+#define CONFIG_POWER_TPS65910
|
|
|
|
+
|
|
|
|
+/* SPL */
|
|
|
|
+#define CONFIG_SPL_POWER_SUPPORT
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/* Bootcount using the RTC block */
|
|
|
|
+#define CONFIG_BOOTCOUNT_LIMIT
|
|
|
|
+#define CONFIG_BOOTCOUNT_AM33XX
|
|
|
|
+
|
|
|
|
+/* SPI flash. */
|
|
|
|
+#define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/am33xx/u-boot-spl.lds"
|
|
|
|
+
|
|
|
|
+#define CONFIG_ENV_IS_NOWHERE
|
|
|
|
+
|
|
|
|
+#endif /* ! __CONFIG_AM335X_EVM_H */
|