]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
Merge branch 'master' of git://git.denx.de/u-boot-sunxi
authorTom Rini <trini@konsulko.com>
Sat, 8 Apr 2017 13:28:02 +0000 (09:28 -0400)
committerTom Rini <trini@konsulko.com>
Sat, 8 Apr 2017 13:28:02 +0000 (09:28 -0400)
109 files changed:
api/api_storage.c
arch/arm/config.mk
arch/arm/cpu/arm720t/interrupts.c
arch/arm/cpu/arm920t/Makefile
arch/arm/cpu/arm920t/s3c24x0/Makefile
arch/arm/cpu/armv7m/Makefile
arch/arm/cpu/armv7m/cache.c [new file with mode: 0644]
arch/arm/cpu/armv8/zynqmp/Kconfig
arch/arm/cpu/sa1100/cpu.c
arch/arm/include/asm/armv7m.h
arch/arm/lib/Makefile
arch/arm/lib/interrupts.c
arch/arm/lib/stack.c
arch/arm/lib/vectors.S
arch/arm/mach-davinci/misc.c
arch/arm/mach-keystone/cmd_ddr3.c
arch/arm/mach-stm32/stm32f7/soc.c
arch/avr32/cpu/exception.c
arch/nds32/cpu/n1213/start.S
board/Barix/ipam390/ipam390.c
board/davinci/da8xxevm/da850evm.c
board/davinci/da8xxevm/omapl138_lcdk.c
board/davinci/ea20/ea20.c
board/lego/ev3/legoev3.c
board/omicron/calimain/calimain.c
board/st/stih410-b2260/board.c
board/sunxi/Kconfig
board/ti/am335x/board.c
board/ti/am57xx/mux_data.h
common/Kconfig
common/board_f.c
common/env_mmc.c
common/image-fdt.c
common/spl/Kconfig
common/spl/spl.c
common/xyzModem.c
configs/alt_defconfig
configs/blanche_defconfig
configs/gose_defconfig
configs/koelsch_defconfig
configs/lager_defconfig
configs/porter_defconfig
configs/salvator-x_defconfig
configs/silk_defconfig
configs/stout_defconfig
drivers/net/enc28j60.c
include/configs/advantech_dms-ba16.h
include/configs/am335x_evm.h
include/configs/am335x_igep0033.h
include/configs/aristainetos-common.h
include/configs/atngw100.h
include/configs/atngw100mkii.h
include/configs/atstk1002.h
include/configs/bcm23550_w1d.h
include/configs/bcm28155_ap.h
include/configs/bcm_ep_board.h
include/configs/cm_fx6.h
include/configs/colibri_imx7.h
include/configs/colibri_vf.h
include/configs/edb93xx.h
include/configs/el6x_common.h
include/configs/embestmx6boards.h
include/configs/ge_bx50v3.h
include/configs/grasshopper.h
include/configs/k2e_evm.h
include/configs/k2g_evm.h
include/configs/k2hk_evm.h
include/configs/k2l_evm.h
include/configs/liteboard.h
include/configs/ls1021aiot.h
include/configs/ls1021aqds.h
include/configs/ls1021atwr.h
include/configs/ls1043aqds.h
include/configs/ls1046aqds.h
include/configs/mx6sabre_common.h
include/configs/mx6slevk.h
include/configs/mx6sllevk.h
include/configs/mx6sxsabreauto.h
include/configs/mx6sxsabresd.h
include/configs/mx6ul_14x14_evk.h
include/configs/mx6ullevk.h
include/configs/mx7dsabresd.h
include/configs/mx7ulp_evk.h
include/configs/nokia_rx51.h
include/configs/omapl138_lcdk.h
include/configs/pcm052.h
include/configs/pic32mzdask.h
include/configs/pico-imx6ul.h
include/configs/s32v234evb.h
include/configs/siemens-am33x-common.h
include/configs/stm32f429-discovery.h
include/configs/stm32f746-disco.h
include/configs/sunxi-common.h
include/configs/tao3530.h
include/configs/ti814x_evm.h
include/configs/ti816x_evm.h
include/configs/ti_armv7_common.h
include/configs/ti_armv7_keystone2.h
include/configs/tqma6.h
include/configs/udoo_neo.h
include/configs/vf610twr.h
include/configs/vining_2000.h
include/configs/warp.h
include/configs/warp7.h
include/configs/woodburn_common.h
include/configs/xtfpga.h
include/environment/ti/spi.h [new file with mode: 0644]
include/xyzModem.h
scripts/config_whitelist.txt

index e80818df1c426ed6942c8b1da266c81c691b0b9e..a5357bc9cf83c50eded8509406a06809548b5b74 100644 (file)
@@ -331,10 +331,14 @@ lbasize_t dev_read_stor(void *cookie, void *buf, lbasize_t len, lbastart_t start
        if (!dev_stor_is_valid(type, dd))
                return 0;
 
+#ifdef CONFIG_BLK
+       return blk_dread(dd, start, len, buf);
+#else
        if ((dd->block_read) == NULL) {
                debugf("no block_read() for device 0x%08x\n", cookie);
                return 0;
        }
 
        return dd->block_read(dd, start, len, buf);
+#endif /* defined(CONFIG_BLK) */
 }
index 08d7d1bc6931542964c6bbfe4c2cdf037359ab8b..907c69371b944705875fc0246763fd699acbd6a4 100644 (file)
@@ -120,7 +120,7 @@ endif
 # limit ourselves to the sections we want in the .bin.
 ifdef CONFIG_ARM64
 OBJCOPYFLAGS += -j .text -j .secure_text -j .secure_data -j .rodata -j .data \
-               -j .u_boot_list -j .rela.dyn
+               -j .u_boot_list -j .rela.dyn -j .got -j .got.plt
 else
 OBJCOPYFLAGS += -j .text -j .secure_text -j .secure_data -j .rodata -j .hash \
                -j .data -j .got -j .got.plt -j .u_boot_list -j .rel.dyn
index e8ba1ae09ef600360164f728e1cdaab1bc17f940..1edb1a439a1d43f5f8505dbbc90dc8099fef4d86 100644 (file)
 
 #include <common.h>
 
-#ifdef CONFIG_USE_IRQ
-void do_irq (struct pt_regs *pt_regs)
-{
-}
-#endif
-
 #if defined(CONFIG_TEGRA)
 static ulong timestamp;
 static ulong lastdec;
index 7aa432a6fc336c5a77bab3375354f95fe617708c..8faf34b87ec55e954355d820eda5bd3eefd2301e 100644 (file)
@@ -8,7 +8,6 @@
 extra-y        = start.o
 
 obj-y  += cpu.o
-obj-$(CONFIG_USE_IRQ)  += interrupts.o
 
 obj-$(CONFIG_EP93XX) += ep93xx/
 obj-$(CONFIG_IMX) += imx/
index e44c549ba034809e1c8e6d8509b2146dbdd3dc96..e78f8a017c5d842b066e6ab884f36fc77608f4e7 100644 (file)
@@ -5,7 +5,6 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-obj-$(CONFIG_USE_IRQ) += interrupts.o
 obj-$(CONFIG_DISPLAY_CPUINFO)  += cpu_info.o
 obj-y  += speed.o
 obj-y  += timer.o
index e1a6c407e6ad160da46a68c72494a8a7e4215fdb..93c9085219306ebc1bf37d4338845fc01b98865e 100644 (file)
@@ -6,6 +6,5 @@
 #
 
 extra-y := start.o
-obj-y += cpu.o
-
+obj-y += cpu.o cache.o
 obj-$(CONFIG_SYS_ARCH_TIMER) += systick-timer.o
diff --git a/arch/arm/cpu/armv7m/cache.c b/arch/arm/cpu/armv7m/cache.c
new file mode 100644 (file)
index 0000000..162cfe3
--- /dev/null
@@ -0,0 +1,336 @@
+/*
+ * (C) Copyright 2017
+ * Vikas Manocha, ST Micoelectronics, vikas.manocha@st.com.
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
+#include <common.h>
+#include <errno.h>
+#include <asm/armv7m.h>
+#include <asm/io.h>
+
+/* Cache maintenance operation registers */
+
+#define V7M_CACHE_REG_ICIALLU          ((u32 *)(V7M_CACHE_MAINT_BASE + 0x00))
+#define INVAL_ICACHE_POU               0
+#define V7M_CACHE_REG_ICIMVALU         ((u32 *)(V7M_CACHE_MAINT_BASE + 0x08))
+#define V7M_CACHE_REG_DCIMVAC          ((u32 *)(V7M_CACHE_MAINT_BASE + 0x0C))
+#define V7M_CACHE_REG_DCISW            ((u32 *)(V7M_CACHE_MAINT_BASE + 0x10))
+#define V7M_CACHE_REG_DCCMVAU          ((u32 *)(V7M_CACHE_MAINT_BASE + 0x14))
+#define V7M_CACHE_REG_DCCMVAC          ((u32 *)(V7M_CACHE_MAINT_BASE + 0x18))
+#define V7M_CACHE_REG_DCCSW            ((u32 *)(V7M_CACHE_MAINT_BASE + 0x1C))
+#define V7M_CACHE_REG_DCCIMVAC         ((u32 *)(V7M_CACHE_MAINT_BASE + 0x20))
+#define V7M_CACHE_REG_DCCISW           ((u32 *)(V7M_CACHE_MAINT_BASE + 0x24))
+#define WAYS_SHIFT                     30
+#define SETS_SHIFT                     5
+
+/* armv7m processor feature registers */
+
+#define V7M_PROC_REG_CLIDR             ((u32 *)(V7M_PROC_FTR_BASE + 0x00))
+#define V7M_PROC_REG_CTR               ((u32 *)(V7M_PROC_FTR_BASE + 0x04))
+#define V7M_PROC_REG_CCSIDR            ((u32 *)(V7M_PROC_FTR_BASE + 0x08))
+#define MASK_NUM_WAYS                  GENMASK(12, 3)
+#define MASK_NUM_SETS                  GENMASK(27, 13)
+#define CLINE_SIZE_MASK                        GENMASK(2, 0)
+#define NUM_WAYS_SHIFT                 3
+#define NUM_SETS_SHIFT                 13
+#define V7M_PROC_REG_CSSELR            ((u32 *)(V7M_PROC_FTR_BASE + 0x0C))
+#define SEL_I_OR_D                     BIT(0)
+
+enum cache_type {
+       DCACHE,
+       ICACHE,
+};
+
+/* PoU : Point of Unification, Poc: Point of Coherency */
+enum cache_action {
+       INVALIDATE_POU,         /* i-cache invalidate by address */
+       INVALIDATE_POC,         /* d-cache invalidate by address */
+       INVALIDATE_SET_WAY,     /* d-cache invalidate by sets/ways */
+       FLUSH_POU,              /* d-cache clean by address to the PoU */
+       FLUSH_POC,              /* d-cache clean by address to the PoC */
+       FLUSH_SET_WAY,          /* d-cache clean by sets/ways */
+       FLUSH_INVAL_POC,        /* d-cache clean & invalidate by addr to PoC */
+       FLUSH_INVAL_SET_WAY,    /* d-cache clean & invalidate by set/ways */
+};
+
+#ifndef CONFIG_SYS_DCACHE_OFF
+struct dcache_config {
+       u32 ways;
+       u32 sets;
+};
+
+static void get_cache_ways_sets(struct dcache_config *cache)
+{
+       u32 cache_size_id = readl(V7M_PROC_REG_CCSIDR);
+
+       cache->ways = (cache_size_id & MASK_NUM_WAYS) >> NUM_WAYS_SHIFT;
+       cache->sets = (cache_size_id & MASK_NUM_SETS) >> NUM_SETS_SHIFT;
+}
+
+/*
+ * Return the io register to perform required cache action like clean or clean
+ * & invalidate by sets/ways.
+ */
+static u32 *get_action_reg_set_ways(enum cache_action action)
+{
+       switch (action) {
+       case INVALIDATE_SET_WAY:
+               return V7M_CACHE_REG_DCISW;
+       case FLUSH_SET_WAY:
+               return V7M_CACHE_REG_DCCSW;
+       case FLUSH_INVAL_SET_WAY:
+               return V7M_CACHE_REG_DCCISW;
+       default:
+               break;
+       };
+
+       return NULL;
+}
+
+/*
+ * Return the io register to perform required cache action like clean or clean
+ * & invalidate by adddress or range.
+ */
+static u32 *get_action_reg_range(enum cache_action action)
+{
+       switch (action) {
+       case INVALIDATE_POU:
+               return V7M_CACHE_REG_ICIMVALU;
+       case INVALIDATE_POC:
+               return V7M_CACHE_REG_DCIMVAC;
+       case FLUSH_POU:
+               return V7M_CACHE_REG_DCCMVAU;
+       case FLUSH_POC:
+               return V7M_CACHE_REG_DCCMVAC;
+       case FLUSH_INVAL_POC:
+               return V7M_CACHE_REG_DCCIMVAC;
+       default:
+               break;
+       }
+
+       return NULL;
+}
+
+static u32 get_cline_size(enum cache_type type)
+{
+       u32 size;
+
+       if (type == DCACHE)
+               clrbits_le32(V7M_PROC_REG_CSSELR, BIT(SEL_I_OR_D));
+       else if (type == ICACHE)
+               setbits_le32(V7M_PROC_REG_CSSELR, BIT(SEL_I_OR_D));
+       /* Make sure cache selection is effective for next memory access */
+       dsb();
+
+       size = readl(V7M_PROC_REG_CCSIDR) & CLINE_SIZE_MASK;
+       /* Size enocoded as 2 less than log(no_of_words_in_cache_line) base 2 */
+       size = 1 << (size + 2);
+       debug("cache line size is %d\n", size);
+
+       return size;
+}
+
+/* Perform the action like invalidate/clean on a range of cache addresses */
+static int action_cache_range(enum cache_action action, u32 start_addr,
+                             int64_t size)
+{
+       u32 cline_size;
+       u32 *action_reg;
+       enum cache_type type;
+
+       action_reg = get_action_reg_range(action);
+       if (!action_reg)
+               return -EINVAL;
+       if (action == INVALIDATE_POU)
+               type = ICACHE;
+       else
+               type = DCACHE;
+
+       /* Cache line size is minium size for the cache action */
+       cline_size = get_cline_size(type);
+       /* Align start address to cache line boundary */
+       start_addr &= ~(cline_size - 1);
+       debug("total size for cache action = %llx\n", size);
+       do {
+               writel(start_addr, action_reg);
+               size -= cline_size;
+               start_addr += cline_size;
+       } while (size > cline_size);
+
+       /* Make sure cache action is effective for next memory access */
+       dsb();
+       isb();  /* Make sure instruction stream sees it */
+       debug("cache action on range done\n");
+
+       return 0;
+}
+
+/* Perform the action like invalidate/clean on all cached addresses */
+static int action_dcache_all(enum cache_action action)
+{
+       struct dcache_config cache;
+       u32 *action_reg;
+       int i, j;
+
+       action_reg = get_action_reg_set_ways(action);
+       if (!action_reg)
+               return -EINVAL;
+
+       clrbits_le32(V7M_PROC_REG_CSSELR, BIT(SEL_I_OR_D));
+       /* Make sure cache selection is effective for next memory access */
+       dsb();
+
+       get_cache_ways_sets(&cache);    /* Get number of ways & sets */
+       debug("cache: ways= %d, sets= %d\n", cache.ways + 1, cache.sets + 1);
+       for (i = cache.sets; i >= 0; i--) {
+               for (j = cache.ways; j >= 0; j--) {
+                       writel((j << WAYS_SHIFT) | (i << SETS_SHIFT),
+                              action_reg);
+               }
+       }
+
+       /* Make sure cache action is effective for next memory access */
+       dsb();
+       isb();  /* Make sure instruction stream sees it */
+
+       return 0;
+}
+
+void dcache_enable(void)
+{
+       if (dcache_status())    /* return if cache already enabled */
+               return;
+
+       if (action_dcache_all(INVALIDATE_SET_WAY)) {
+               printf("ERR: D-cache not enabled\n");
+               return;
+       }
+
+       setbits_le32(&V7M_SCB->ccr, BIT(V7M_CCR_DCACHE));
+
+       /* Make sure cache action is effective for next memory access */
+       dsb();
+       isb();  /* Make sure instruction stream sees it */
+}
+
+void dcache_disable(void)
+{
+       if (!dcache_status())
+               return;
+
+       /* if dcache is enabled-> dcache disable & then flush */
+       if (action_dcache_all(FLUSH_SET_WAY)) {
+               printf("ERR: D-cache not flushed\n");
+               return;
+       }
+
+       clrbits_le32(&V7M_SCB->ccr, BIT(V7M_CCR_DCACHE));
+
+       /* Make sure cache action is effective for next memory access */
+       dsb();
+       isb();  /* Make sure instruction stream sees it */
+}
+
+int dcache_status(void)
+{
+       return (readl(&V7M_SCB->ccr) & BIT(V7M_CCR_DCACHE)) != 0;
+}
+
+void invalidate_dcache_range(unsigned long start, unsigned long stop)
+{
+       if (action_cache_range(INVALIDATE_POC, start, stop - start)) {
+               printf("ERR: D-cache not invalidated\n");
+               return;
+       }
+}
+
+void flush_dcache_range(unsigned long start, unsigned long stop)
+{
+       if (action_cache_range(FLUSH_POC, start, stop - start)) {
+               printf("ERR: D-cache not flushed\n");
+               return;
+       }
+}
+#else
+void dcache_enable(void)
+{
+       return;
+}
+
+void dcache_disable(void)
+{
+       return;
+}
+
+int dcache_status(void)
+{
+       return 0;
+}
+#endif
+
+#ifndef CONFIG_SYS_ICACHE_OFF
+
+void invalidate_icache_all(void)
+{
+       writel(INVAL_ICACHE_POU, V7M_CACHE_REG_ICIALLU);
+
+       /* Make sure cache action is effective for next memory access */
+       dsb();
+       isb();  /* Make sure instruction stream sees it */
+}
+
+void icache_enable(void)
+{
+       if (icache_status())
+               return;
+
+       invalidate_icache_all();
+       setbits_le32(&V7M_SCB->ccr, BIT(V7M_CCR_ICACHE));
+
+       /* Make sure cache action is effective for next memory access */
+       dsb();
+       isb();  /* Make sure instruction stream sees it */
+}
+
+int icache_status(void)
+{
+       return (readl(&V7M_SCB->ccr) & BIT(V7M_CCR_ICACHE)) != 0;
+}
+
+void icache_disable(void)
+{
+       if (!icache_status())
+               return;
+
+       isb();  /* flush pipeline */
+       clrbits_le32(&V7M_SCB->ccr, BIT(V7M_CCR_ICACHE));
+       isb();  /* subsequent instructions fetch see cache disable effect */
+}
+#else
+void icache_enable(void)
+{
+       return;
+}
+
+void icache_disable(void)
+{
+       return;
+}
+
+int icache_status(void)
+{
+       return 0;
+}
+#endif
+
+void enable_caches(void)
+{
+#ifndef CONFIG_SYS_ICACHE_OFF
+       icache_enable();
+#endif
+#ifndef CONFIG_SYS_DCACHE_OFF
+       dcache_enable();
+#endif
+}
index 499e1ddb224b9c766b80e4042401ccde24e18e05..5ac48ebc4d1aa904b4af16a00844106fa1ab6293 100644 (file)
@@ -13,7 +13,7 @@ config SPL_LIBGENERIC_SUPPORT
        default y
 
 config SPL_MMC_SUPPORT
-       default y
+       default y if MMC_SDHCI_ZYNQ
 
 config SPL_SERIAL_SUPPORT
        default y
index 4c9752a1c82b8829e9e2c0fed30457a532037cf9..59585af83a696b4a95e198ae42c8714aa2928733 100644 (file)
 #include <asm/system.h>
 #include <asm/io.h>
 
-#ifdef CONFIG_USE_IRQ
-DECLARE_GLOBAL_DATA_PTR;
-#endif
-
 static void cache_flush(void);
 
 int cleanup_before_linux (void)
index 54d8a2bdff6852f44996f17905fedc2edcf7c21c..ebf0f1704281e3903017e4c0c0f7ba9dded76a9c 100644 (file)
 .thumb
 #endif
 
-#define V7M_SCB_BASE           0xE000ED00
-#define V7M_MPU_BASE           0xE000ED90
+/* armv7m fixed base addresses */
+#define V7M_SCS_BASE           0xE000E000
+#define V7M_NVIC_BASE          (V7M_SCS_BASE + 0x0100)
+#define V7M_SCB_BASE           (V7M_SCS_BASE + 0x0D00)
+#define V7M_PROC_FTR_BASE      (V7M_SCS_BASE + 0x0D78)
+#define V7M_MPU_BASE           (V7M_SCS_BASE + 0x0D90)
+#define V7M_FPU_BASE           (V7M_SCS_BASE + 0x0F30)
+#define V7M_CACHE_MAINT_BASE   (V7M_SCS_BASE + 0x0F50)
+#define V7M_ACCESS_CNTL_BASE   (V7M_SCS_BASE + 0x0F90)
 
 #define V7M_SCB_VTOR           0x08
 
@@ -27,6 +34,18 @@ struct v7m_scb {
        uint32_t icsr;          /* Interrupt Control and State Register */
        uint32_t vtor;          /* Vector Table Offset Register */
        uint32_t aircr;         /* App Interrupt and Reset Control Register */
+       uint32_t scr;           /* offset 0x10: System Control Register */
+       uint32_t ccr;           /* offset 0x14: Config and Control Register */
+       uint32_t shpr1;         /* offset 0x18: System Handler Priority Reg 1 */
+       uint32_t shpr2;         /* offset 0x1c: System Handler Priority Reg 2 */
+       uint32_t shpr3;         /* offset 0x20: System Handler Priority Reg 3 */
+       uint32_t shcrs;         /* offset 0x24: System Handler Control State */
+       uint32_t cfsr;          /* offset 0x28: Configurable Fault Status Reg */
+       uint32_t hfsr;          /* offset 0x2C: HardFault Status Register */
+       uint32_t res;           /* offset 0x30: reserved */
+       uint32_t mmar;          /* offset 0x34: MemManage Fault Address Reg */
+       uint32_t bfar;          /* offset 0x38: BusFault Address Reg */
+       uint32_t afsr;          /* offset 0x3C: Auxiliary Fault Status Reg */
 };
 #define V7M_SCB                                ((struct v7m_scb *)V7M_SCB_BASE)
 
@@ -39,6 +58,9 @@ struct v7m_scb {
 
 #define V7M_ICSR_VECTACT_MSK           0xFF
 
+#define V7M_CCR_DCACHE                 16
+#define V7M_CCR_ICACHE                 17
+
 struct v7m_mpu {
        uint32_t type;          /* Type Register */
        uint32_t ctrl;          /* Control Register */
index b95e10599b6a0f3b914b46f68877bb2ebcca09d4..6e96cfb0c5dd41a8bd87b26084b8f91a9543997c 100644 (file)
@@ -55,8 +55,10 @@ endif
 
 obj-y  += cache.o
 ifndef CONFIG_ARM64
+ifndef CONFIG_CPU_V7M
 obj-y  += cache-cp15.o
 endif
+endif
 
 obj-y  += psci-dt.o
 
index ed83043abb4d797205e29000aecf7a0dfd141e12..066c172bb32420ed51553fee64e9845984bcdbad 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#ifdef CONFIG_USE_IRQ
-int interrupt_init (void)
-{
-       unsigned long cpsr;
-
-       /*
-        * setup up stacks if necessary
-        */
-       IRQ_STACK_START = gd->irq_sp - 4;
-       IRQ_STACK_START_IN = gd->irq_sp + 8;
-       FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ;
-
-
-       __asm__ __volatile__("mrs %0, cpsr\n"
-                            : "=r" (cpsr)
-                            :
-                            : "memory");
-
-       __asm__ __volatile__("msr cpsr_c, %0\n"
-                            "mov sp, %1\n"
-                            :
-                            : "r" (IRQ_MODE | I_BIT | F_BIT | (cpsr & ~FIQ_MODE)),
-                              "r" (IRQ_STACK_START)
-                            : "memory");
-
-       __asm__ __volatile__("msr cpsr_c, %0\n"
-                            "mov sp, %1\n"
-                            :
-                            : "r" (FIQ_MODE | I_BIT | F_BIT | (cpsr & ~IRQ_MODE)),
-                              "r" (FIQ_STACK_START)
-                            : "memory");
-
-       __asm__ __volatile__("msr cpsr_c, %0"
-                            :
-                            : "r" (cpsr)
-                            : "memory");
-
-       return arch_interrupt_init();
-}
-
-/* enable IRQ interrupts */
-void enable_interrupts (void)
-{
-       unsigned long temp;
-       __asm__ __volatile__("mrs %0, cpsr\n"
-                            "bic %0, %0, #0x80\n"
-                            "msr cpsr_c, %0"
-                            : "=r" (temp)
-                            :
-                            : "memory");
-}
-
-
-/*
- * disable IRQ/FIQ interrupts
- * returns true if interrupts had been enabled before we disabled them
- */
-int disable_interrupts (void)
-{
-       unsigned long old,temp;
-       __asm__ __volatile__("mrs %0, cpsr\n"
-                            "orr %1, %0, #0xc0\n"
-                            "msr cpsr_c, %1"
-                            : "=r" (old), "=r" (temp)
-                            :
-                            : "memory");
-       return (old & 0x80) == 0;
-}
-#else
 int interrupt_init (void)
 {
        /*
@@ -113,8 +44,6 @@ int disable_interrupts (void)
 {
        return 0;
 }
-#endif
-
 
 void bad_mode (void)
 {
@@ -212,7 +141,6 @@ void do_fiq (struct pt_regs *pt_regs)
        bad_mode ();
 }
 
-#ifndef CONFIG_USE_IRQ
 void do_irq (struct pt_regs *pt_regs)
 {
        efi_restore_gd();
@@ -220,4 +148,3 @@ void do_irq (struct pt_regs *pt_regs)
        show_regs (pt_regs);
        bad_mode ();
 }
-#endif
index 4614d2657cdd60c6b9b66d0628728b6344eb40a6..737622d26f062412041bc723d52812a98795388b 100644 (file)
@@ -25,14 +25,6 @@ int arch_reserve_stacks(void)
        gd->irq_sp = gd->start_addr_sp;
 
 # if !defined(CONFIG_ARM64)
-#  ifdef CONFIG_USE_IRQ
-       gd->start_addr_sp -= (CONFIG_STACKSIZE_IRQ + CONFIG_STACKSIZE_FIQ);
-       debug("Reserving %zu Bytes for IRQ stack at: %08lx\n",
-             CONFIG_STACKSIZE_IRQ + CONFIG_STACKSIZE_FIQ, gd->start_addr_sp);
-
-       /* 8-byte alignment for ARM ABI compliance */
-       gd->start_addr_sp &= ~0x07;
-#  endif
        /* leave 3 words for abort-stack, plus 1 for alignment */
        gd->start_addr_sp -= 16;
 # endif
index 9fe7415b66c7ec64b7657b6595633dba909d1c49..f53b1e9a2bc118c623e0aa7424bd1a4074903bab 100644 (file)
@@ -128,19 +128,6 @@ fiq:
 IRQ_STACK_START_IN:
        .word   0x0badc0de
 
-#ifdef CONFIG_USE_IRQ
-/* IRQ stack memory (calculated at run-time) */
-.globl IRQ_STACK_START
-IRQ_STACK_START:
-       .word   0x0badc0de
-
-/* IRQ stack memory (calculated at run-time) */
-.globl FIQ_STACK_START
-FIQ_STACK_START:
-       .word 0x0badc0de
-
-#endif /* CONFIG_USE_IRQ */
-
 @
 @ IRQ stack frame.
 @
@@ -264,24 +251,6 @@ not_used:
        bad_save_user_regs
        bl      do_not_used
 
-#ifdef CONFIG_USE_IRQ
-
-       .align  5
-irq:
-       get_irq_stack
-       irq_save_user_regs
-       bl      do_irq
-       irq_restore_user_regs
-
-       .align  5
-fiq:
-       get_fiq_stack
-       /* someone ought to write a more effiction fiq_save_user_regs */
-       irq_save_user_regs
-       bl      do_fiq
-       irq_restore_user_regs
-
-#else
 
        .align  5
 irq:
@@ -295,6 +264,4 @@ fiq:
        bad_save_user_regs
        bl      do_fiq
 
-#endif /* CONFIG_USE_IRQ */
-
 #endif /* CONFIG_SPL_BUILD */
index e1064e0a2f4d5abaa7d3f2c18a591856417ec739..ec331ba6bb89e16033b751d851c1ebe8e9efd250 100644 (file)
@@ -107,7 +107,6 @@ void davinci_sync_env_enetaddr(uint8_t *rom_enetaddr)
 #endif /* CONFIG_DRIVER_TI_EMAC */
 
 #if defined(CONFIG_SOC_DA8XX)
-#ifndef CONFIG_USE_IRQ
 void irq_init(void)
 {
        /*
@@ -122,7 +121,6 @@ void irq_init(void)
        writel(0xffffffff, &davinci_aintc_regs->ecr2);
        writel(0xffffffff, &davinci_aintc_regs->ecr3);
 }
-#endif
 
 /*
  * Enable PSC for various peripherals.
index ea78ad8fd53b292bfa12ca2d72b4a30320979fe9..d3eab0711c3ddb076123a27c35198538ff096725 100644 (file)
 DECLARE_GLOBAL_DATA_PTR;
 
 #define DDR_MIN_ADDR           CONFIG_SYS_SDRAM_BASE
+#define STACKSIZE              (512 << 10)     /* 512 KiB */
 
 #define DDR_REMAP_ADDR         0x80000000
 #define ECC_START_ADDR1                ((DDR_MIN_ADDR - DDR_REMAP_ADDR) >> 17)
 
 #define ECC_END_ADDR1          (((gd->start_addr_sp - DDR_REMAP_ADDR - \
-                                CONFIG_STACKSIZE) >> 17) - 2)
+                                STACKSIZE) >> 17) - 2)
 
 #define DDR_TEST_BURST_SIZE    1024
 
index 06af631cc107096840c41d089895551093f2d801..6f9704ab78853cdab55ee4a65bcc2adf18abf466 100644 (file)
@@ -58,6 +58,8 @@ int arch_cpu_init(void)
                 (V7M_MPU_RASR_XN_ENABLE
                         | V7M_MPU_RASR_AP_RW_RW
                         | 0x01 << V7M_MPU_RASR_TEX_SHIFT
+                        | 0x01 << V7M_MPU_RASR_B_SHIFT
+                        | 0x01 << V7M_MPU_RASR_C_SHIFT
                         | V7M_MPU_RASR_SIZE_8MB
                         | V7M_MPU_RASR_EN)
                         , &V7M_MPU->rasr
index d6991f6668d3326bfaf205719f9f421bbfff7f25..22eab03b12ca1b3f3e62d8d1c34ffaff6e4d5ddc 100644 (file)
@@ -10,6 +10,8 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#define STACKSIZE      2048
+
 static const char * const cpu_modes[8] = {
        "Application", "Supervisor", "Interrupt level 0", "Interrupt level 1",
        "Interrupt level 2", "Interrupt level 3", "Exception", "NMI"
@@ -96,7 +98,7 @@ void do_unknown_exception(unsigned int ecr, struct pt_regs *regs)
        printf("CPU Mode: %s\n", cpu_modes[mode]);
 
        /* Avoid exception loops */
-       if (regs->sp < (gd->start_addr_sp - CONFIG_STACKSIZE) ||
+       if (regs->sp < (gd->start_addr_sp - STACKSIZE) ||
            regs->sp >= gd->start_addr_sp)
                printf("\nStack pointer seems bogus, won't do stack dump\n");
        else
index 7b2b637af33b145d63269803422cd981e180185c..99971fdbdba43ec15dafb1ed2fe51ef563e065ed 100644 (file)
@@ -90,24 +90,6 @@ _start:      j       reset
 _TEXT_BASE:
        .word   CONFIG_SYS_TEXT_BASE
 
-/*
- * These are defined in the board-specific linker script.
- * Subtracting _start from them lets the linker put their
- * relative position in the executable instead of leaving
- * them null.
- */
-#ifdef CONFIG_USE_IRQ
-/* IRQ stack memory (calculated at run-time) */
-.globl IRQ_STACK_START
-IRQ_STACK_START:
-       .word 0x0badc0de
-
-/* IRQ stack memory (calculated at run-time) */
-.globl FIQ_STACK_START
-FIQ_STACK_START:
-       .word 0x0badc0de
-#endif
-
 /* IRQ stack memory (calculated at run-time) + 8 bytes */
 .globl IRQ_STACK_START_IN
 IRQ_STACK_START_IN:
index 9747f329041a498cc715923efea7c7c05d73ba04..fd1965d9f50bc084cd08554a07a5e250c743730d 100644 (file)
@@ -188,9 +188,7 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-#ifndef CONFIG_USE_IRQ
        irq_init();
-#endif
 
        /* arch number of the board */
        gd->bd->bi_arch_number = MACH_TYPE_DAVINCI_DA850_EVM;
index 37d2f54d3bdd9bbed85ed82622c2a7d24b8b7541..9e17eb865d0a8280d67fb13be860134eaff88556 100644 (file)
@@ -323,9 +323,7 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-#ifndef CONFIG_USE_IRQ
        irq_init();
-#endif
 
 #ifdef CONFIG_NAND_DAVINCI
        /*
index 3ce1992c1dc2afb22a88498020d024fc20f4b4f0..d94128597760f3e38e6dd7cb5b738ba1089f0d62 100644 (file)
@@ -171,9 +171,7 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-#ifndef CONFIG_USE_IRQ
        irq_init();
-#endif
 
        /* arch number of the board */
        gd->bd->bi_arch_number = MACH_TYPE_OMAPL138_LCDK;
index 66804d75bd045d9a01a01f400cabbdc9abc7be5a..6edfa17a9119f5803d09f6c9e8bc2759a10c6873 100644 (file)
@@ -203,9 +203,7 @@ int board_early_init_f(void)
        /* Set LCD_B_PWR low to power down LCD Backlight*/
        gpio_direction_output(102, 0);
 
-#ifndef CONFIG_USE_IRQ
        irq_init();
-#endif
 
        /*
         * NAND CS setup - cycle counts based on da850evm NAND timings in the
index 7e1766c87173d81155a920ad3b93e9d651e5a66c..0ad33eaeae05b9885e426c1895b692293b5cee89 100644 (file)
@@ -145,9 +145,7 @@ int board_early_init_f(void)
 
 int board_init(void)
 {
-#ifndef CONFIG_USE_IRQ
        irq_init();
-#endif
 
        /* arch number of the board */
        /* LEGO didn't register for a unique number and uses da850evm */
index 32f2b20183833b88d464877b5d20aaa6365e5e51..80a142eaf899b29d08d5c458917acb0222bf010d 100644 (file)
@@ -100,9 +100,7 @@ int board_init(void)
 {
        int val;
 
-#ifndef CONFIG_USE_IRQ
        irq_init();
-#endif
 
        /* address of boot parameters */
        gd->bd->bi_boot_params = LINUX_BOOT_PARAM_ADDR;
index 1e7d4217d3f1761d793342f5793d070895478aee..92b06955936d043a2325bc5403e8ddc7193fb9a4 100644 (file)
@@ -24,6 +24,14 @@ int dram_init_banksize(void)
        return 0;
 }
 
+#ifndef CONFIG_SYS_DCACHE_OFF
+void enable_caches(void)
+{
+       /* Enable D-cache. I-cache is already enabled in start.S */
+       dcache_enable();
+}
+#endif
+
 int board_init(void)
 {
        return 0;
index 3e0e2624737e9e34322655a10c76ce0bb61d80e4..a667c9e5c5c115dd7c33a95678888751195ecf0e 100644 (file)
@@ -3,6 +3,7 @@ if ARCH_SUNXI
 config IDENT_STRING
        default " Allwinner Technology"
 
+# FIXME: Should not redefine these Kconfig symbols
 config PRE_CONSOLE_BUFFER
        default y
 
@@ -19,6 +20,7 @@ config SPL_LIBGENERIC_SUPPORT
        default y
 
 config SPL_MMC_SUPPORT
+       depends on SPL && GENERIC_MMC
        default y
 
 config SPL_POWER_SUPPORT
index 8eaf3e9a5c95023246387bc8fb1b9f615a839088..3e842d318738d8cadc0bd07d628e6b88cd78a441 100644 (file)
@@ -651,6 +651,21 @@ int board_late_init(void)
 #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
        char *name = NULL;
 
+       if (board_is_bone_lt()) {
+               /* BeagleBoard.org BeagleBone Black Wireless: */
+               if (!strncmp(board_ti_get_rev(), "BWA", 3)) {
+                       name = "BBBW";
+               }
+               /* SeeedStudio BeagleBone Green Wireless */
+               if (!strncmp(board_ti_get_rev(), "GW1", 3)) {
+                       name = "BBGW";
+               }
+               /* BeagleBoard.org BeagleBone Blue */
+               if (!strncmp(board_ti_get_rev(), "BLA", 3)) {
+                       name = "BBBL";
+               }
+       }
+
        if (board_is_bbg1())
                name = "BBG1";
        set_board_info_env(name);
index 5485212e540025dd2ecd6b38a492f58160afb6d8..aff274c74f9c13c6792c61145aa4efabe1e722a0 100644 (file)
@@ -212,7 +212,7 @@ const struct pad_conf_entry core_padconf_array_essential_x15[] = {
        {MCASP5_FSX, (M3 | PIN_OUTPUT_PULLDOWN)},       /* mcasp5_fsx.uart9_txd */
        {MCASP5_AXR0, (M3 | PIN_INPUT_PULLDOWN)},       /* mcasp5_axr0.uart9_ctsn */
        {MCASP5_AXR1, (M3 | PIN_OUTPUT_PULLUP)},        /* mcasp5_axr1.uart9_rtsn */
-       {MMC1_CLK, (M0 | PIN_OUTPUT_PULLUP)},   /* mmc1_clk.mmc1_clk */
+       {MMC1_CLK, (M0 | PIN_INPUT_PULLUP)},    /* mmc1_clk.mmc1_clk */
        {MMC1_CMD, (M0 | PIN_INPUT_PULLUP)},    /* mmc1_cmd.mmc1_cmd */
        {MMC1_DAT0, (M0 | PIN_INPUT_PULLUP)},   /* mmc1_dat0.mmc1_dat0 */
        {MMC1_DAT1, (M0 | PIN_INPUT_PULLUP)},   /* mmc1_dat1.mmc1_dat1 */
@@ -221,7 +221,7 @@ const struct pad_conf_entry core_padconf_array_essential_x15[] = {
        {MMC1_SDCD, (M14 | PIN_INPUT_PULLUP)},  /* mmc1_sdcd.gpio6_27 */
        {GPIO6_10, (M10 | PIN_OUTPUT_PULLDOWN)},        /* gpio6_10.ehrpwm2A */
        {GPIO6_11, (M0 | PIN_INPUT_PULLUP)},    /* gpio6_11.gpio6_11 */
-       {MMC3_CLK, (M0 | PIN_OUTPUT_PULLUP | MANUAL_MODE)},     /* mmc3_clk.mmc3_clk */
+       {MMC3_CLK, (M0 | PIN_INPUT_PULLUP | MANUAL_MODE)},      /* mmc3_clk.mmc3_clk */
        {MMC3_CMD, (M0 | PIN_INPUT_PULLUP | MANUAL_MODE)},      /* mmc3_cmd.mmc3_cmd */
        {MMC3_DAT0, (M0 | PIN_INPUT_PULLUP | MANUAL_MODE)},     /* mmc3_dat0.mmc3_dat0 */
        {MMC3_DAT1, (M0 | PIN_INPUT_PULLUP | MANUAL_MODE)},     /* mmc3_dat1.mmc3_dat1 */
index 04a73e07a22a7c13d765a6881a9316661421fc54..1879aefaf83d3e3c5b85a9113879f18cbe767e12 100644 (file)
@@ -90,7 +90,7 @@ config BOOTSTAGE_STASH_ADDR
 
 config BOOTSTAGE_STASH_SIZE
        hex "Size of boot timing stash region"
-       default 4096
+       default 0x1000
        help
          This should be large enough to hold the bootstage stash. A value of
          4096 (4KiB) is normally plenty.
index 224fbed92f196aca8fda4b8ed794b951d1fd4355..ff078866655a89af0a7ae4bce1a43cbfae03c077 100644 (file)
@@ -137,11 +137,6 @@ static int display_text_info(void)
                text_base, bss_start, bss_end);
 #endif
 
-#ifdef CONFIG_USE_IRQ
-       debug("IRQ Stack: %08lx\n", IRQ_STACK_START);
-       debug("FIQ Stack: %08lx\n", FIQ_STACK_START);
-#endif
-
        return 0;
 }
 
index 16f6a175141346d971de0b7dbd176f0e6cf6744f..a5d14d448c8f56fff3afcc64d405ab4486fbe031 100644 (file)
@@ -82,10 +82,6 @@ static int mmc_set_env_part(struct mmc *mmc)
        int dev = mmc_get_env_dev();
        int ret = 0;
 
-#ifdef CONFIG_SPL_BUILD
-       dev = 0;
-#endif
-
        env_mmc_orig_hwpart = mmc_get_blk_desc(mmc)->hwpart;
        ret = blk_select_hwpart_devnum(IF_TYPE_MMC, dev, part);
        if (ret)
@@ -116,9 +112,6 @@ static void fini_mmc_for_env(struct mmc *mmc)
 #ifdef CONFIG_SYS_MMC_ENV_PART
        int dev = mmc_get_env_dev();
 
-#ifdef CONFIG_SPL_BUILD
-       dev = 0;
-#endif
        blk_select_hwpart_devnum(IF_TYPE_MMC, dev, env_mmc_orig_hwpart);
 #endif
 }
@@ -223,10 +216,6 @@ void env_relocate_spec(void)
        ALLOC_CACHE_ALIGN_BUFFER(env_t, tmp_env1, 1);
        ALLOC_CACHE_ALIGN_BUFFER(env_t, tmp_env2, 1);
 
-#ifdef CONFIG_SPL_BUILD
-       dev = 0;
-#endif
-
        mmc = find_mmc_device(dev);
 
        errmsg = init_mmc_for_env(mmc);
@@ -306,10 +295,6 @@ void env_relocate_spec(void)
        int dev = mmc_get_env_dev();
        const char *errmsg;
 
-#ifdef CONFIG_SPL_BUILD
-       dev = 0;
-#endif
-
        mmc = find_mmc_device(dev);
 
        errmsg = init_mmc_for_env(mmc);
index e7540be8d631c4a1cbe08e2fb7ed70306dfa61a9..7468b902b8d4123308a3630d8c22d3f8b8b9f0df 100644 (file)
@@ -494,7 +494,6 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob,
                        goto err;
                }
        }
-       fdt_fixup_ethernet(blob);
 
        /* Delete the old LMB reservation */
        if (lmb)
index 6752b5c65cccd806745959e8be91166148744673..ea6fbb60adf792269b0a383fa72969c003c41c57 100644 (file)
@@ -371,7 +371,7 @@ config SPL_LIBGENERIC_SUPPORT
 
 config SPL_MMC_SUPPORT
        bool "Support MMC"
-       depends on SPL
+       depends on SPL && GENERIC_MMC
        help
          Enable support for MMC (Multimedia Card) within SPL. This enables
          the MMC protocol implementation and allows any enabled drivers to
index 0d1e08245f6afa70392f3d8715f1cf0aa75c8d8f..a3e73b87bc6e2d19be43016193fdf67d85a80296 100644 (file)
@@ -85,6 +85,9 @@ void spl_set_header_raw_uboot(struct spl_image_info *spl_image)
 {
        spl_image->size = CONFIG_SYS_MONITOR_LEN;
        spl_image->entry_point = CONFIG_SYS_UBOOT_START;
+#ifdef CONFIG_CPU_V7M
+       spl_image->entry_point |= 0x1;
+#endif
        spl_image->load_addr = CONFIG_SYS_TEXT_BASE;
        spl_image->os = IH_OS_U_BOOT;
        spl_image->name = "U-Boot";
index e0d87dbfec95af68bf72be382cc931aeb60c9ea5..a0c5dfeece505ad07f9973ee7706fb2451ee02b4 100644 (file)
 #define CAN 0x18
 #define EOF 0x1A               /* ^Z for DOS officionados */
 
-#define USE_YMODEM_LENGTH
-
 /* Data & state local to the protocol */
 static struct
 {
-#ifdef REDBOOT
-  hal_virtual_comm_table_t *__chan;
-#else
   int *__chan;
-#endif
   unsigned char pkt[1024], *bufp;
   unsigned char blk, cblk, crc1, crc2;
   unsigned char next_blk;      /* Expected block */
   int len, mode, total_retries;
   int total_SOH, total_STX, total_CAN;
   bool crc_mode, at_eof, tx_ack;
-#ifdef USE_YMODEM_LENGTH
   unsigned long file_length, read_length;
-#endif
 } xyz;
 
 #define xyzModem_CHAR_TIMEOUT            2000  /* 2 seconds */
@@ -66,7 +58,6 @@ static struct
 #define xyzModem_CAN_COUNT                3    /* Wait for 3 CAN before quitting */
 
 
-#ifndef REDBOOT                        /*SB */
 typedef int cyg_int32;
 static int
 CYGACC_COMM_IF_GETC_TIMEOUT (char chan, char *c)
@@ -156,17 +147,7 @@ parse_num (char *s, unsigned long *val, char **es, char *delim)
       if (_is_hex (c) && ((digit = _from_hex (c)) < radix))
        {
          /* Valid digit */
-#ifdef CYGPKG_HAL_MIPS
-         /* FIXME: tx49 compiler generates 0x2539018 for MUL which */
-         /* isn't any good. */
-         if (16 == radix)
-           result = result << 4;
-         else
-           result = 10 * result;
-         result += digit;
-#else
          result = (result * radix) + digit;
-#endif
        }
       else
        {
@@ -190,54 +171,15 @@ parse_num (char *s, unsigned long *val, char **es, char *delim)
   return true;
 }
 
-#endif
 
-#define USE_SPRINTF
 #ifdef DEBUG
-#ifndef USE_SPRINTF
-/*
- * Note: this debug setup only works if the target platform has two serial ports
- * available so that the other one (currently only port 1) can be used for debug
- * messages.
- */
-static int
-zm_dprintf (char *fmt, ...)
-{
-  int cur_console;
-  va_list args;
-
-  va_start (args, fmt);
-#ifdef REDBOOT
-  cur_console =
-    CYGACC_CALL_IF_SET_CONSOLE_COMM
-    (CYGNUM_CALL_IF_SET_COMM_ID_QUERY_CURRENT);
-  CYGACC_CALL_IF_SET_CONSOLE_COMM (1);
-#endif
-  diag_vprintf (fmt, args);
-#ifdef REDBOOT
-  CYGACC_CALL_IF_SET_CONSOLE_COMM (cur_console);
-#endif
-}
-
-static void
-zm_flush (void)
-{
-}
-
-#else
 /*
  * Note: this debug setup works by storing the strings in a fixed buffer
  */
-#define FINAL
-#ifdef FINAL
-static char *zm_out = (char *) 0x00380000;
-static char *zm_out_start = (char *) 0x00380000;
-#else
-static char zm_buf[8192];
-static char *zm_out = zm_buf;
-static char *zm_out_start = zm_buf;
+static char zm_debug_buf[8192];
+static char *zm_out = zm_debug_buf;
+static char *zm_out_start = zm_debug_buf;
 
-#endif
 static int
 zm_dprintf (char *fmt, ...)
 {
@@ -253,23 +195,13 @@ zm_dprintf (char *fmt, ...)
 static void
 zm_flush (void)
 {
-#ifdef REDBOOT
-  char *p = zm_out_start;
-  while (*p)
-    mon_write_char (*p++);
-#endif
   zm_out = zm_out_start;
 }
-#endif
 
 static void
 zm_dump_buf (void *buf, int len)
 {
-#ifdef REDBOOT
-  diag_vdump_buf_with_offset (zm_dprintf, buf, len, 0);
-#else
 
-#endif
 }
 
 static unsigned char zm_buf[2048];
@@ -476,9 +408,6 @@ xyzModem_get_hdr (void)
 int
 xyzModem_stream_open (connection_info_t * info, int *err)
 {
-#ifdef REDBOOT
-  int console_chan;
-#endif
   int stat = 0;
   int retries = xyzModem_MAX_RETRIES;
   int crc_retries = xyzModem_MAX_RETRIES_WITH_CRC;
@@ -492,29 +421,9 @@ xyzModem_stream_open (connection_info_t * info, int *err)
     }
 #endif
 
-#ifdef REDBOOT
-  /* Set up the I/O channel.  Note: this allows for using a different port in the future */
-  console_chan =
-    CYGACC_CALL_IF_SET_CONSOLE_COMM
-    (CYGNUM_CALL_IF_SET_COMM_ID_QUERY_CURRENT);
-  if (info->chan >= 0)
-    {
-      CYGACC_CALL_IF_SET_CONSOLE_COMM (info->chan);
-    }
-  else
-    {
-      CYGACC_CALL_IF_SET_CONSOLE_COMM (console_chan);
-    }
-  xyz.__chan = CYGACC_CALL_IF_CONSOLE_PROCS ();
-
-  CYGACC_CALL_IF_SET_CONSOLE_COMM (console_chan);
-  CYGACC_COMM_IF_CONTROL (*xyz.__chan, __COMMCTL_SET_TIMEOUT,
-                         xyzModem_CHAR_TIMEOUT);
-#else
 /* TODO: CHECK ! */
   int dummy = 0;
   xyz.__chan = &dummy;
-#endif
   xyz.len = 0;
   xyz.crc_mode = true;
   xyz.at_eof = false;
@@ -524,10 +433,8 @@ xyzModem_stream_open (connection_info_t * info, int *err)
   xyz.total_SOH = 0;
   xyz.total_STX = 0;
   xyz.total_CAN = 0;
-#ifdef USE_YMODEM_LENGTH
   xyz.read_length = 0;
   xyz.file_length = 0;
-#endif
 
   CYGACC_COMM_IF_PUTC (*xyz.__chan, (xyz.crc_mode ? 'C' : NAK));
 
@@ -546,12 +453,10 @@ xyzModem_stream_open (connection_info_t * info, int *err)
          /* Y-modem file information header */
          if (xyz.blk == 0)
            {
-#ifdef USE_YMODEM_LENGTH
              /* skip filename */
              while (*xyz.bufp++);
              /* get the length */
              parse_num ((char *) xyz.bufp, &xyz.file_length, NULL, " ");
-#endif
              /* The rest of the file name data block quietly discarded */
              xyz.tx_ack = true;
            }
@@ -604,13 +509,8 @@ xyzModem_stream_read (char *buf, int size, int *err)
                                ("ACK block %d (%d)\n", xyz.blk, __LINE__));
                      xyz.next_blk = (xyz.next_blk + 1) & 0xFF;
 
-#if defined(xyzModem_zmodem) || defined(USE_YMODEM_LENGTH)
                      if (xyz.mode == xyzModem_xmodem || xyz.file_length == 0)
                        {
-#else
-                     if (1)
-                       {
-#endif
                          /* Data blocks can be padded with ^Z (EOF) characters */
                          /* This code tries to detect and remove them */
                          if ((xyz.bufp[xyz.len - 1] == EOF) &&
@@ -625,7 +525,6 @@ xyzModem_stream_read (char *buf, int size, int *err)
                            }
                        }
 
-#ifdef USE_YMODEM_LENGTH
                      /*
                       * See if accumulated length exceeds that of the file.
                       * If so, reduce size (i.e., cut out pad bytes)
@@ -640,7 +539,6 @@ xyzModem_stream_read (char *buf, int size, int *err)
                              xyz.len -= (xyz.read_length - xyz.file_length);
                            }
                        }
-#endif
                      break;
                    }
                  else if (xyz.blk == ((xyz.next_blk - 1) & 0xFF))
@@ -809,10 +707,3 @@ xyzModem_error (int err)
 /*
  * RedBoot interface
  */
-#if 0                          /* SB */
-GETC_IO_FUNCS (xyzModem_io, xyzModem_stream_open, xyzModem_stream_close,
-              xyzModem_stream_terminate, xyzModem_stream_read,
-              xyzModem_error);
-RedBoot_load (xmodem, xyzModem_io, false, false, xyzModem_xmodem);
-RedBoot_load (ymodem, xyzModem_io, false, false, xyzModem_ymodem);
-#endif
index afbfb0d4a8d85a5334d7591214896a3ddc86dcb9..b8e2864ff4ba7d1bff74483f5d243f9ef4829846 100644 (file)
@@ -2,9 +2,6 @@ CONFIG_ARM=y
 CONFIG_ARCH_RMOBILE=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_TARGET_ALT=y
-CONFIG_BOOTSTAGE_USER_COUNT=0x20
-CONFIG_BOOTSTAGE_STASH_ADDR=0x0
-CONFIG_BOOTSTAGE_STASH_SIZE=0x4096
 CONFIG_BOOTDELAY=3
 CONFIG_VERSION_VARIABLE=y
 CONFIG_CMD_BOOTZ=y
index 70da41d08c686f6d72a98ea23c89e09d4d4884c0..5664421c129aee2eecc56c36ab4e05f95ce65f12 100644 (file)
@@ -2,9 +2,6 @@ CONFIG_ARM=y
 CONFIG_ARCH_RMOBILE=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_TARGET_BLANCHE=y
-CONFIG_BOOTSTAGE_USER_COUNT=0x20
-CONFIG_BOOTSTAGE_STASH_ADDR=0x0
-CONFIG_BOOTSTAGE_STASH_SIZE=0x4096
 CONFIG_VERSION_VARIABLE=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMI is not set
index 4878203747d7d57374a0586c51f4605c3c62edb0..761d75896d3b6d964511d5a56c4faa95a2bf4cde 100644 (file)
@@ -2,9 +2,6 @@ CONFIG_ARM=y
 CONFIG_ARCH_RMOBILE=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_TARGET_GOSE=y
-CONFIG_BOOTSTAGE_USER_COUNT=0x20
-CONFIG_BOOTSTAGE_STASH_ADDR=0x0
-CONFIG_BOOTSTAGE_STASH_SIZE=0x4096
 CONFIG_BOOTDELAY=3
 CONFIG_VERSION_VARIABLE=y
 CONFIG_CMD_BOOTZ=y
index 6df0e25e37954a592f1a2a370a3e9521a94ba0db..e6b1684408a9fb7620d4e99b858a1e0171f7ffed 100644 (file)
@@ -2,9 +2,6 @@ CONFIG_ARM=y
 CONFIG_ARCH_RMOBILE=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_TARGET_KOELSCH=y
-CONFIG_BOOTSTAGE_USER_COUNT=0x20
-CONFIG_BOOTSTAGE_STASH_ADDR=0x0
-CONFIG_BOOTSTAGE_STASH_SIZE=0x4096
 CONFIG_BOOTDELAY=3
 CONFIG_VERSION_VARIABLE=y
 CONFIG_CMD_BOOTZ=y
index 040efc0939c1ba69b36c9bb6df7da89c66867653..a123b375464882e454b2b12333ef08eb1dd480f7 100644 (file)
@@ -2,9 +2,6 @@ CONFIG_ARM=y
 CONFIG_ARCH_RMOBILE=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_TARGET_LAGER=y
-CONFIG_BOOTSTAGE_USER_COUNT=0x20
-CONFIG_BOOTSTAGE_STASH_ADDR=0x0
-CONFIG_BOOTSTAGE_STASH_SIZE=0x4096
 CONFIG_BOOTDELAY=3
 CONFIG_VERSION_VARIABLE=y
 CONFIG_CMD_BOOTZ=y
index 0f7f97f9a80e64c60f0661f3cc0645869c45480e..206ba472fa9a245194e4e24fe3e56874d19844c4 100644 (file)
@@ -2,9 +2,6 @@ CONFIG_ARM=y
 CONFIG_ARCH_RMOBILE=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_TARGET_PORTER=y
-CONFIG_BOOTSTAGE_USER_COUNT=0x20
-CONFIG_BOOTSTAGE_STASH_ADDR=0x0
-CONFIG_BOOTSTAGE_STASH_SIZE=0x4096
 CONFIG_BOOTDELAY=3
 CONFIG_VERSION_VARIABLE=y
 CONFIG_CMD_BOOTZ=y
index aa946d0d8dfe55751bbd94bdafd9839aca76faac..b1500296da202db38a8f7558bf1be7f5ad59d1f5 100644 (file)
@@ -3,9 +3,6 @@ CONFIG_ARCH_RMOBILE=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_RCAR_GEN3=y
 CONFIG_TARGET_SALVATOR_X=y
-CONFIG_BOOTSTAGE_USER_COUNT=0x20
-CONFIG_BOOTSTAGE_STASH_ADDR=0x0
-CONFIG_BOOTSTAGE_STASH_SIZE=0x4096
 CONFIG_VERSION_VARIABLE=y
 CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_IMI is not set
index eeba8192fffacf8d894581d1898aff051a3d04f8..293b08eaba30694917c7e0eb4bd1fd97f2e432ef 100644 (file)
@@ -2,9 +2,6 @@ CONFIG_ARM=y
 CONFIG_ARCH_RMOBILE=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_TARGET_SILK=y
-CONFIG_BOOTSTAGE_USER_COUNT=0x20
-CONFIG_BOOTSTAGE_STASH_ADDR=0x0
-CONFIG_BOOTSTAGE_STASH_SIZE=0x4096
 CONFIG_BOOTDELAY=3
 CONFIG_VERSION_VARIABLE=y
 CONFIG_CMD_BOOTZ=y
index 9646ec7162223260a83851c6d840fae3359eb352..aaa85022ed88aa9684bd119372b8618e4158d2ec 100644 (file)
@@ -2,9 +2,6 @@ CONFIG_ARM=y
 CONFIG_ARCH_RMOBILE=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_TARGET_STOUT=y
-CONFIG_BOOTSTAGE_USER_COUNT=0x20
-CONFIG_BOOTSTAGE_STASH_ADDR=0x0
-CONFIG_BOOTSTAGE_STASH_SIZE=0x4096
 CONFIG_BOOTDELAY=3
 CONFIG_VERSION_VARIABLE=y
 CONFIG_CMD_BOOTZ=y
index 2fe323a85a5207379f597c98888fbe44987b2ba3..588a84d7a919449e17a0ea5801caa30301f70660 100644 (file)
@@ -489,10 +489,6 @@ static void enc_poll(enc_dev_t *enc)
        u8 eir_reg;
        u8 pkt_cnt;
 
-#ifdef CONFIG_USE_IRQ
-       /* clear global interrupt enable bit in enc28j60 */
-       enc_bclr(enc, CTL_REG_EIE, ENC_EIE_INTIE);
-#endif
        (void)enc_r8(enc, CTL_REG_ESTAT);
        eir_reg = enc_r8(enc, CTL_REG_EIR);
        if (eir_reg & ENC_EIR_TXIF) {
@@ -520,10 +516,6 @@ static void enc_poll(enc_dev_t *enc)
                printf("%s: tx error\n", enc->dev->name);
                enc_bclr(enc, CTL_REG_EIR, ENC_EIR_TXERIF);
        }
-#ifdef CONFIG_USE_IRQ
-       /* set global interrupt enable bit in enc28j60 */
-       enc_bset(enc, CTL_REG_EIE, ENC_EIE_INTIE);
-#endif
 }
 
 /*
@@ -693,15 +685,6 @@ static int enc_setup(enc_dev_t *enc)
        /* Reset PDPXMD-bit => half duplex */
        enc_phy_write(enc, PHY_REG_PHCON1, 0);
 
-#ifdef CONFIG_USE_IRQ
-       /* enable interrupts */
-       enc_bset(enc, CTL_REG_EIE, ENC_EIE_PKTIE);
-       enc_bset(enc, CTL_REG_EIE, ENC_EIE_TXIE);
-       enc_bset(enc, CTL_REG_EIE, ENC_EIE_RXERIE);
-       enc_bset(enc, CTL_REG_EIE, ENC_EIE_TXERIE);
-       enc_bset(enc, CTL_REG_EIE, ENC_EIE_INTIE);
-#endif
-
        return 0;
 }
 
index 14e9c06fac6323c8564e5a2a5af51e1cfc7111c1..4886500d6a89bbf7abc3a46aab217b643630bab9 100644 (file)
 #define CONFIG_SYS_LOAD_ADDR           CONFIG_LOADADDR
 
 #define CONFIG_CMDLINE_EDITING
-#define CONFIG_STACKSIZE               (128 * 1024)
 
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
index 27126871f7315d343edbdf23e9bd8452aa4b1255..5fbc1e3ff95f2abdabf3447d7061399cf24e7882 100644 (file)
                        "setenv fdtfile am335x-bone.dtb; fi; " \
                "if test $board_name = A335BNLT; then " \
                        "setenv fdtfile am335x-boneblack.dtb; fi; " \
+               "if test $board_name = BBBW; then " \
+                       "setenv fdtfile am335x-boneblack-wireless.dtb; fi; " \
                "if test $board_name = BBG1; then " \
                        "setenv fdtfile am335x-bonegreen.dtb; fi; " \
+               "if test $board_name = BBGW; then " \
+                       "setenv fdtfile am335x-bonegreen-wireless.dtb; fi; " \
+               "if test $board_name = BBBL; then " \
+                       "setenv fdtfile am335x-boneblue.dtb; fi; " \
                "if test $board_name = A33515BB; then " \
                        "setenv fdtfile am335x-evm.dtb; fi; " \
                "if test $board_name = A335X_SK; then " \
index 2b61405345bfe26a4395fb60c99080a498655833..7ee8ea79752074a8984a80fd347916c64b6953f6 100644 (file)
                                        "1m(uboot),256k(environment),"\
                                        "-(filesystem)"
 
-/* Unsupported features */
-#undef CONFIG_USE_IRQ
-
 /* SPL */
 #define CONFIG_SPL_LDSCRIPT            "arch/arm/mach-omap2/am33xx/u-boot-spl.lds"
 
index 030f01c36dc4b1c9e0b35bd257f45559fd2b650f..5c27055e457c19435c6f5f7c2ddc9e024d953b73 100644 (file)
 #define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START + 0x100000)
 #define CONFIG_SYS_MEMTEST_SCRATCH     0x10800000
 
-#define CONFIG_STACKSIZE               (128 * 1024)
-
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
index 708f0320cf2d6cb2d5fdf2ede9a50d36add69d1d..4c27225d844858b8cb280d2a8cc7b11aa386a6f4 100644 (file)
@@ -52,8 +52,6 @@
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
 
-#define CONFIG_STACKSIZE               (2048)
-
 #define CONFIG_BOOTARGS                                                        \
        "console=ttyS0 root=/dev/mtdblock1 rootfstype=jffs2"
 #define CONFIG_BOOTCOMMAND                                             \
index aa308483a2bc2334ea46fce7e1ee2a55ef5a8817..64d7c45aad6882ccc68ac14e8a483c13b74e35ca 100644 (file)
@@ -71,8 +71,6 @@
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
 
-#define CONFIG_STACKSIZE               (2048)
-
 #define CONFIG_BOOTARGS                                                        \
        "root=mtd:main rootfstype=jffs2"
 #define CONFIG_BOOTCOMMAND                                             \
index 771a35ab2bd6af44d40901cfe3bf3bb194b30884..3c03ed3eb1f26f8f9cadabae3692026dc1f6d638 100644 (file)
@@ -69,8 +69,6 @@
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
 
-#define CONFIG_STACKSIZE               (2048)
-
 #define CONFIG_BOOTARGS                                                        \
        "console=ttyS0 root=/dev/mmcblk0p1 fbmem=600k rootwait=1"
 
index 65e9e32f3e85a8c647147d299b33cd71b4c05b9c..77d6e6aa3906088af754298d15c2b59d40407568 100644 (file)
@@ -25,7 +25,6 @@
 #define CONFIG_NR_DRAM_BANKS           1
 
 #define CONFIG_SYS_MALLOC_LEN          SZ_4M   /* see armv7/start.S. */
-#define CONFIG_STACKSIZE               SZ_256K
 
 /* GPIO Driver */
 #define CONFIG_KONA_GPIO
index 2d9b0a878d18ecf742c0698ce30d1a10c16bacf3..03f4ca0338c953bc7aa0926dcd3479f6db27aaad 100644 (file)
@@ -24,7 +24,6 @@
 #define CONFIG_NR_DRAM_BANKS           1
 
 #define CONFIG_SYS_MALLOC_LEN          SZ_4M   /* see armv7/start.S. */
-#define CONFIG_STACKSIZE               SZ_256K
 
 /* GPIO Driver */
 #define CONFIG_KONA_GPIO
index 868b0a85d4433f92d900abb115a216fb3656df29..c187df233c59519b6fed138710d5c5b678f831f3 100644 (file)
@@ -28,7 +28,6 @@
 #define CONFIG_NR_DRAM_BANKS           1
 
 #define CONFIG_SYS_MALLOC_LEN          (4 * 1024 * 1024)
-#define CONFIG_STACKSIZE               (256 * 1024)
 
 /* Some commands use this as the default load address */
 #define CONFIG_SYS_LOAD_ADDR           CONFIG_SYS_SDRAM_BASE
index 45511be282dfca5c2e06be7047ecbc414b2de805..14b25d410b1363344a5f25d63e08520e54ee84b4 100644 (file)
 #define CONFIG_SERIAL_TAG
 
 /* misc */
-#define CONFIG_STACKSIZE                       (128 * 1024)
 #define CONFIG_SYS_MALLOC_LEN                  (10 * 1024 * 1024)
 #define CONFIG_MISC_INIT_R
 
index 2c9c0142bb56ae2a01d2e0e6a25cd0ef67df53a8..87d201298490e5afb81a5b4a8a88980870c8e98c 100644 (file)
 #define CONFIG_SYS_LOAD_ADDR           CONFIG_LOADADDR
 #define CONFIG_SYS_HZ                  1000
 
-#define CONFIG_STACKSIZE               SZ_128K
-
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
index 888899eacb349e5a61813849685014c771f4b1f1..73b43bd7adff58cc2a1ffe856f7e4ae4391e0eb0 100644 (file)
 #define CONFIG_SYS_HZ                  1000
 #define CONFIG_CMDLINE_EDITING
 
-/*
- * Stack sizes
- * The stack sizes are set up in start.S using the settings below
- */
-#define CONFIG_STACKSIZE               (128 * 1024)    /* regular stack */
-
 /* Physical memory map */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM                     (0x80000000)
index 99f0daece30ba21d8c5c5c8eee5befc1d29cf7fc..f012af547fc85a0d1632ec2a74184164616a53b2 100644 (file)
@@ -74,7 +74,6 @@
 #define CONFIG_EP93XX          1               /* This is a Cirrus Logic 93xx SoC */
 
 #define CONFIG_SYS_CLK_FREQ    14745600        /* EP93xx has a 14.7456 clock */
-#undef CONFIG_USE_IRQ                          /* Don't need IRQ/FIQ */
 
 /* Monitor configuration */
 #undef CONFIG_CMD_DATE
 
 /* Run-time memory allocatons */
 #define CONFIG_SYS_GBL_DATA_SIZE       128
-#define CONFIG_STACKSIZE               (128 * 1024)
-
-#if defined(CONFIG_USE_IRQ)
-#define CONFIG_STACKSIZE_IRQ   (4 * 1024)
-#define CONFIG_STACKSIZE_FIQ   (4 * 1024)
-#endif
 
 #define CONFIG_SYS_MALLOC_LEN          (512 * 1024)
 
index afb5b738991e20a6290ef2d2b102c48762ddeb1d..084839702b023f1255c6c7a7565a5d6591c24a51 100644 (file)
@@ -99,8 +99,6 @@
 #define CONFIG_SYS_MEMTEST_END         0x10800000
 #define CONFIG_SYS_MEMTEST_SCRATCH     0x10800000
 
-#define CONFIG_STACKSIZE               (128 * 1024)
-
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
index 48c9e0b3e9b28253c51ab8437efe3c5d16d88802..658f4d932da449c8c34e217f1550b421767563b3 100644 (file)
@@ -76,8 +76,6 @@
 #define CONFIG_SYS_MEMTEST_END         0x10010000
 #define CONFIG_SYS_MEMTEST_SCRATCH     0x10800000
 
-#define CONFIG_STACKSIZE               (128 * 1024)
-
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
index f86e20caa20b8fb3fb458d06d94b3267f236eddf..43b1fb030c1a2c0e79ba3db856d376912458e720 100644 (file)
 #define CONFIG_SYS_LOAD_ADDR           CONFIG_LOADADDR
 
 #define CONFIG_CMDLINE_EDITING
-#define CONFIG_STACKSIZE               (128 * 1024)
 
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
index d7b9c18c8925b3eec75072dd44d96a3b02af0773..abc4214bc0ee96cb71cca6be1962525678e41ff8 100644 (file)
@@ -69,9 +69,6 @@
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
 
-#define CONFIG_STACKSIZE               (2048)
-
-
 /*
  * After booting the board for the first time, new ethernet addresses
  * should be generated and assigned to the environment variables
index 777f22540afb915a8e56e7dc05d3611fe2d8fb54..3a7993e8290c9135b73167064490a6e4073ad3c5 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef __CONFIG_K2E_EVM_H
 #define __CONFIG_K2E_EVM_H
 
+#include <environment/ti/spi.h>
+
 /* Platform type */
 #define CONFIG_SOC_K2E
 
@@ -30,6 +32,9 @@
 /* SPL SPI Loader Configuration */
 #define CONFIG_SPL_TEXT_BASE           0x0c100000
 
+
+#define SPI_MTD_PARTS KEYSTONE_SPI0_MTD_PARTS
+
 /* NAND Configuration */
 #define CONFIG_SYS_NAND_PAGE_2K
 
index bd252312a20b146748a7bc86469038223a927819..9e5949e3706b5eeab55202311879491703202551 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef __CONFIG_K2G_EVM_H
 #define __CONFIG_K2G_EVM_H
 
+#include <environment/ti/spi.h>
+
 /* Platform type */
 #define CONFIG_SOC_K2G
 
@@ -76,4 +78,5 @@
 #define CONFIG_BOUNCE_BUFFER
 #endif
 
+#define SPI_MTD_PARTS  KEYSTONE_SPI1_MTD_PARTS
 #endif /* __CONFIG_K2G_EVM_H */
index 4adb119b3066c3ec814ca2f617422d868b3b126f..202167bdef790e0fc1808a40f0e3aca68bc09c82 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef __CONFIG_K2HK_EVM_H
 #define __CONFIG_K2HK_EVM_H
 
+#include <environment/ti/spi.h>
+
 /* Platform type */
 #define CONFIG_SOC_K2HK
 
@@ -30,6 +32,8 @@
 /* SPL SPI Loader Configuration */
 #define CONFIG_SPL_TEXT_BASE           0x0c200000
 
+#define SPI_MTD_PARTS KEYSTONE_SPI0_MTD_PARTS
+
 /* NAND Configuration */
 #define CONFIG_SYS_NAND_PAGE_2K
 
index 9bdd56570be7cc2246695373151a29e7709960fe..a7ccdd117cd2c17e2175bd7eeba89671dae7d893 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef __CONFIG_K2L_EVM_H
 #define __CONFIG_K2L_EVM_H
 
+#include <environment/ti/spi.h>
+
 /* Platform type */
 #define CONFIG_SOC_K2L
 
@@ -30,6 +32,8 @@
 /* SPL SPI Loader Configuration */
 #define CONFIG_SPL_TEXT_BASE           0x0c100000
 
+#define SPI_MTD_PARTS KEYSTONE_SPI0_MTD_PARTS
+
 /* NAND Configuration */
 #define CONFIG_SYS_NAND_PAGE_4K
 
index 2ce39ffecf9018112482299921a98c2ce64bc5ae..258fd3ac62b96bb1afde73c963ba3361ff5d4be7 100644 (file)
 #define CONFIG_SYS_HZ                  1000
 
 #define CONFIG_CMDLINE_EDITING
-#define CONFIG_STACKSIZE               SZ_128K
 
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
index dfb72384d39d160174bdb20535ab50bd322ade9d..d8bbc802d2d96fedb49e6a1663975a0d434466ea 100644 (file)
 
 #define CONFIG_LS102XA_STREAM_ID
 
-/*
- * Stack sizes
- * The stack sizes are set up in start.S using the settings below
- */
-#define CONFIG_STACKSIZE               (30 * 1024)
-
 #define CONFIG_SYS_INIT_SP_OFFSET \
        (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
 #define CONFIG_SYS_INIT_SP_ADDR \
index 15850f2b528097f2bdcdb0a4e541cff8f3be2d30..b349b367eb7c24b7766100df69cfd8ecf1902a81 100644 (file)
@@ -537,12 +537,6 @@ unsigned long get_board_ddr_clk(void);
 
 #define CONFIG_LS102XA_STREAM_ID
 
-/*
- * Stack sizes
- * The stack sizes are set up in start.S using the settings below
- */
-#define CONFIG_STACKSIZE               (30 * 1024)
-
 #define CONFIG_SYS_INIT_SP_OFFSET \
        (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
 #define CONFIG_SYS_INIT_SP_ADDR \
index 5d6a64acbd2724c6add7a709f55f8e23a7392152..fcf035b86a39959ca39a78ee6751ed9582c4d970 100644 (file)
 
 #define CONFIG_LS102XA_STREAM_ID
 
-/*
- * Stack sizes
- * The stack sizes are set up in start.S using the settings below
- */
-#define CONFIG_STACKSIZE               (30 * 1024)
-
 #define CONFIG_SYS_INIT_SP_OFFSET \
        (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
 #define CONFIG_SYS_INIT_SP_ADDR \
index 6a345c04006ed5120dda6890613ace2fb8b0857d..b14e944897bd1c80b5048616663caf0d5b33d47e 100644 (file)
@@ -396,12 +396,6 @@ unsigned long get_board_ddr_clk(void);
 
 #define CONFIG_SYS_HZ                  1000
 
-/*
- * Stack sizes
- * The stack sizes are set up in start.S using the settings below
- */
-#define CONFIG_STACKSIZE               (30 * 1024)
-
 #define CONFIG_SYS_INIT_SP_OFFSET \
        (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
 
index 476387d5ad4a471a93456579a233938feef0648f..0cf6010a6cd6a6c52a38d0e106fc383b0e512ae8 100644 (file)
@@ -434,12 +434,6 @@ unsigned long get_board_ddr_clk(void);
 
 #define CONFIG_SYS_HZ                  1000
 
-/*
- * Stack sizes
- * The stack sizes are set up in start.S using the settings below
- */
-#define CONFIG_STACKSIZE               (30 * 1024)
-
 #define CONFIG_SYS_INIT_SP_OFFSET \
        (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
 
index a2ab77a727c1b98fa484cdeda93d05dcb698a1c4..c04ae96f9da13dc05c6c45ff05d6595df4babb56 100644 (file)
 #define CONFIG_SYS_MEMTEST_END         0x10010000
 #define CONFIG_SYS_MEMTEST_SCRATCH     0x10800000
 
-#define CONFIG_STACKSIZE               (128 * 1024)
-
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
index 3e7e5a39970d7f0cfd716b4779f4e3ff487d8bb3..f35d1265b0ee9fff723cdd54923a92aad73048fc 100644 (file)
 #define CONFIG_SYS_MEMTEST_START       0x80000000
 #define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START + SZ_512M)
 
-#define CONFIG_STACKSIZE               SZ_128K
-
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
index 8215e63baacc0ad7a32d241fe5939d38ee78f756..62159a16b72f35ff4c89729ee06a4b0c4788df96 100644 (file)
 #define CONFIG_SYS_MEMTEST_START       0x80000000
 #define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START + SZ_128M)
 
-#define CONFIG_STACKSIZE               SZ_128K
-
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
index 448b575c2897d0664394d85b6579f710e140a94f..971f6c2f3175b8463873a0436bb263f7010fa859 100644 (file)
@@ -95,8 +95,6 @@
 #define CONFIG_SYS_MEMTEST_START       0x80000000
 #define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START + 0x10000)
 
-#define CONFIG_STACKSIZE               SZ_128K
-
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
index aff7a24587310954bad62849397b91a3adfb98f6..e63da43692154512e0851105953e3fe3ef793d70 100644 (file)
 #define CONFIG_SYS_MEMTEST_START       0x80000000
 #define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START + 0x10000)
 
-#define CONFIG_STACKSIZE               SZ_128K
-
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
index 71c22fffa8f28334f29deb67afeac94168e481a2..f466c626a2cfb2249f61aea2a3b35c4ea7b75fa7 100644 (file)
 #define CONFIG_SYS_HZ                  1000
 
 #define CONFIG_CMDLINE_EDITING
-#define CONFIG_STACKSIZE               SZ_128K
 
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
index c65a9e54745e3cfa53a451963b2bce0bb5dc7c06..5bc26aac7e27ed75e7daf6ec5be7b193803f174e 100644 (file)
 #define CONFIG_SYS_LOAD_ADDR           CONFIG_LOADADDR
 #define CONFIG_SYS_HZ                  1000
 
-#define CONFIG_STACKSIZE               SZ_128K
-
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
index 81d769f21ff8094b4c4971305bbbe98484a56a5c..9807ace1d90e349fda659a216f89a45399946f19 100644 (file)
 #define CONFIG_SYS_LOAD_ADDR           CONFIG_LOADADDR
 #define CONFIG_SYS_HZ                  1000
 
-#define CONFIG_STACKSIZE               SZ_128K
-
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
index f6e4b3bc7890a9b70e1b8d6a8768c80af8145288..37f365dc55ba5b85fe266dc4e9f66b1e25cf787f 100644 (file)
@@ -88,7 +88,6 @@
 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
 
 #define CONFIG_CMDLINE_EDITING
-#define CONFIG_STACKSIZE               SZ_8K
 
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
index 6b128df4643b1a3472c4aa65dbef896a7e2a44e5..e99968c805ed19ea00d1df0e8480147ef85ad89e 100644 (file)
@@ -48,7 +48,6 @@
 #define V_OSCK                 26000000        /* Clock output from T2 */
 #define V_SCLK                 (V_OSCK >> 1)
 
-#undef CONFIG_USE_IRQ                          /* no support for IRQs */
 #define CONFIG_MISC_INIT_R
 #define CONFIG_SKIP_LOWLEVEL_INIT              /* X-Loader set everything up */
 
@@ -380,13 +379,6 @@ int rx51_kp_getc(struct stdio_dev *sdev);
 #define CONFIG_SYS_TIMERBASE           (OMAP34XX_GPT2)
 #define CONFIG_SYS_PTV                 2       /* Divisor: 2^(PTV+1) => 8 */
 
-/*
- * Stack sizes
- *
- * The stack sizes are set up in start.S using the settings below
- */
-#define CONFIG_STACKSIZE               (128 << 10) /* regular stack 128 KiB */
-
 /*
  * Physical Memory Map
  */
index 6700073aa2038a1ae401118fc94a624977ffe81b..85e95b31779cb1ec4b8ad1637bd690952a756071 100644 (file)
@@ -48,7 +48,6 @@
 #define CONFIG_SYS_MEMTEST_END         (PHYS_SDRAM_1 + 0x2000000 + 16*1024*1024)
 
 #define CONFIG_NR_DRAM_BANKS   1 /* we have 1 bank of DRAM */
-#define CONFIG_STACKSIZE       (256*1024) /* regular stack */
 
 #define CONFIG_SYS_DA850_SYSCFG_SUSPSRC (      \
        DAVINCI_SYSCFG_SUSPSRC_TIMER0 |         \
index 286598d2def8caa30c12bb821dfcd7c6724ebab6..f506c9c8df991d06483e685286b4cb9270697c3e 100644 (file)
 
 #define CONFIG_SYS_LOAD_ADDR           CONFIG_LOADADDR
 
-/*
- * Stack sizes
- * The stack sizes are set up in start.S using the settings below
- */
-#define CONFIG_STACKSIZE               (128 * 1024)    /* regular stack */
-
 /* Physical memory map */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM                     (0x80000000)
index dacb78ab697c9ba3ef67cdf48aa95ef1774063d9..9042dc269e0efd31eaea5d8e484bd01bb6c191dc 100644 (file)
@@ -37,7 +37,6 @@
 #define CONFIG_SYS_SDRAM_BASE          0x88000000
 #define CONFIG_SYS_MALLOC_LEN          (256 << 10)
 #define CONFIG_SYS_BOOTPARAMS_LEN      (4 << 10)
-#define CONFIG_STACKSIZE               (4 << 10) /* regular stack */
 
 #define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_TEXT_BASE
 #define CONFIG_SYS_MONITOR_LEN         (192 << 10)
index 8ad7fa620ddb8fa13437e8f6ade19802a45ca97b..26b1b1147cb263691ae322980bcf1587e744782f 100644 (file)
 #define CONFIG_SYS_HZ                  1000
 
 #define CONFIG_CMDLINE_EDITING
-#define CONFIG_STACKSIZE               SZ_128K
 
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
index 0b12bf3d55965b86cd9c14b586785c12e7ada307..398b3aa34393bdfa71b09edd5e696c3fc549ca36 100644 (file)
 #define CONFIG_SYS_MALLOC_BASE         (DDR_BASE_ADDR)
 #endif
 
-/*
- * Stack sizes
- * The stack sizes are set up in start.S using the settings below
- */
-#define CONFIG_STACKSIZE               (128 * 1024)    /* regular stack */
-
 #if 0
 /* Configure PXE */
 #define CONFIG_BOOTP_PXE
index 5a9ec023683fa930bd9e1254240782e0f65061da..d69f513c65e69c16df2c424ee1861da8dd04a5aa 100644 (file)
 # define CONFIG_ENV_SECT_SIZE          (4 << 10) /* 4 KB sectors */
 #endif /* SPI support */
 
-/* Unsupported features */
-#undef CONFIG_USE_IRQ
-
 #define CONFIG_DRIVER_TI_CPSW
 #define CONFIG_MII
 #define CONFIG_PHY_GIGE
index a456e458aaca03e7d5e80cf6a22c6b5ca0c91e02..8609f2a0a98663fe91e6d4eeb6993e4294e50e01 100644 (file)
@@ -66,8 +66,6 @@
 
 #define CONFIG_SYS_MALLOC_LEN          (2 << 20)
 
-#define CONFIG_STACKSIZE               (64 << 10)
-
 #define CONFIG_BOOTARGS                                                        \
        "console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
 #define CONFIG_BOOTCOMMAND                                             \
index 55280f203f8db445d0312f79d6ad9487ba3ecd12..de3d661d60a856cce2769f97d7fd7d0bff2b627e 100644 (file)
@@ -12,9 +12,6 @@
 #define CONFIG_SYS_INIT_SP_ADDR                0x20050000
 #define CONFIG_SYS_TEXT_BASE           0x08000000
 
-#define CONFIG_SYS_ICACHE_OFF
-#define CONFIG_SYS_DCACHE_OFF
-
 /*
  * Configuration of the external SDRAM memory
  */
@@ -58,7 +55,6 @@
 
 #define CONFIG_SYS_MAXARGS             16
 #define CONFIG_SYS_MALLOC_LEN          (1 * 1024 * 1024)
-#define CONFIG_STACKSIZE               (256 * 1024)
 
 #define CONFIG_BOOTARGS                                                        \
        "console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
@@ -79,4 +75,5 @@
 #define CONFIG_CMDLINE_EDITING
 
 #define CONFIG_CMD_MEM
+#define CONFIG_CMD_CACHE
 #endif /* __CONFIG_H */
index 171cea24ec958d0681bb9b64f2c775761870100b..1d475b10ddf491eca0ecf34bae39bc2c92c9bc60 100644 (file)
 /* standalone support */
 #define CONFIG_STANDALONE_LOAD_ADDR    CONFIG_SYS_LOAD_ADDR
 
-/* baudrate */
-
-/* The stack sizes are set up in start.S using the settings below */
-#define CONFIG_STACKSIZE               (256 << 10)     /* 256 KiB */
-
 /* FLASH and environment organization */
 
 #define CONFIG_SYS_MONITOR_LEN         (768 << 10)     /* 768 KiB */
index 035a9325b3c4beb59497589411b377390fdc0ffe..3f2da5795d21ba8d4cb9adb93b6e1f87ff036826 100644 (file)
 #define CONFIG_SYS_TIMERBASE           (OMAP34XX_GPT2)
 #define CONFIG_SYS_PTV                 2       /* Divisor: 2^(PTV+1) => 8 */
 
-/*
- * Stack sizes
- *
- * The stack sizes are set up in start.S using the settings below
- */
-#define CONFIG_STACKSIZE       (128 << 10)     /* regular stack 128 KiB */
-
 /*
  * Physical Memory Map
  */
index 319279e4fa1753cd5403ad5f60a0087cb2d4a9cf..baf818ba1a6776db9174b8c9b4771795cf01ae6d 100644 (file)
 #define CONFIG_SKIP_LOWLEVEL_INIT
 #endif
 
-/* Unsupported features */
-#undef CONFIG_USE_IRQ
-
 /* Ethernet */
 #define CONFIG_DRIVER_TI_CPSW
 #define CONFIG_MII
index 284046740ca8808defe7ae2f46d633e357fcadd4..b5af700e38162c4fea76fa0745004a09038f8ff7 100644 (file)
 #define CONFIG_SKIP_LOWLEVEL_INIT
 #endif
 
-/* Unsupported features */
-#undef CONFIG_USE_IRQ
-
 #endif
index a4ec4ce00a88fff3bb3e88ac8cfb0c7aa9ee9145..b2950efd47dbab29de246f476673dccd946a9e96 100644 (file)
        "fit_loadaddr=0x88000000\0" \
        "fit_bootfile=fitImage.itb\0" \
        "update_to_fit=setenv loadaddr ${fit_loadaddr}; setenv bootfile ${fit_bootfile}\0" \
-       "args_fit=setenv bootargs console=${console} \0" \
-       "loadfit=run args_fit; bootm ${loadaddr}#${fdtfile};\0" \
+       "loadfit=run args_mmc; bootm ${loadaddr}#${fdtfile};\0" \
 
 /*
  * DDR information.  If the CONFIG_NR_DRAM_BANKS is not defined,
index f76e0a5c1fb957d138578ff49a6cb241d82dd309..5d2a7ab509e320e9f0e6495dd3314abd3be27975 100644 (file)
@@ -28,7 +28,6 @@
 #define CONFIG_NR_DRAM_BANKS           2
 #define CONFIG_SYS_LPAE_SDRAM_BASE     0x800000000
 #define CONFIG_MAX_RAM_BANK_SIZE       (2 << 30)       /* 2GB */
-#define CONFIG_STACKSIZE               (512 << 10)     /* 512 KiB */
 #define CONFIG_SYS_INIT_SP_ADDR                (CONFIG_SPL_TEXT_BASE - \
                                        GENERATED_GBL_DATA_SIZE)
 
 /* EDMA3 */
 #define CONFIG_TI_EDMA3
 
+#define KERNEL_MTD_PARTS                                               \
+       "mtdparts="                                                     \
+       SPI_MTD_PARTS
+
 #define DEFAULT_FW_INITRAMFS_BOOT_ENV                                  \
        "name_fw_rd=k2-fw-initrd.cpio.gz\0"                             \
        "set_rd_spec=setenv rd_spec ${rdaddr}:${filesize}\0"            \
                "sf write ${loadaddr} 0 ${filesize}\0"          \
        "burn_uboot_nand=nand erase 0 0x100000; "                       \
                "nand write ${loadaddr} 0 ${filesize}\0"                \
-       "args_all=setenv bootargs console=ttyS0,115200n8 rootwait=1\0"  \
+       "args_all=setenv bootargs console=ttyS0,115200n8 rootwait=1 "   \
+               KERNEL_MTD_PARTS                                        \
        "args_net=setenv bootargs ${bootargs} rootfstype=nfs "          \
                "root=/dev/nfs rw nfsroot=${serverip}:${nfs_root},"     \
                "${nfs_options} ip=dhcp\0"                              \
index e72332cd1ba646a1b5e947a61f0d85037cfa6f2b..1bfc438b81d85a128e0ada85a7d3fb88bc6b8ef7 100644 (file)
        "panicboot=echo No boot device !!! reset\0"                            \
        TQMA6_EXTRA_BOOTDEV_ENV_SETTINGS                                      \
 
-#define CONFIG_STACKSIZE               (128u * SZ_1K)
-
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
index 1d737ccd3e59d328b3629eaeaf04b4328e7ea878..c6f39c38b33275cf01b6d30ab577976c4f927472 100644 (file)
@@ -69,7 +69,6 @@
 /* Miscellaneous configurable options */
 #define CONFIG_SYS_MEMTEST_START       0x80000000
 #define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START + 0x10000)
-#define CONFIG_STACKSIZE               SZ_128K
 
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
index ee90045cadc766fbb09ec6a8511dad492bd4ecde..3e7dc9b685fbd04e0ab1d68aa76fb2690787b181 100644 (file)
 #define CONFIG_SYS_MEMTEST_START       0x80010000
 #define CONFIG_SYS_MEMTEST_END         0x87C00000
 
-/*
- * Stack sizes
- * The stack sizes are set up in start.S using the settings below
- */
-#define CONFIG_STACKSIZE               (128 * 1024)    /* regular stack */
-
 /* Physical memory map */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM                     (0x80000000)
index ade5c2736fff94bd1a9f8b7b6060fa9ed16978a4..9a517a973893327055775aeceb8a10b96340bc6e 100644 (file)
@@ -33,8 +33,6 @@
 #define CONFIG_SYS_MEMTEST_START       0x80000000
 #define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START + 0x10000)
 
-#define CONFIG_STACKSIZE               SZ_128K
-
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
index 865f2ac81c72a4bb8ac55d738f4de759cd7454c1..5274b274a41894f149dc836732a003e2e3282474 100644 (file)
@@ -35,8 +35,6 @@
 #define CONFIG_SYS_MEMTEST_START       0x80000000
 #define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START + SZ_256M)
 
-#define CONFIG_STACKSIZE               SZ_128K
-
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
index b3e1f2e59799b63abc49d559c3c0ac407cdfb416..23b6eae5330a78b74928aa93f99b4bd34a7d273c 100644 (file)
@@ -85,8 +85,6 @@
 #define CONFIG_SYS_LOAD_ADDR           CONFIG_LOADADDR
 #define CONFIG_SYS_HZ                  1000
 
-#define CONFIG_STACKSIZE               SZ_128K
-
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
index 3f837e86fba4b38c0d2dcfd7bf072bd7254cd467..f546c385e9fd37dc94a64d16ecb59adc53e4f8ac 100644 (file)
 
 #define CONFIG_SYS_LOAD_ADDR           CONFIG_LOADADDR
 
-/*
- * Stack sizes
- *
- * The stack sizes are set up in start.S using the settings below
- */
-#define CONFIG_STACKSIZE       (128 * 1024)    /* regular stack */
-
 /*
  * Physical Memory Map
  */
index 5169504dc76d130cf165099b92c66f267670a027..b1aa57935dd4e92b157a7d81560909594bbfe6a5 100644 (file)
@@ -66,7 +66,6 @@
 # define CONFIG_SYS_MONITOR_LEN                0x00040000      /* 256KB */
 #endif
 
-#define CONFIG_SYS_STACKSIZE           (512 << 10)     /* stack 512KB */
 #define CONFIG_SYS_MALLOC_LEN          (256 << 10)     /* heap  256KB */
 
 /* Linux boot param area in RAM (used only when booting linux) */
 /* U-Boot general configuration */
 /*==============================*/
 
-#undef CONFIG_USE_IRQ                  /* Keep it simple, poll only */
 #define CONFIG_BOARD_POSTCLK_INIT
 #define CONFIG_MISC_INIT_R
 
diff --git a/include/environment/ti/spi.h b/include/environment/ti/spi.h
new file mode 100644 (file)
index 0000000..18c857c
--- /dev/null
@@ -0,0 +1,15 @@
+/*
+ * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com
+ *
+ * Environment variable definitions for SPI on TI boards.
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
+#ifndef __TI_SPI_H
+#define __TI_SPI_H
+
+#define KEYSTONE_SPI0_MTD_PARTS "spi0.0:1m(u-boot-spl)ro,-(misc);\0"
+#define KEYSTONE_SPI1_MTD_PARTS "spi1.0:1m(u-boot-spl)ro,-(misc);\0"
+
+#endif
index 0eddbbc78fd7f2d3aa82c35552460e8e49d1ccc1..4b667f7ba7dc7f99e7755365af9e02d47d70d524 100644 (file)
@@ -44,9 +44,6 @@
 #define xyzModem_abort 2
 
 
-#ifdef REDBOOT
-extern getc_io_funcs_t xyzModem_io;
-#else
 #define CYGNUM_CALL_IF_SET_COMM_ID_QUERY_CURRENT
 #define CYGACC_CALL_IF_SET_CONSOLE_COMM(x)
 
@@ -60,12 +57,8 @@ typedef struct {
     char *filename;
     int   mode;
     int   chan;
-#ifdef CYGPKG_REDBOOT_NETWORKING
-    struct sockaddr_in *server;
-#endif
 } connection_info_t;
 
-#endif
 
 
 int   xyzModem_stream_open(connection_info_t *info, int *err);
index 811ba91d9558c69baa6adf7b5f8a6acf1a3242e5..04b6a9505209e6aca2494a8488c4f8582a6eb2c6 100644 (file)
@@ -2859,9 +2859,6 @@ CONFIG_SSP1_BASE
 CONFIG_SSP2_BASE
 CONFIG_SSP3_BASE
 CONFIG_STACKBASE
-CONFIG_STACKSIZE
-CONFIG_STACKSIZE_FIQ
-CONFIG_STACKSIZE_IRQ
 CONFIG_STANDALONE_LOAD_ADDR
 CONFIG_STATIC_BOARD_REV
 CONFIG_STATIC_RELA
@@ -6052,7 +6049,6 @@ CONFIG_SYS_SSD_BASE
 CONFIG_SYS_SSD_BASE_PHYS
 CONFIG_SYS_SST_SECT
 CONFIG_SYS_SST_SECTSZ
-CONFIG_SYS_STACKSIZE
 CONFIG_SYS_STACK_LENGTH
 CONFIG_SYS_STACK_SIZE
 CONFIG_SYS_STATUS_C
@@ -6562,7 +6558,6 @@ CONFIG_USB_XHCI_PCI
 CONFIG_USER_LOWLEVEL_INIT
 CONFIG_USE_FDT
 CONFIG_USE_INTERRUPT
-CONFIG_USE_IRQ
 CONFIG_USE_NAND
 CONFIG_USE_NETDEV
 CONFIG_USE_NOR