From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g28mE-0000KK-16 for barebox@lists.infradead.org; Tue, 18 Sep 2018 05:42:40 +0000 Received: by mail-pg1-x52b.google.com with SMTP id d19-v6so452003pgv.1 for ; Mon, 17 Sep 2018 22:42:11 -0700 (PDT) From: Andrey Smirnov Date: Mon, 17 Sep 2018 22:41:45 -0700 Message-Id: <20180918054148.8878-6-andrew.smirnov@gmail.com> In-Reply-To: <20180918054148.8878-1-andrew.smirnov@gmail.com> References: <20180918054148.8878-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 5/8] ARM: nxp-imx8mq-evk: Add missing compatibility check To: barebox@lists.infradead.org Cc: Andrey Smirnov Add missing compatibility check to imx8mq_evk_mem_init() to prevent it from being executed for other i.MX8MQ boards. Signed-off-by: Andrey Smirnov --- arch/arm/boards/nxp-imx8mq-evk/board.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boards/nxp-imx8mq-evk/board.c b/arch/arm/boards/nxp-imx8mq-evk/board.c index 868c25ebb..3645e5e71 100644 --- a/arch/arm/boards/nxp-imx8mq-evk/board.c +++ b/arch/arm/boards/nxp-imx8mq-evk/board.c @@ -25,6 +25,9 @@ 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); -- 2.17.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox