From: Gary Bisson <gary.bisson@boundarydevices.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V3 1/3] imx6: Define 'soc' env var for imx6 SoC
Date: Wed, 11 Apr 2018 17:46:24 +0200 [thread overview]
Message-ID: <20180411154624.GA22735@t450s.lan> (raw)
In-Reply-To: <20180411103850.13539-2-guillaume.gardet@free.fr>
Hi Guillaume,
On Wed, Apr 11, 2018 at 12:38:48PM +0200, Guillaume GARDET wrote:
> Signed-off-by: Guillaume GARDET <guillaume.gardet@free.fr>
> Cc: Troy Kisky <troy.kisky@boundarydevices.com>
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Fabio Estevam <fabio.estevam@nxp.com>
> Cc: Gary Bisson <gary.bisson@boundarydevices.com>
>
> ---
> arch/arm/mach-imx/mx6/soc.c | 34 ++++++++++++++++++++++++++++++++++
> 1 file changed, 34 insertions(+)
>
> diff --git a/arch/arm/mach-imx/mx6/soc.c b/arch/arm/mach-imx/mx6/soc.c
> index 9b3d8f69b2..c4cb752c76 100644
> --- a/arch/arm/mach-imx/mx6/soc.c
> +++ b/arch/arm/mach-imx/mx6/soc.c
> @@ -446,6 +446,40 @@ int arch_cpu_init(void)
> return 0;
> }
>
> + #ifdef CONFIG_ARCH_MISC_INIT
> + int arch_misc_init(void)
> + {
> + #ifdef CONFIG_ENV_VARS_UBOOT_CONFIG
> + if (is_cpu_type(MXC_CPU_MX6QP))
> + env_set("soc", "imx6qp");
> + else if (is_cpu_type(MXC_CPU_MX6Q))
> + env_set("soc", "imx6q");
> + else if (is_cpu_type(MXC_CPU_MX6DP))
> + env_set("soc", "imx6dp");
If we want that soc variable to be used for dtb names, then the above
won't work. A i.MX6DP platform has its dtb named imx6qp-board.dtb.
> + else if (is_cpu_type(MXC_CPU_MX6D))
> + env_set("soc", "imx6d");
Same here, a Dual CPU actually uses a imx6q-board.dtb.
> + else if (is_mx6dl( ))
> + env_set("soc", "imx6dl");
> + else if (is_mx6sx( ))
> + env_set("soc", "imx6sx");
> + else if (is_mx6sl( ))
> + env_set("soc", "imx6sl");
> + else if (is_mx6solo( ))
> + env_set("soc", "imx6solo");
Same here, a Solo CPU uses a imx6dl-board.dtb.
> + else if (is_mx6ul( ))
> + env_set("soc", "imx6ul");
> + else if (is_mx6ull( ))
> + env_set("soc", "imx6ull");
> + else if (is_mx6sll( ))
> + env_set("soc", "imx6sll");
> + else
> + env_set("soc", "imx6");
In that case we most likely miss a CPU definition, maybe "unknown" would
be more explicit?
Regards,
Gary
next prev parent reply other threads:[~2018-04-11 15:46 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-06 10:05 [U-Boot] [PATCH] imx: nitrogen6x: Convert Sabrelite to distro boot support Guillaume GARDET
2018-04-09 6:39 ` [U-Boot] [PATCH V2] " Guillaume GARDET
2018-04-11 10:38 ` [U-Boot] [PATCH V3 0/3] Update sabrelite and nitrogen6x boards to use " Guillaume GARDET
2018-04-11 10:38 ` [U-Boot] [PATCH V3 1/3] imx6: Define 'soc' env var for imx6 SoC Guillaume GARDET
2018-04-11 14:23 ` Fabio Estevam
2018-04-11 14:41 ` Guillaume Gardet
2018-04-11 15:41 ` Fabio Estevam
2018-04-11 15:46 ` Gary Bisson [this message]
2018-04-11 15:52 ` Guillaume Gardet
2018-04-11 16:06 ` Fabio Estevam
2018-04-12 8:13 ` Guillaume Gardet
2018-04-12 11:14 ` Fabio Estevam
2018-04-12 12:36 ` Gary Bisson
2018-04-12 12:48 ` Guillaume Gardet
2018-04-12 12:58 ` Gary Bisson
2018-04-12 13:07 ` Guillaume Gardet
2018-04-11 10:38 ` [U-Boot] [PATCH V3 2/3] imx6: Convert sabrelite and nitrogen6x boards to distro boot support Guillaume GARDET
2018-04-11 10:38 ` [U-Boot] [PATCH V3 3/3] imx6: sabrelite: update defconfig to use distro defaults Guillaume GARDET
2018-04-12 13:28 ` [U-Boot] [PATCH V4 0/2] Update sabrelite and nitrogen6x boards to use distro boot support Guillaume GARDET
2018-04-12 13:28 ` [U-Boot] [PATCH V4 1/2] imx6: Convert sabrelite and nitrogen6x boards to " Guillaume GARDET
2018-04-16 7:45 ` Gary Bisson
2018-04-12 13:28 ` [U-Boot] [PATCH V4 2/2] imx6: sabrelite: update defconfig to use distro defaults Guillaume GARDET
2018-04-16 12:47 ` [U-Boot] [PATCH V5 0/2] Update sabrelite and nitrogen6x boards to use distro boot support Guillaume GARDET
2018-04-16 12:47 ` [U-Boot] [PATCH V5 1/2] imx6: Convert sabrelite and nitrogen6x boards to " Guillaume GARDET
2018-04-18 14:37 ` Gary Bisson
2018-04-16 12:47 ` [U-Boot] [PATCH V5 2/2] imx6: sabrelite: update defconfig to use distro defaults Guillaume GARDET
2018-04-18 14:44 ` Gary Bisson
2018-04-18 15:05 ` Guillaume Gardet
2018-04-18 15:04 ` [U-Boot] [PATCH V6 0/2] Update sabrelite and nitrogen6x boards to use distro boot support Guillaume GARDET
2018-04-18 15:04 ` [U-Boot] [PATCH V6 1/2] imx6: Convert sabrelite and nitrogen6x boards to " Guillaume GARDET
2018-05-17 7:17 ` Denis Pynkin
2018-04-18 15:04 ` [U-Boot] [PATCH V6 2/2] imx6: sabrelite: update defconfig to use distro defaults Guillaume GARDET
2018-05-16 7:20 ` [U-Boot] [PATCH V6 0/2] Update sabrelite and nitrogen6x boards to use distro boot support Guillaume Gardet
2018-05-17 9:51 ` Stefano Babic
2018-05-17 15:45 ` Troy Kisky
2018-05-17 15:46 ` Stefano Babic
2018-04-09 14:40 ` [U-Boot] [PATCH] imx: nitrogen6x: Convert Sabrelite to " Gary Bisson
2018-04-09 15:17 ` Guillaume Gardet
2018-04-10 11:50 ` Gary Bisson
2018-04-13 5:08 ` Joe Hershberger
2018-04-09 17:27 ` Fabio Estevam
2018-04-10 12:05 ` Gary Bisson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180411154624.GA22735@t450s.lan \
--to=gary.bisson@boundarydevices.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox