From fac4f7c532ddbaa2c61ee5088bf7a05171f02bc0 Mon Sep 17 00:00:00 2001 From: Ricardo Martins Date: Tue, 7 Jan 2014 16:06:21 +0000 Subject: [PATCH] lctr-b2xx: added u-boot patches. --- .../00-am335x-evm-dcache-on.patch | 17 ++ .../patches-2014.01-rc2/01-am335x-bbb.patch | 153 ++++++++++++++++++ 2 files changed, 170 insertions(+) create mode 100644 systems/lctr-b2xx/patches/u-boot/patches-2014.01-rc2/00-am335x-evm-dcache-on.patch create mode 100644 systems/lctr-b2xx/patches/u-boot/patches-2014.01-rc2/01-am335x-bbb.patch diff --git a/systems/lctr-b2xx/patches/u-boot/patches-2014.01-rc2/00-am335x-evm-dcache-on.patch b/systems/lctr-b2xx/patches/u-boot/patches-2014.01-rc2/00-am335x-evm-dcache-on.patch new file mode 100644 index 0000000..6620085 --- /dev/null +++ b/systems/lctr-b2xx/patches/u-boot/patches-2014.01-rc2/00-am335x-evm-dcache-on.patch @@ -0,0 +1,17 @@ +--- u-boot-2013.01/board/ti/am335x/board.c 2013-01-15 21:47:42.000000000 +0000 ++++ u-boot-2013.01.rasm/board/ti/am335x/board.c 2013-04-09 18:39:45.938442622 +0100 +@@ -73,6 +73,14 @@ + return !strncmp(header.config, "SKU#02", 6); + } + ++#ifndef CONFIG_SYS_DCACHE_OFF ++void enable_caches(void) ++{ ++ /* Enable D-cache. I-cache is already enabled in start.S */ ++ dcache_enable(); ++} ++#endif ++ + /* + * Read header information from EEPROM into global structure. + */ diff --git a/systems/lctr-b2xx/patches/u-boot/patches-2014.01-rc2/01-am335x-bbb.patch b/systems/lctr-b2xx/patches/u-boot/patches-2014.01-rc2/01-am335x-bbb.patch new file mode 100644 index 0000000..7a8ad71 --- /dev/null +++ b/systems/lctr-b2xx/patches/u-boot/patches-2014.01-rc2/01-am335x-bbb.patch @@ -0,0 +1,153 @@ +diff --git a/boards.cfg b/boards.cfg +index 2128996..0d9abd8 100644 +--- a/boards.cfg ++++ b/boards.cfg +@@ -256,6 +256,7 @@ Active arm armv7 am33xx siemens dxr2 + Active arm armv7 am33xx siemens pxm2 pxm2 - Roger Meier + Active arm armv7 am33xx siemens rut rut - Roger Meier + Active arm armv7 am33xx ti am335x am335x_boneblack am335x_evm:SERIAL1,CONS_INDEX=1,EMMC_BOOT Tom Rini ++Active arm armv7 am33xx ti am335x am335x_bbb am335x_bbb:SERIAL1,CONS_INDEX=1 Ricardo Martins + Active arm armv7 am33xx ti am335x am335x_evm am335x_evm:SERIAL1,CONS_INDEX=1,NAND Tom Rini + Active arm armv7 am33xx ti am335x am335x_evm_nor am335x_evm:SERIAL1,CONS_INDEX=1,NAND,NOR Tom Rini + Active arm armv7 am33xx ti am335x am335x_evm_norboot am335x_evm:SERIAL1,CONS_INDEX=1,NOR,NOR_BOOT Tom Rini +diff --git a/include/configs/am335x_bbb.h b/include/configs/am335x_bbb.h +new file mode 100644 +index 0000000..89c5835 +--- /dev/null ++++ b/include/configs/am335x_bbb.h +@@ -0,0 +1,135 @@ ++/* ++ * 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 ++ ++#ifdef CONFIG_BOOTDELAY ++# undef CONFIG_BOOTDELAY ++#endif ++#define CONFIG_BOOTDELAY 0 ++#define CONFIG_ZERO_BOOTDELAY_CHECK 1 ++ ++#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; " \ ++ "ext2load mmc0 0:2 ${loadaddr} /boot/kernel; " \ ++ "ext2load mmc0 0:2 ${fdtaddr} /boot/board.dtb; " \ ++ "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 */