From: khilman@baylibre.com (Kevin Hilman)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH 3/6] ARM: meson: add support for the Meson8m2 SoCs
Date: Wed, 09 May 2018 15:32:18 -0700 [thread overview]
Message-ID: <7hy3gsxxxp.fsf@baylibre.com> (raw)
In-Reply-To: <20180506092119.467-4-martin.blumenstingl@googlemail.com> (Martin Blumenstingl's message of "Sun, 6 May 2018 11:21:16 +0200")
Martin Blumenstingl <martin.blumenstingl@googlemail.com> writes:
> Add a new Kconfig entry as well as the newly introduced compatible
> string for the Meson8m2 SoC.
> The Kconfig entry selects the same drivers as Meson8b because Meson8m2
> SoC is mostly compatible with Meson8 (both share the same pinctrl
> driver, so they also share the same GPIO IRQ settings. also the same
> Meson6 timer is used on Meson8m2).
>
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
> ---
> arch/arm/mach-meson/Kconfig | 7 +++++++
> arch/arm/mach-meson/meson.c | 1 +
> 2 files changed, 8 insertions(+)
>
> diff --git a/arch/arm/mach-meson/Kconfig b/arch/arm/mach-meson/Kconfig
> index d90f61e6254f..44a489889bc1 100644
> --- a/arch/arm/mach-meson/Kconfig
> +++ b/arch/arm/mach-meson/Kconfig
> @@ -32,4 +32,11 @@ config MACH_MESON8B
> select COMMON_CLK_MESON8B
> select MESON_IRQ_GPIO
>
> +config MACH_MESON8M2
> + bool "Amlogic Meson8m2 SoCs support"
> + default ARCH_MESON
> + select MESON6_TIMER
> + select COMMON_CLK_MESON8B
> + select MESON_IRQ_GPIO
I'd prefer to stop the proliferation of identical Kconfigs which are
only used to select which DTB files to compile.
Instead, can you drop this new Kconfig as well as MACH_MESON8, and just
make all the meson8* DTBs build based on MACH_MESON8?
I think it better to have fewer Kconfigs. The only cost is building a
couple extra DTBs.
Thanks,
Kevin
> endif
> diff --git a/arch/arm/mach-meson/meson.c b/arch/arm/mach-meson/meson.c
> index 4e2357178625..c8d99df32f9b 100644
> --- a/arch/arm/mach-meson/meson.c
> +++ b/arch/arm/mach-meson/meson.c
> @@ -20,6 +20,7 @@ static const char * const meson_common_board_compat[] = {
> "amlogic,meson6",
> "amlogic,meson8",
> "amlogic,meson8b",
> + "amlogic,meson8m2",
> NULL,
> };
next prev parent reply other threads:[~2018-05-09 22:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-06 9:21 [PATCH 0/6] Meson8m2 (32-bit ARM) SoC support Martin Blumenstingl
2018-05-06 9:21 ` [PATCH 1/6] dt-bindings: arm: amlogic: add support for the Meson8m2 SoC Martin Blumenstingl
2018-05-08 16:25 ` Rob Herring
2018-05-09 22:30 ` Kevin Hilman
2018-05-06 9:21 ` [PATCH 2/6] dt-bindings: arm: amlogic: add support for the Tronsmart MXIII Plus Martin Blumenstingl
2018-05-08 16:51 ` Rob Herring
2018-05-09 22:31 ` Kevin Hilman
2018-05-06 9:21 ` [PATCH 3/6] ARM: meson: add support for the Meson8m2 SoCs Martin Blumenstingl
2018-05-09 22:32 ` Kevin Hilman [this message]
2018-05-09 23:02 ` Martin Blumenstingl
2018-05-06 9:21 ` [PATCH 4/6] ARM: dts: meson: add support for the Meson8m2 SoC Martin Blumenstingl
2018-05-06 9:21 ` [PATCH 5/6] ARM: dts: meson8: add the uart_A pins Martin Blumenstingl
2018-05-06 9:21 ` [PATCH 6/6] ARM: dts: meson8m2: add support for the Tronsmart MXIII Plus Martin Blumenstingl
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=7hy3gsxxxp.fsf@baylibre.com \
--to=khilman@baylibre.com \
--cc=linus-amlogic@lists.infradead.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