From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g3EVW-0006N4-RZ for barebox@lists.infradead.org; Fri, 21 Sep 2018 06:02:07 +0000 Received: by mail-pl1-x62e.google.com with SMTP id g2-v6so5448801plo.2 for ; Thu, 20 Sep 2018 23:01:28 -0700 (PDT) From: Andrey Smirnov Date: Thu, 20 Sep 2018 23:00:59 -0700 Message-Id: <20180921060102.16341-6-andrew.smirnov@gmail.com> In-Reply-To: <20180921060102.16341-1-andrew.smirnov@gmail.com> References: <20180921060102.16341-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 v3 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