From: Simon Glass Date: Fri, 27 Feb 2015 22:06:48 -0700 Subject: [U-Boot] [PATCH 24/29] rockchip: dts: Adjust device tree files for U-Boot SPL In-Reply-To: <1425100013-4796-1-git-send-email-sjg@chromium.org> References: <1425100013-4796-1-git-send-email-sjg@chromium.org> Message-ID: <1425100013-4796-25-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The 'fdtgrep' tool would probably provide a better solution here, but for now we can use the C preprocessor to remove the parts of the device tree which are not needed in SPL. Signed-off-by: Simon Glass --- arch/arm/dts/rk3288.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/dts/rk3288.dtsi b/arch/arm/dts/rk3288.dtsi index 8251441..8386bb2 100644 --- a/arch/arm/dts/rk3288.dtsi +++ b/arch/arm/dts/rk3288.dtsi @@ -22,8 +22,11 @@ / { compatible = "rockchip,rk3288"; +#ifndef CONFIG_SPL_BUILD interrupt-parent = <&gic>; +#endif aliases { +#ifndef CONFIG_SPL_BUILD i2c0 = &i2c0; i2c1 = &i2c1; i2c2 = &i2c2; @@ -38,16 +41,22 @@ mshc1 = &sdmmc; mshc2 = &sdio0; mshc3 = &sdio1; +#endif +#ifndef CONFIG_SPL_BUILD serial0 = &uart0; serial1 = &uart1; +#endif serial2 = &uart2; +#ifndef CONFIG_SPL_BUILD serial3 = &uart3; serial4 = &uart4; spi0 = &spi0; spi1 = &spi1; spi2 = &spi2; +#endif }; +#ifndef CONFIG_SPL_BUILD cpus { #address-cells = <1>; #size-cells = <0>; @@ -342,6 +351,7 @@ pinctrl-0 = <&uart1_xfer>; status = "disabled"; }; +#endif uart2: serial at ff690000 { compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart"; @@ -349,12 +359,15 @@ interrupts = ; reg-shift = <2>; reg-io-width = <4>; +#ifndef CONFIG_SPL_BUILD clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>; clock-names = "baudclk", "apb_pclk"; pinctrl-names = "default"; pinctrl-0 = <&uart2_xfer>; +#endif status = "disabled"; }; +#ifndef CONFIG_SPL_BUILD uart3: serial at ff1b0000 { compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart"; reg = <0xff1b0000 0x100>; @@ -1463,4 +1476,5 @@ <&cru HCLK_VCODEC>; }; }; +#endif }; -- 2.2.0.rc0.207.ga3a616c