From: Ian Campbell <ian.campbell@citrix.com>
To: xen-devel@lists.xen.org
Cc: bamv2005@gmail.com, julien.grall@linaro.org, tim@xen.org,
Ian Campbell <ian.campbell@citrix.com>,
stefano.stabellini@eu.citrix.com
Subject: [PATCH v4 1/3] xen/arm: Basic support for sunxi/sun7i platform.
Date: Fri, 1 Nov 2013 14:03:10 +0000 [thread overview]
Message-ID: <1383314592-30096-1-git-send-email-ian.campbell@citrix.com> (raw)
In-Reply-To: <1383314565.672.80.camel@kazak.uk.xensource.com>
Specifically cubieboard2
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
v4: Reduce set of headers, use __initconst
Only compile platform support on 32-bit
---
xen/arch/arm/platforms/Makefile | 1 +
xen/arch/arm/platforms/sunxi.c | 38 ++++++++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+)
create mode 100644 xen/arch/arm/platforms/sunxi.c
diff --git a/xen/arch/arm/platforms/Makefile b/xen/arch/arm/platforms/Makefile
index 7535801..f0dd72c 100644
--- a/xen/arch/arm/platforms/Makefile
+++ b/xen/arch/arm/platforms/Makefile
@@ -2,3 +2,4 @@ obj-y += vexpress.o
obj-$(CONFIG_ARM_32) += exynos5.o
obj-$(CONFIG_ARM_32) += midway.o
obj-$(CONFIG_ARM_32) += omap5.o
+obj-$(CONFIG_ARM_32) += sunxi.o
diff --git a/xen/arch/arm/platforms/sunxi.c b/xen/arch/arm/platforms/sunxi.c
new file mode 100644
index 0000000..ab3b4a6
--- /dev/null
+++ b/xen/arch/arm/platforms/sunxi.c
@@ -0,0 +1,38 @@
+/*
+ * xen/arch/arm/platforms/sunxi.c
+ *
+ * SUNXI (AllWinner A20/A31) specific settings
+ *
+ * Copyright (c) 2013 Citrix Systems.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#include <asm/platform.h>
+
+static const char * const sunxi_dt_compat[] __initconst =
+{
+ "allwinner,sun7i-a20",
+ NULL
+};
+
+PLATFORM_START(sunxi, "Allwinner A20")
+ .compatible = sunxi_dt_compat,
+PLATFORM_END
+
+/*
+ * Local variables:
+ * mode: C
+ * c-file-style: "BSD"
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ */
--
1.7.10.4
next prev parent reply other threads:[~2013-11-01 14:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-01 14:02 [PATCH v4 0/3] support for cubieboard2 / sunxi processors Ian Campbell
2013-11-01 14:03 ` Ian Campbell [this message]
2013-11-01 16:36 ` [PATCH v4 1/3] xen/arm: Basic support for sunxi/sun7i platform Julien Grall
2013-11-01 14:03 ` [PATCH v4 2/3] xen/arm: Blacklist sun7i UARTs Ian Campbell
2013-11-01 16:37 ` Julien Grall
2013-11-01 14:03 ` [PATCH v4 3/3] xen: arm: consitfy platform compatibility lists and use __initconst Ian Campbell
2013-11-01 16:38 ` Julien Grall
2013-11-05 13:56 ` [PATCH v4 0/3] support for cubieboard2 / sunxi processors Ian Campbell
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=1383314592-30096-1-git-send-email-ian.campbell@citrix.com \
--to=ian.campbell@citrix.com \
--cc=bamv2005@gmail.com \
--cc=julien.grall@linaro.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.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).