From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g2egK-00034g-4e for barebox@lists.infradead.org; Wed, 19 Sep 2018 15:46:32 +0000 Received: by mail-pl1-x641.google.com with SMTP id u11-v6so2872099plq.5 for ; Wed, 19 Sep 2018 08:46:13 -0700 (PDT) From: Andrey Smirnov Date: Wed, 19 Sep 2018 08:45:41 -0700 Message-Id: <20180919154541.29861-9-andrew.smirnov@gmail.com> In-Reply-To: <20180919154541.29861-1-andrew.smirnov@gmail.com> References: <20180919154541.29861-1-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2 8/8] ARM: nxp-imx8mq-evk: Make use of memory size detection code To: barebox@lists.infradead.org Cc: Andrey Smirnov Signed-off-by: Andrey Smirnov --- arch/arm/boards/nxp-imx8mq-evk/board.c | 2 -- arch/arm/boards/nxp-imx8mq-evk/lowlevel.c | 4 ++-- arch/arm/dts/imx8mq-evk.dts | 6 +----- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/arch/arm/boards/nxp-imx8mq-evk/board.c b/arch/arm/boards/nxp-imx8mq-evk/board.c index aae6970d8..764eadb76 100644 --- a/arch/arm/boards/nxp-imx8mq-evk/board.c +++ b/arch/arm/boards/nxp-imx8mq-evk/board.c @@ -50,8 +50,6 @@ static int imx8mq_evk_mem_init(void) if (!of_machine_is_compatible("fsl,imx8mq-evk")) return 0; - arm_add_mem_device("ram0", 0x40000000, SZ_2G); - request_sdram_region("ATF", 0x40000000, SZ_128K); return 0; diff --git a/arch/arm/boards/nxp-imx8mq-evk/lowlevel.c b/arch/arm/boards/nxp-imx8mq-evk/lowlevel.c index 438c70c87..1dff4b4d3 100644 --- a/arch/arm/boards/nxp-imx8mq-evk/lowlevel.c +++ b/arch/arm/boards/nxp-imx8mq-evk/lowlevel.c @@ -24,6 +24,7 @@ #include #include #include +#include #include "ddr.h" @@ -121,7 +122,6 @@ ENTRY_FUNCTION(start_nxp_imx8mq_evk, r0, r1, r2) /* * Standard entry we hit once we initialized both DDR and ATF */ - barebox_arm_entry(MX8MQ_DDR_CSD1_BASE_ADDR, - SZ_2G + SZ_1G, __dtb_imx8mq_evk_start); + imx8mq_barebox_entry(__dtb_imx8mq_evk_start); } diff --git a/arch/arm/dts/imx8mq-evk.dts b/arch/arm/dts/imx8mq-evk.dts index d6d5d843c..a6e724e2e 100644 --- a/arch/arm/dts/imx8mq-evk.dts +++ b/arch/arm/dts/imx8mq-evk.dts @@ -7,6 +7,7 @@ /dts-v1/; #include "imx8mq.dtsi" +#include "imx8mq-ddrc.dtsi" / { model = "NXP i.MX8MQ EVK"; @@ -16,11 +17,6 @@ stdout-path = &uart1; }; - memory@40000000 { - device_type = "memory"; - reg = <0x00000000 0x40000000 0 0xc0000000>; - }; - reg_usdhc2_vmmc: regulator-vsd-3v3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_reg_usdhc2>; -- 2.17.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox