]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
atmel, at91: fix corvus board
authorHeiko Schocher <hs@denx.de>
Thu, 22 Jun 2017 05:42:50 +0000 (07:42 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 23 Jun 2017 14:38:12 +0000 (10:38 -0400)
since commit: f8b7fff1d5c5 "serial: atmel_usart: Add clk support"
corvus board comes not up anymore. Fix it.

Signed-off-by: Heiko Schocher <hs@denx.de>
arch/arm/dts/at91sam9g45-corvus.dts
configs/corvus_defconfig
include/configs/corvus.h

index c207c028585c28b7ff869ccb46affcd8061926d1..6367996621e68dbb22dd3a9848c90c9f1323c9e7 100644 (file)
@@ -18,6 +18,7 @@
        compatible = "atmel,at91sam9m10g45ek", "atmel,at91sam9g45", "atmel,at91sam9";
 
        chosen {
+               u-boot,dm-pre-reloc;
                stdout-path = &dbgu;
        };
 
@@ -38,6 +39,7 @@
        ahb {
                apb {
                        dbgu: serial@ffffee00 {
+                               u-boot,dm-pre-reloc;
                                status = "okay";
                        };
 
index 36e6608c4359721ece7b3327776e64d21ebcb61a..ac5eefd0d86fb61b331cd0119a6c68dc0200c066 100644 (file)
@@ -6,6 +6,7 @@ CONFIG_TARGET_CORVUS=y
 CONFIG_SPL_GPIO_SUPPORT=y
 CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
+CONFIG_SYS_MALLOC_F_LEN=0x800
 CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_NAND_SUPPORT=y
 CONFIG_DEFAULT_DEVICE_TREE="at91sam9g45-corvus"
@@ -31,8 +32,13 @@ CONFIG_CMD_DHCP=y
 CONFIG_CMD_PING=y
 CONFIG_OF_CONTROL=y
 CONFIG_OF_EMBED=y
+CONFIG_CLK=y
+CONFIG_CLK_AT91=y
+CONFIG_AT91_UTMI=y
 CONFIG_DFU_NAND=y
 # CONFIG_MMC is not set
+# CONFIG_SPL_DM_SERIAL is not set
+CONFIG_ATMEL_USART=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index 3847a19cadbbe72687dc03628d954b793a351110..8b8b1220b46b823f276134f4104112a60bca830b 100644 (file)
@@ -43,7 +43,6 @@
 #define CONFIG_AT91_GPIO_PULLUP        1       /* keep pullups on peripheral pins */
 
 /* serial console */
-#define CONFIG_ATMEL_USART
 #define CONFIG_USART_BASE              ATMEL_BASE_DBGU
 #define CONFIG_USART_ID                        ATMEL_ID_SYS
 
@@ -72,7 +71,7 @@
 #define CONFIG_SYS_SDRAM_SIZE          0x08000000
 
 #define CONFIG_SYS_INIT_SP_ADDR \
-       (CONFIG_SYS_SDRAM_BASE + SZ_4K - GENERATED_GBL_DATA_SIZE)
+       (CONFIG_SYS_SDRAM_BASE + SZ_32K - GENERATED_GBL_DATA_SIZE)
 
 /* NAND flash */
 #ifdef CONFIG_CMD_NAND