diff mbox series

soc: imx8: print SoC type and revision

Message ID 20191127110556.3950-1-l.stach@pengutronix.de (mailing list archive)
State New, archived
Headers show
Series soc: imx8: print SoC type and revision | expand

Commit Message

Lucas Stach Nov. 27, 2019, 11:05 a.m. UTC
This is useful information to have when looking through system logs,
so add it to the output.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 drivers/soc/imx/soc-imx8.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Shawn Guo Dec. 9, 2019, 7:24 a.m. UTC | #1
On Wed, Nov 27, 2019 at 12:05:56PM +0100, Lucas Stach wrote:
> This is useful information to have when looking through system logs,
> so add it to the output.
> 
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>

It doesn't apply to v5.5-rc1.  I applied it manually.  Please check
imx/drivers branch to make sure it's done correctly.

Shawn

> ---
>  drivers/soc/imx/soc-imx8.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/soc/imx/soc-imx8.c b/drivers/soc/imx/soc-imx8.c
> index dbf57203e9ee..cafec82b2e7b 100644
> --- a/drivers/soc/imx/soc-imx8.c
> +++ b/drivers/soc/imx/soc-imx8.c
> @@ -211,6 +211,9 @@ static int __init imx8_soc_init(void)
>  	if (ret)
>  		goto free_rev;
>  
> +	pr_info("SoC: %s revision %s\n", soc_dev_attr->soc_id,
> +		soc_dev_attr->revision);
> +
>  	if (IS_ENABLED(CONFIG_ARM_IMX_CPUFREQ_DT))
>  		platform_device_register_simple("imx-cpufreq-dt", -1, NULL, 0);
>  
> -- 
> 2.20.1
>
diff mbox series

Patch

diff --git a/drivers/soc/imx/soc-imx8.c b/drivers/soc/imx/soc-imx8.c
index dbf57203e9ee..cafec82b2e7b 100644
--- a/drivers/soc/imx/soc-imx8.c
+++ b/drivers/soc/imx/soc-imx8.c
@@ -211,6 +211,9 @@  static int __init imx8_soc_init(void)
 	if (ret)
 		goto free_rev;
 
+	pr_info("SoC: %s revision %s\n", soc_dev_attr->soc_id,
+		soc_dev_attr->revision);
+
 	if (IS_ENABLED(CONFIG_ARM_IMX_CPUFREQ_DT))
 		platform_device_register_simple("imx-cpufreq-dt", -1, NULL, 0);