From f4446e8f9e1be2d0b78ef493740b8871e20c8e57 Mon Sep 17 00:00:00 2001 From: luka Date: Tue, 22 Jan 2013 12:55:01 +0000 Subject: uboot-lantiq: upgrade to 2013.01 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35292 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../0018-MIPS-add-SPI-flash-init-hook.patch | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 package/boot/uboot-lantiq/patches/0018-MIPS-add-SPI-flash-init-hook.patch (limited to 'package/boot/uboot-lantiq/patches/0018-MIPS-add-SPI-flash-init-hook.patch') diff --git a/package/boot/uboot-lantiq/patches/0018-MIPS-add-SPI-flash-init-hook.patch b/package/boot/uboot-lantiq/patches/0018-MIPS-add-SPI-flash-init-hook.patch new file mode 100644 index 000000000..71f094b65 --- /dev/null +++ b/package/boot/uboot-lantiq/patches/0018-MIPS-add-SPI-flash-init-hook.patch @@ -0,0 +1,47 @@ +From 888b33e84082fe72d60d528c05c885c0c9d70bc4 Mon Sep 17 00:00:00 2001 +From: Daniel Schwierzeck +Date: Tue, 6 Nov 2012 21:19:43 +0100 +Subject: MIPS: add SPI flash init hook + +Signed-off-by: Daniel Schwierzeck + +--- a/arch/mips/lib/board.c ++++ b/arch/mips/lib/board.c +@@ -32,6 +32,7 @@ + #include + #include + #include ++#include + + #ifdef CONFIG_BITBANGMII + #include +@@ -312,6 +313,16 @@ void board_init_r(gd_t *id, ulong dest_a + onenand_init(); + #endif + ++#ifdef CONFIG_CMD_SPI ++ puts("SPI: "); ++ spi_init(); /* go init the SPI */ ++ puts("ready\n"); ++#endif ++ ++#if defined(CONFIG_SPI_FLASH) ++ spi_flash_init(); ++#endif ++ + /* relocate environment function pointers etc. */ + env_relocate(); + +@@ -335,12 +346,6 @@ void board_init_r(gd_t *id, ulong dest_a + /* Initialize from environment */ + load_addr = getenv_ulong("loadaddr", 16, load_addr); + +-#ifdef CONFIG_CMD_SPI +- puts("SPI: "); +- spi_init(); /* go init the SPI */ +- puts("ready\n"); +-#endif +- + #if defined(CONFIG_MISC_INIT_R) + /* miscellaneous platform dependent initialisations */ + misc_init_r(); -- cgit v1.2.3