devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
To: Keerthy <j-keerthy-l0cyMroinI0@public.gmane.org>
Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org,
	galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org,
	alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org,
	akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org,
	johan-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	balbi-l0cyMroinI0@public.gmane.org,
	nm-l0cyMroinI0@public.gmane.org,
	paul-DWxLp4Yu+b8AvxtiuMwx3w@public.gmane.org,
	t-kristo-l0cyMroinI0@public.gmane.org
Subject: Re: [PATCH 5/8] ARM: AM43xx: Introduce a separate soc_is function for am438x series of SoCs
Date: Wed, 5 Aug 2015 04:16:01 -0700	[thread overview]
Message-ID: <20150805111601.GJ16878@atomide.com> (raw)
In-Reply-To: <1438771792-12604-6-git-send-email-j-keerthy-l0cyMroinI0@public.gmane.org>

* Keerthy <j-keerthy-l0cyMroinI0@public.gmane.org> [150805 03:53]:
> --- a/arch/arm/mach-omap2/id.c
> +++ b/arch/arm/mach-omap2/id.c
> @@ -228,6 +228,8 @@ static void __init omap3_cpuinfo(void)
>  		cpu_name =  "AM335X";
>  	} else if (soc_is_am437x()) {
>  		cpu_name =  "AM437x";
> +	} else if (soc_is_am438x()) {
> +		cpu_name =  "AM438X";
>  	} else if (cpu_is_ti814x()) {
>  		cpu_name = "TI814X";
>  	} else if (omap3_has_iva() && omap3_has_sgx()) {
> --- a/arch/arm/mach-omap2/soc.h
> +++ b/arch/arm/mach-omap2/soc.h
> @@ -238,6 +238,7 @@ IS_AM_SUBCLASS(437x, 0x437)
>  #define soc_is_am335x()			0
>  #define soc_is_am43xx()			0
>  #define soc_is_am437x()			0
> +#define soc_is_am438x()			0
>  #define cpu_is_omap44xx()		0
>  #define cpu_is_omap443x()		0
>  #define cpu_is_omap446x()		0
> @@ -371,8 +372,10 @@ IS_OMAP_TYPE(3430, 0x3430)
>  #ifdef	CONFIG_SOC_AM43XX
>  # undef soc_is_am43xx
>  # undef soc_is_am437x
> -# define soc_is_am43xx()		is_am43xx()
> -# define soc_is_am437x()		is_am437x()
> +# undef soc_is_am438x
> +# define soc_is_am43xx()		of_machine_is_compatible("ti,am43")
> +# define soc_is_am437x()		of_machine_is_compatible("ti,am4372")
> +# define soc_is_am438x()		of_machine_is_compatible("ti,am438x")
>  #endif
>  
>  # if defined(CONFIG_ARCH_OMAP4)

Nice if we can start getting rid of the early SoC detection. But
With this change to use of_machine_is_compatible we need to make
sure nothing relies on it too early in the init. And we should
then do it for all the SoCs that boot in dts mode to avoid making
them behave in a different way.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2015-08-05 11:16 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-05 10:49 [PATCH 0/8] ARM: AM4372: Enable RTC Keerthy
     [not found] ` <1438771792-12604-1-git-send-email-j-keerthy-l0cyMroinI0@public.gmane.org>
2015-08-05 10:49   ` [PATCH 1/8] ARM: dts: AM4372: Reorder the rtc compatible string Keerthy
     [not found]     ` <1438771792-12604-2-git-send-email-j-keerthy-l0cyMroinI0@public.gmane.org>
2015-08-05 15:31       ` Felipe Balbi
     [not found]         ` <20150805153148.GB12328-HgARHv6XitJaoMGHk7MhZQC/G2K4zDHf@public.gmane.org>
2015-08-05 15:51           ` Keerthy
     [not found]             ` <55C230E9.9010309-l0cyMroinI0@public.gmane.org>
2015-08-05 16:14               ` Felipe Balbi
     [not found]                 ` <20150805161445.GF12328-HgARHv6XitJaoMGHk7MhZQC/G2K4zDHf@public.gmane.org>
2015-08-05 16:18                   ` Keerthy
     [not found]                     ` <55C23740.2080102-l0cyMroinI0@public.gmane.org>
2015-08-05 16:51                       ` Felipe Balbi
     [not found]                         ` <20150805165122.GH12328-HgARHv6XitJaoMGHk7MhZQC/G2K4zDHf@public.gmane.org>
2015-08-06  1:25                           ` Keerthy
     [not found]                             ` <55C2B7A5.5000400-l0cyMroinI0@public.gmane.org>
2015-08-06 14:16                               ` Felipe Balbi
     [not found]                                 ` <20150806141618.GA19110-HgARHv6XitJaoMGHk7MhZQC/G2K4zDHf@public.gmane.org>
2015-08-06 16:48                                   ` Keerthy
     [not found]                                     ` <55C38FCC.1040306-l0cyMroinI0@public.gmane.org>
2015-08-07  2:47                                       ` Tony Lindgren
2015-08-06 13:33                   ` Afzal Mohammed
2015-08-05 10:49   ` [PATCH 2/8] ARM: dts: am437x-gp-evm: Add regulator-always-on and regulator-boot-on for RTC DCDCs Keerthy
     [not found]     ` <1438771792-12604-3-git-send-email-j-keerthy-l0cyMroinI0@public.gmane.org>
2015-08-05 11:20       ` Tony Lindgren
2015-08-05 10:49   ` [PATCH 3/8] rtc: omap: Add external clock enabling support Keerthy
     [not found]     ` <1438771792-12604-4-git-send-email-j-keerthy-l0cyMroinI0@public.gmane.org>
2015-08-05 11:13       ` Tony Lindgren
     [not found]         ` <20150805111316.GI16878-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2015-08-05 11:41           ` Alexandre Belloni
     [not found]             ` <20150805114119.GF3486-m++hUPXGwpdeoWH0uzbU5w@public.gmane.org>
2015-08-05 11:43               ` Alexandre Belloni
     [not found]                 ` <20150805114357.GG3486-m++hUPXGwpdeoWH0uzbU5w@public.gmane.org>
2015-08-05 12:01                   ` Keerthy
     [not found]                     ` <55C1FB12.1000208-l0cyMroinI0@public.gmane.org>
2015-08-05 12:35                       ` Alexandre Belloni
     [not found]                         ` <20150805123550.GH3486-m++hUPXGwpdeoWH0uzbU5w@public.gmane.org>
2015-08-06  2:09                           ` Keerthy
     [not found]                             ` <55C2C1F0.9040102-l0cyMroinI0@public.gmane.org>
2015-08-06  8:44                               ` Alexandre Belloni
2015-08-06  9:36                   ` Grygorii Strashko
     [not found]                     ` <55C32AB6.7090509-l0cyMroinI0@public.gmane.org>
2015-08-06  9:47                       ` Alexandre Belloni
     [not found]                         ` <20150806094736.GM3486-m++hUPXGwpdeoWH0uzbU5w@public.gmane.org>
2015-08-06  9:51                           ` Tony Lindgren
     [not found]                             ` <20150806095105.GD4215-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2015-08-07  8:20                               ` Keerthy
2015-08-05 10:49   ` [PATCH 4/8] ARM: dts: AM4372: Add external clock flag Keerthy
2015-08-05 10:49   ` [PATCH 5/8] ARM: AM43xx: Introduce a separate soc_is function for am438x series of SoCs Keerthy
     [not found]     ` <1438771792-12604-6-git-send-email-j-keerthy-l0cyMroinI0@public.gmane.org>
2015-08-05 11:16       ` Tony Lindgren [this message]
2015-08-05 10:49   ` [PATCH 6/8] ARM: dts: am43x-epos-evm: Add the am438 compatible string Keerthy
2015-08-05 10:49   ` [PATCH 7/8] ARM: AM43XX: HWMOD: Add rtc hwmod Keerthy
2015-08-05 10:49   ` [PATCH 8/8] ARM: dts: AM437x-gp-evm: Enable RTC Keerthy

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=20150805111601.GJ16878@atomide.com \
    --to=tony-4v6ys6ai5vpbdgjk7y7tuq@public.gmane.org \
    --cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
    --cc=alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
    --cc=balbi-l0cyMroinI0@public.gmane.org \
    --cc=bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
    --cc=j-keerthy-l0cyMroinI0@public.gmane.org \
    --cc=johan-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=nm-l0cyMroinI0@public.gmane.org \
    --cc=paul-DWxLp4Yu+b8AvxtiuMwx3w@public.gmane.org \
    --cc=t-kristo-l0cyMroinI0@public.gmane.org \
    /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;
as well as URLs for NNTP newsgroup(s).