From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 09 Apr 2021 15:21:52 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1lUr56-0007tk-1N for lore@lore.pengutronix.de; Fri, 09 Apr 2021 15:21:52 +0200 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lUr54-0001qa-Gt for lore@pengutronix.de; Fri, 09 Apr 2021 15:21:51 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=5qPV0tzHvTt7RufWq78FY7I7R194jXHobH5nOTSz36U=; b=n2AqCdLNRl8SgsfNbtfK+zsUTn kv5Cq9BEGG94LJWUx+6iFBtpsskC81aAsUocMHCXFc6irWk8Hm1c51SMR8Rbf6GbJmjvqY7NghjCw P5VqjpWnUhXevHC8hA3omOvJYWi2sFvBVup9ZJWW+LfTk2f4nnPhwmMJ4AIdhgmpktks1C0/uK9wm eoa222AJ2dCHlHeNqniJNtzu/wnmq3cS/pXO+2840bx6luMLNdjDheGhqp+Afj7QHFy92Q8lPrXzZ sM/pk0Dx6ATzd8d54ZDInlvX5KX0iGB5NElZXhZpORfMmiPJ1M3S+3GHILlVm6oWKZOC09O1yV5q8 pVMJZp4Q==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUr48-000oim-FP; Fri, 09 Apr 2021 13:20:52 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUr44-000oiN-SF for barebox@desiato.infradead.org; Fri, 09 Apr 2021 13:20:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=HX80MMHf4VuJgKisNSBFb3oCjSKOukoALFlnZsEJs7A=; b=OrafroBK4rIIH0DTxur5X+kmaN QT4T1q9TYNY0j6JwoqQv2uAKlMEIwFAPYyrVD4jbpUxbDwm4tU42k5+F/TQebwkMPCHwfkrvFJC+s HdB7at8HsgpHWdPp6Ubo7F9CO3CoMZwC8YH20HIR68E8n2L/rZ4SfH+W727f0Q09wxWgpr1llBEaf fwyFSgxOSnRYavcbOAPthHVAG9zrH73+Q22KYP9X28gDC/EJJ8FUkNE1IbpodHWxQ04of9PMkRdtL FHCQHhv54TY3MVGQij7f0MPhMT250wfJelbAiUtfJoQLK5KVjt7oS4e+YBdfPE//IOFM05tI83PNO QqAEAg2Q==; Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUr41-004Xom-Do for barebox@lists.infradead.org; Fri, 09 Apr 2021 13:20:47 +0000 Received: by mail-lf1-x135.google.com with SMTP id v140so9694975lfa.4 for ; Fri, 09 Apr 2021 06:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HX80MMHf4VuJgKisNSBFb3oCjSKOukoALFlnZsEJs7A=; b=ILzRbipYMQEmdSTdLMVDRcXd4LGML98ctLaQtasYDbJWs1+TMI8+IK8nwdBPzKxht4 f+I6d2jFOpT+1NFLKSEpCs2DRsFQtnG6+YVPqQCu8b2im9KMCyfsxR6iVIVZbxsO+MlK FAlipZHCwEFM11c1578LpCW6FSU+ebKTwtyZEfwIuHOs71rULwFA21YbwNDlXE2Sq70/ JWa6TlrqSdZ1LQcA8xPGHc1Vu84mzMD4wcu4yM4uRSeleW0/L2s1+v3sIxkifjgbKZvZ 8BEvOqNMiyu59v+D+5oK+riqcvpIAAIo+IpVAIJzcbg+hWAuPPKUoEgnUdiOW2ZkRW2z XWqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HX80MMHf4VuJgKisNSBFb3oCjSKOukoALFlnZsEJs7A=; b=M7Zcvx87Ulw0CmKhZggRZAKN9JOcW1hmdgsMojQRsSjsglqyvFhaMwqZD/vTP6JHls aA9W8qYKBoeemHXPi/EBsoIk/6y5yqxeXYIEyaxYQJorPDGBJs63QyTWsTsvzMzjmULa /1y/rUcZ2zCDlxSXtHrWS0MkvQJv+MqYYDtm28aPXmXRDk/xKgm1ED03TCVFm4SftWMV I8n+bqKpjPu+Qh92AgwRCusBBCsoadEeNF7REqyviRpEAMaTQwef6cu2haJv4rfC6idM TImqRsVAGkJGDWHL3PMGJj33f5dv38VdRUo+6jDVQXjXQtXlcZqk6my9bY7grHsj0EAX Fmug== X-Gm-Message-State: AOAM5329c6fVTBNHKurMv9juJKqo4sK0fFU/1oFqpDgIcK7WqQfngd3L mjQljTi6KEbbeWaDHDS7w3guDcrDVG0= X-Google-Smtp-Source: ABdhPJy4u1cS2tA6EkhcHM36Do386Hmglf/zq2709Bpa0b1MYVfKoHaovX7jd5LfPDtOFsCrLyOtOg== X-Received: by 2002:a05:6512:991:: with SMTP id w17mr10527600lft.85.1617974442666; Fri, 09 Apr 2021 06:20:42 -0700 (PDT) Received: from laped.home ([185.181.22.4]) by smtp.googlemail.com with ESMTPSA id z9sm279710lfa.80.2021.04.09.06.20.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Apr 2021 06:20:42 -0700 (PDT) From: Lars Pedersen To: barebox@lists.infradead.org Cc: Lars Pedersen , Bruno Thomsen Date: Fri, 9 Apr 2021 15:20:35 +0200 Message-Id: <20210409132035.197739-1-lapeddk@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210409_062045_496454_B8EE3E86 X-CRM114-Status: GOOD ( 16.91 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" X-SA-Exim-Connect-IP: 2001:8b0:10b:1:d65d:64ff:fe57:4e05 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.4 required=4.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Subject: [PATCH] ARM: i.MX: Kamstrup mx7 concentrator board support X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.ext.pengutronix.de) This adds support for Kamstrup mx7 concentrator board Signed-off-by: Lars Pedersen Reviewed-by: Bruno Thomsen --- arch/arm/boards/Makefile | 1 + .../boards/kamstrup-mx7-concentrator/Makefile | 2 + .../boards/kamstrup-mx7-concentrator/board.c | 51 +++++++++ .../flash-header-tqma7d.imxcfg | 79 +++++++++++++ .../kamstrup-mx7-concentrator/lowlevel.c | 35 ++++++ arch/arm/dts/Makefile | 1 + arch/arm/dts/imx7d-flex-concentrator-mfg.dts | 108 ++++++++++++++++++ arch/arm/mach-imx/Kconfig | 5 + images/Makefile.imx | 5 + 9 files changed, 287 insertions(+) create mode 100644 arch/arm/boards/kamstrup-mx7-concentrator/Makefile create mode 100644 arch/arm/boards/kamstrup-mx7-concentrator/board.c create mode 100644 arch/arm/boards/kamstrup-mx7-concentrator/flash-header-tqma7d.imxcfg create mode 100644 arch/arm/boards/kamstrup-mx7-concentrator/lowlevel.c create mode 100644 arch/arm/dts/imx7d-flex-concentrator-mfg.dts diff --git a/arch/arm/boards/Makefile b/arch/arm/boards/Makefile index 9ccb75e27..0e59d6a77 100644 --- a/arch/arm/boards/Makefile +++ b/arch/arm/boards/Makefile @@ -63,6 +63,7 @@ obj-$(CONFIG_MACH_HABA_KNX_LITE) += haba-knx/ obj-$(CONFIG_MACH_IMX21ADS) += freescale-mx21-ads/ obj-$(CONFIG_MACH_IMX233_OLINUXINO) += imx233-olinuxino/ obj-$(CONFIG_MACH_IMX27ADS) += freescale-mx27-ads/ +obj-$(CONFIG_MACH_KAMSTRUP_MX7_CONCENTRATOR) += kamstrup-mx7-concentrator/ obj-$(CONFIG_MACH_KINDLE3) += kindle3/ obj-$(CONFIG_MACH_KONTRON_SAMX6I) += kontron-samx6i/ obj-$(CONFIG_MACH_LENOVO_IX4_300D) += lenovo-ix4-300d/ diff --git a/arch/arm/boards/kamstrup-mx7-concentrator/Makefile b/arch/arm/boards/kamstrup-mx7-concentrator/Makefile new file mode 100644 index 000000000..a8b45be12 --- /dev/null +++ b/arch/arm/boards/kamstrup-mx7-concentrator/Makefile @@ -0,0 +1,2 @@ +obj-y += board.o +lwl-y += lowlevel.o \ No newline at end of file diff --git a/arch/arm/boards/kamstrup-mx7-concentrator/board.c b/arch/arm/boards/kamstrup-mx7-concentrator/board.c new file mode 100644 index 000000000..ac32e9b05 --- /dev/null +++ b/arch/arm/boards/kamstrup-mx7-concentrator/board.c @@ -0,0 +1,51 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +// SPDX-FileCopyrightText: 2021 Kamstrup A/S + +/* Author: Lars Pedersen */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define BOARD_RESTART_GPIO IMX_GPIO_NR(7, 12) +#define TPM_RESET_GPIO IMX_GPIO_NR(3, 8) + +static void kamstrup_mx7_tpm_reset(void) +{ + imx7_setup_pad(MX7D_PAD_LCD_DATA03__GPIO3_IO8); + + gpio_request(TPM_RESET_GPIO, "tpm-reset"); + gpio_direction_output(TPM_RESET_GPIO, 1); + mdelay(100); + gpio_set_value(TPM_RESET_GPIO, 0); + mdelay(100); + gpio_set_value(TPM_RESET_GPIO, 1); + gpio_free(TPM_RESET_GPIO); +} + +static void __noreturn kamstrup_mx7_board_restart_gpio(struct restart_handler *rst) +{ + imx7_setup_pad(MX7D_PAD_ENET1_TX_CLK__GPIO7_IO12); + + gpio_direction_output(BOARD_RESTART_GPIO, 0); + mdelay(1); + gpio_set_value(BOARD_RESTART_GPIO, 0); + + hang(); +} + +static int kamstrup_mx7_concentrator_coredevices_init(void) +{ + kamstrup_mx7_tpm_reset(); + restart_handler_register_fn("board", kamstrup_mx7_board_restart_gpio); + barebox_set_model("Kamstrup OMNIA Concentrator"); + + return 0; +} +coredevice_initcall(kamstrup_mx7_concentrator_coredevices_init); diff --git a/arch/arm/boards/kamstrup-mx7-concentrator/flash-header-tqma7d.imxcfg b/arch/arm/boards/kamstrup-mx7-concentrator/flash-header-tqma7d.imxcfg new file mode 100644 index 000000000..4b3632411 --- /dev/null +++ b/arch/arm/boards/kamstrup-mx7-concentrator/flash-header-tqma7d.imxcfg @@ -0,0 +1,79 @@ +soc imx7 +loadaddr 0xbfbff000 +ivtofs 0x400 + +#include + +wm 32 0x30340004 0x4F400005 /* IOMUXC_GPR_GPR1 */ +/* Clear then set bit30 to ensure exit from DDR retention */ +wm 32 0x30360388 0x40000000 +wm 32 0x30360384 0x40000000 + +/* TQMa7x DRAM Timing REV0100 */ +/* DCD Code i.MX7D/S 528 MHz 1 GByte Samsung K4B4G1646D */ +wm 32 0x30360070 0x0070302C /* CCM_ANALOG_PLL_DDRx */ +wm 32 0x30360090 0x00000000 /* CCM_ANALOG_PLL_NUM */ +wm 32 0x30360070 0x0060302C /* CCM_ANALOG_PLL_DDRx */ +check 32 until_all_bits_set 0x30360070 0x80000000 +wm 32 0x30391000 0x00000002 /* SRC_DDRC_RCR */ + +wm 32 MX7_DDRC_MSTR 0x01040001 +wm 32 MX7_DDRC_DFIUPD0 0x80400003 +wm 32 MX7_DDRC_DFIUPD1 0x00100020 +wm 32 MX7_DDRC_DFIUPD2 0x80100004 +wm 32 MX7_DDRC_RFSHTMG 0x00200045 +wm 32 MX7_DDRC_MP_PCTRL_0 0x00000001 +wm 32 MX7_DDRC_INIT0 0x00020081 +wm 32 MX7_DDRC_INIT1 0x00680000 +wm 32 MX7_DDRC_INIT3 0x09300004 +wm 32 MX7_DDRC_INIT4 0x00480000 +wm 32 MX7_DDRC_INIT5 0x00100004 +wm 32 MX7_DDRC_RANKCTL 0x0000033F +wm 32 MX7_DDRC_DRAMTMG0 0x090E0809 +wm 32 MX7_DDRC_DRAMTMG1 0x0007020E +wm 32 MX7_DDRC_DRAMTMG2 0x03040407 +wm 32 MX7_DDRC_DRAMTMG3 0x00002006 +wm 32 MX7_DDRC_DRAMTMG4 0x04020304 +wm 32 MX7_DDRC_DRAMTMG5 0x03030202 +wm 32 MX7_DDRC_DRAMTMG8 0x00000803 +wm 32 MX7_DDRC_ZQCTL0 0x00800020 +wm 32 MX7_DDRC_DFITMG0 0x02098204 +wm 32 MX7_DDRC_DFITMG1 0x00030303 +wm 32 MX7_DDRC_ADDRMAP0 0x00000016 +wm 32 MX7_DDRC_ADDRMAP1 0x00171717 +wm 32 MX7_DDRC_ADDRMAP4 0x00000F0F +wm 32 MX7_DDRC_ADDRMAP5 0x04040404 +wm 32 MX7_DDRC_ADDRMAP6 0x0F040404 +wm 32 MX7_DDRC_ODTCFG 0x06000604 +wm 32 MX7_DDRC_ODTMAP 0x00000001 +wm 32 0x30391000 0x00000000 /* SRC_DDRC_RCR */ +wm 32 MX7_DDR_PHY_PHY_CON0 0x17420F40 +wm 32 MX7_DDR_PHY_PHY_CON1 0x10210100 +wm 32 MX7_DDR_PHY_PHY_CON4 0x00060807 +wm 32 MX7_DDR_PHY_MDLL_CON0 0x1010007E +wm 32 MX7_DDR_PHY_DRVDS_CON0 0x00000924 +/* DDR_PHY_CMD_DESKEW_CON0 not set */ +/* DDR_PHY_CMD_DESKEW_CON1 not set */ +/* DDR_PHY_CMD_DESKEW_CON2 not set */ +/* DDR_PHY_CMD_DESKEW_CON3 not set */ +/* DDR_PHY_LVL_CON0 not set */ +wm 32 MX7_DDR_PHY_OFFSET_RD_CON0 0x0B0B0B0B +wm 32 MX7_DDR_PHY_OFFSET_WR_CON0 0x06060606 +wm 32 MX7_DDR_PHY_CMD_SDLL_CON0 0x01000010 +wm 32 MX7_DDR_PHY_CMD_SDLL_CON0 0x00000010 + +wm 32 MX7_DDR_PHY_ZQ_CON0 0x0C407304 +wm 32 MX7_DDR_PHY_ZQ_CON0 0x0C447304 +wm 32 MX7_DDR_PHY_ZQ_CON0 0x0C447306 +check 32 until_all_bits_set MX7_DDR_PHY_ZQ_CON1 0x1 /* ZQ Calibration is finished */ +wm 32 MX7_DDR_PHY_ZQ_CON0 0x0C447304 +wm 32 MX7_DDR_PHY_ZQ_CON0 0x0C407304 + +wm 32 0x30384130 0x00000000 /* CCM_CCGRn */ +wm 32 0x30340020 0x00000178 /* IOMUXC_GPR_GPR8 */ +wm 32 0x30384130 0x00000002 /* CCM_CCGRn */ +wm 32 0x30790018 0x0000000f /* DDR_PHY_LP_CON0 */ + +/* DDRC_STAT */ +check 32 until_all_bits_set 0x307a0004 0x1 + diff --git a/arch/arm/boards/kamstrup-mx7-concentrator/lowlevel.c b/arch/arm/boards/kamstrup-mx7-concentrator/lowlevel.c new file mode 100644 index 000000000..8cd6d67f7 --- /dev/null +++ b/arch/arm/boards/kamstrup-mx7-concentrator/lowlevel.c @@ -0,0 +1,35 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +extern char __dtb_z_imx7d_flex_concentrator_mfg_start[]; + +static inline void setup_uart(void) +{ + imx7_early_setup_uart_clock(); + + imx7_setup_pad(MX7D_PAD_SAI2_TX_BCLK__UART4_DCE_TX); + + imx7_uart_setup_ll(); + + putc_ll('>'); +} + +ENTRY_FUNCTION(start_kamstrup_mx7_concentrator, r0, r1, r2) +{ + imx7_cpu_lowlevel_init(); + + if (IS_ENABLED(CONFIG_DEBUG_LL)) + setup_uart(); + + imx7d_barebox_entry(__dtb_z_imx7d_flex_concentrator_mfg_start + get_runtime_offset()); +} diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index d5f61768a..d66b6db07 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -30,6 +30,7 @@ lwl-$(CONFIG_MACH_GRINN_LITEBOARD) += imx6ul-liteboard.dtb.o lwl-$(CONFIG_MACH_GUF_SANTARO) += imx6q-guf-santaro.dtb.o lwl-$(CONFIG_MACH_GUF_VINCELL) += imx53-guf-vincell.dtb.o imx53-guf-vincell-lt.dtb.o lwl-$(CONFIG_MACH_GW_VENTANA) += imx6q-gw54xx.dtb.o +lwl-$(CONFIG_MACH_KAMSTRUP_MX7_CONCENTRATOR) += imx7d-flex-concentrator-mfg.dtb.o lwl-$(CONFIG_MACH_KONTRON_SAMX6I) += imx6q-samx6i.dtb.o \ imx6dl-samx6i.dtb.o lwl-$(CONFIG_MACH_LENOVO_IX4_300D) += armada-xp-lenovo-ix4-300d-bb.dtb.o diff --git a/arch/arm/dts/imx7d-flex-concentrator-mfg.dts b/arch/arm/dts/imx7d-flex-concentrator-mfg.dts new file mode 100644 index 000000000..d174ef725 --- /dev/null +++ b/arch/arm/dts/imx7d-flex-concentrator-mfg.dts @@ -0,0 +1,108 @@ +/* + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + */ + +#include + +/ { + chosen { + environment { + compatible = "barebox,environment"; + device-path = &environment_emmc; + }; + }; + + aliases { + state = &state_emmc; + }; + + state_emmc: state { + #address-cells = <1>; + #size-cells = <1>; + compatible = "barebox,state"; + magic = <0x4b414d31>; + backend-type = "raw"; + backend = <&backend_state_emmc>; + backend-stridesize = <0x200>; + + bootstate { + #address-cells = <1>; + #size-cells = <1>; + + system0 { + #address-cells = <1>; + #size-cells = <1>; + + remaining_attempts@0 { + reg = <0x0 0x4>; + type = "uint32"; + default = <10>; + }; + + priority@4 { + reg = <0x4 0x4>; + type = "uint32"; + default = <21>; + }; + }; + + system1 { + #address-cells = <1>; + #size-cells = <1>; + + remaining_attempts@8 { + reg = <0x8 0x4>; + type = "uint32"; + default = <0>; + }; + + priority@c { + reg = <0xc 0x4>; + type = "uint32"; + default = <20>; + }; + }; + + last_chosen@10 { + reg = <0x10 0x4>; + type = "uint32"; + }; + }; + }; +}; + +/* eMMC */ +&usdhc3 { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "barebox"; + reg = <0x0 0x100000>; + }; + + environment_emmc: partition@100000 { + label = "barebox-environment"; + reg = <0x100000 0x100000>; + }; + + backend_state_emmc: partition@200000 { + label = "barebox-state"; + reg = <0x200000 0x100000>; + }; + }; +}; + +/* FIXME: barebox serial is broken when barebox applies requested reparenting */ +&uart4 { + /delete-property/ assigned-clocks; + /delete-property/ assigned-clock-parents; +}; + diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 3f8012c73..cc73d0a0d 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig @@ -526,6 +526,11 @@ config MACH_FREESCALE_MX7_SABRESD https://goo.gl/6EKGdk +config MACH_KAMSTRUP_MX7_CONCENTRATOR + bool "Kamstrup i.MX7 Concentrator" + select ARCH_IMX7 + select ARM_USE_COMPRESSED_DTB + config MACH_NXP_IMX6ULL_EVK bool "NXP i.MX6ull EVK Board" select ARCH_IMX6UL diff --git a/images/Makefile.imx b/images/Makefile.imx index b892ec019..bc5ad1c7c 100644 --- a/images/Makefile.imx +++ b/images/Makefile.imx @@ -403,6 +403,11 @@ CFG_start_zii_imx7d_dev.pblb.imximg = $(board)/zii-imx7d-dev/flash-header-zii-im FILE_barebox-zii-imx7d-dev.img = start_zii_imx7d_dev.pblb.imximg image-$(CONFIG_MACH_ZII_IMX7D_DEV) += barebox-zii-imx7d-dev.img +pblb-$(CONFIG_MACH_KAMSTRUP_MX7_CONCENTRATOR) += start_kamstrup_mx7_concentrator +CFG_start_kamstrup_mx7_concentrator.pblb.imximg = $(board)/kamstrup-mx7-concentrator/flash-header-tqma7d.imxcfg +FILE_barebox-kamstrup-mx7-concentrator.img = start_kamstrup_mx7_concentrator.pblb.imximg +image-$(CONFIG_MACH_KAMSTRUP_MX7_CONCENTRATOR) += barebox-kamstrup-mx7-concentrator.img + # ----------------------- i.MX8mm based boards -------------------------- pblb-$(CONFIG_MACH_NXP_IMX8MM_EVK) += start_nxp_imx8mm_evk CFG_start_nxp_imx8mm_evk.pblb.imximg = $(board)/nxp-imx8mm-evk/flash-header-imx8mm-evk.imxcfg -- 2.30.2 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox