From 6451223a8d1dc57cf0edc7f41799ec79468959c8 Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Wed, 25 Nov 2015 07:37:00 +0100 Subject: arm: mvebu: Add DM and OF_CONTROL support to SPL This patch adds full DM support to the SPL on MVEBU. Currently only serial is supported. Other drivers will follow. This patch also adds the necessary config values for the DEBUG UART to the MVEBU defconfig files. This came in handy while implementing this DM support. Additionally, the mvebu specific SPL linker script is removed and this common one is used instead: arch/arm/cpu/u-boot-spl.lds This common linker script already handles all special cases. No need to reinvent the wheel for MVEBU here. Signed-off-by: Stefan Roese Cc: Luka Perkov Cc: Dirk Eibach Cc: Simon Glass --- arch/arm/dts/armada-388-gp.dts | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/arm/dts/armada-388-gp.dts') diff --git a/arch/arm/dts/armada-388-gp.dts b/arch/arm/dts/armada-388-gp.dts index fd4f6fd..f576e93 100644 --- a/arch/arm/dts/armada-388-gp.dts +++ b/arch/arm/dts/armada-388-gp.dts @@ -122,6 +122,7 @@ pinctrl-names = "default"; pinctrl-0 = <&uart0_pins>; status = "okay"; + u-boot,dm-pre-reloc; }; /* GE1 CON15 */ -- cgit v1.1 From 09a54c009e8ffbcb88d4b5593b8da32596f14be0 Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Fri, 20 Nov 2015 13:51:57 +0100 Subject: arm: mvebu: Add SPI driver model support This patch enables the DM support for the SPI driver and the SPI NOR flash chips. Some MVEBU boards boot from SPI NOR, so adding the aliases and enabling CONFIG_DM_SEQ_ALIAS is needed here. Signed-off-by: Stefan Roese Cc: Luka Perkov Cc: Dirk Eibach Cc: Simon Glass --- arch/arm/dts/armada-388-gp.dts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'arch/arm/dts/armada-388-gp.dts') diff --git a/arch/arm/dts/armada-388-gp.dts b/arch/arm/dts/armada-388-gp.dts index f576e93..f3bcbc6 100644 --- a/arch/arm/dts/armada-388-gp.dts +++ b/arch/arm/dts/armada-388-gp.dts @@ -51,6 +51,10 @@ stdout-path = "serial0:115200n8"; }; + aliases { + spi0 = &spi0; + }; + memory { device_type = "memory"; reg = <0x00000000 0x80000000>; /* 2 GB */ @@ -65,8 +69,10 @@ pinctrl-names = "default"; pinctrl-0 = <&spi0_pins>; status = "okay"; + u-boot,dm-pre-reloc; spi-flash@0 { + u-boot,dm-pre-reloc; #address-cells = <1>; #size-cells = <1>; compatible = "st,m25p128", "jedec,spi-nor"; -- cgit v1.1 From 202ededd96344642fc854f35d71be37be6db3816 Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Thu, 19 Nov 2015 10:30:59 +0100 Subject: arm: mvebu: armada-388-gp.dts: Add ethernet aliases Adding these aliases enables the update of the MAC addresses from within U-Boot. Signed-off-by: Stefan Roese Cc: Luka Perkov --- arch/arm/dts/armada-388-gp.dts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/arm/dts/armada-388-gp.dts') diff --git a/arch/arm/dts/armada-388-gp.dts b/arch/arm/dts/armada-388-gp.dts index f3bcbc6..7bc878f 100644 --- a/arch/arm/dts/armada-388-gp.dts +++ b/arch/arm/dts/armada-388-gp.dts @@ -52,6 +52,8 @@ }; aliases { + ethernet0 = ð0; + ethernet1 = ð1; spi0 = &spi0; }; -- cgit v1.1