From: Wenyou Yang <wenyou.yang@atmel.com>
To: Nicolas Ferre <nicolas.ferre@atmel.com>,
Alexandre Belloni <alexandre.belloni@free-electrons.com>,
Russell King <linux@arm.linux.org.uk>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org,
Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
Mark Brown <broonie@kernel.org>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Kumar Gala <galak@codeaurora.org>,
Wenyou Yang <wenyou.yang@atmel.com>
Subject: [PATCH v6 1/6] ARM: at91: sama5: Add a new DT_MACHINE for SAMA5D2
Date: Mon, 8 Aug 2016 18:05:00 +0800 [thread overview]
Message-ID: <1470650705-31418-2-git-send-email-wenyou.yang@atmel.com> (raw)
In-Reply-To: <1470650705-31418-1-git-send-email-wenyou.yang@atmel.com>
To support the SAMA5D2 specific pm_init function, add a new
DT_MACHINE for SAMA5D2.
Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
---
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
arch/arm/mach-at91/sama5.c | 25 +++++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-at91/sama5.c b/arch/arm/mach-at91/sama5.c
index 922b85f..2debfe2 100644
--- a/arch/arm/mach-at91/sama5.c
+++ b/arch/arm/mach-at91/sama5.c
@@ -59,7 +59,7 @@ static const struct at91_soc sama5_socs[] = {
{ /* sentinel */ },
};
-static void __init sama5_dt_device_init(void)
+static void __init sama5_common_init(void)
{
struct soc_device *soc;
struct device *soc_dev = NULL;
@@ -69,6 +69,11 @@ static void __init sama5_dt_device_init(void)
soc_dev = soc_device_to_device(soc);
of_platform_populate(NULL, of_default_bus_match_table, NULL, soc_dev);
+}
+
+static void __init sama5_dt_device_init(void)
+{
+ sama5_common_init();
sama5_pm_init();
}
@@ -84,7 +89,6 @@ DT_MACHINE_START(sama5_dt, "Atmel SAMA5")
MACHINE_END
static const char *const sama5_alt_dt_board_compat[] __initconst = {
- "atmel,sama5d2",
"atmel,sama5d4",
NULL
};
@@ -95,3 +99,20 @@ DT_MACHINE_START(sama5_alt_dt, "Atmel SAMA5")
.dt_compat = sama5_alt_dt_board_compat,
.l2c_aux_mask = ~0UL,
MACHINE_END
+
+static void __init sama5d2_dt_device_init(void)
+{
+ sama5_common_init();
+}
+
+static const char *const sama5d2_dt_board_compat[] __initconst = {
+ "atmel,sama5d2",
+ NULL
+};
+
+DT_MACHINE_START(sama5d2_dt, "Atmel SAMA5")
+ /* Maintainer: Atmel */
+ .init_machine = sama5d2_dt_device_init,
+ .dt_compat = sama5d2_dt_board_compat,
+ .l2c_aux_mask = ~0UL,
+MACHINE_END
--
2.7.4
next prev parent reply other threads:[~2016-08-08 10:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-08 10:04 [PATCH v6 0/6] ARM: at91: pm: add ULP1 mode support Wenyou Yang
2016-08-08 10:05 ` Wenyou Yang [this message]
2016-08-08 10:05 ` [PATCH v6 2/6] ARM: at91: pm: Create a procedure for the ULP0 mode Wenyou Yang
2016-08-08 10:05 ` [PATCH v6 3/6] ARM: at91: pm: Add ULP1 mode support Wenyou Yang
2016-08-08 10:05 ` [PATCH v6 4/6] ARM: at91: pm: Configure PMC fast startup signals Wenyou Yang
2016-08-08 10:05 ` [PATCH v6 5/6] Documentation: atmel-pmc: Add DT bindings for fast startup Wenyou Yang
2016-08-08 10:05 ` [PATCH v6 6/6] ARM: at91/dt: sama5d2_xplained: Add fast_restart node Wenyou Yang
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=1470650705-31418-2-git-send-email-wenyou.yang@atmel.com \
--to=wenyou.yang@atmel.com \
--cc=alexandre.belloni@free-electrons.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=nicolas.ferre@atmel.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.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).