xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Chen Baozi <baozich@gmail.com>
To: Ian Campbell <Ian.Campbell@citrix.com>,
	Julien Grall <julien.grall@linaro.org>
Cc: Chen Baozi <baozich@gmail.com>, xen-devel@lists.xen.org
Subject: [PATCHv2 4/5] xen/arm: Introduce platform recognition codes for the OMAP5
Date: Wed,  7 Aug 2013 20:31:24 +0800	[thread overview]
Message-ID: <1375878685-24453-6-git-send-email-baozich@gmail.com> (raw)
In-Reply-To: <1375878685-24453-1-git-send-email-baozich@gmail.com>


Signed-off-by: Chen Baozi <baozich@gmail.com>
---
 xen/arch/arm/platforms/Makefile       |  1 +
 xen/arch/arm/platforms/omap5.c        | 41 +++++++++++++++++++++++++++++++++++
 xen/include/asm-arm/platforms/omap5.h | 13 +++++++++++
 3 files changed, 55 insertions(+)
 create mode 100644 xen/arch/arm/platforms/omap5.c
 create mode 100644 xen/include/asm-arm/platforms/omap5.h

diff --git a/xen/arch/arm/platforms/Makefile b/xen/arch/arm/platforms/Makefile
index ff2b65b..90ddcb1 100644
--- a/xen/arch/arm/platforms/Makefile
+++ b/xen/arch/arm/platforms/Makefile
@@ -1,2 +1,3 @@
 obj-y += vexpress.o
 obj-y += exynos5.o
+obj-y += omap5.o
diff --git a/xen/arch/arm/platforms/omap5.c b/xen/arch/arm/platforms/omap5.c
new file mode 100644
index 0000000..084e211
--- /dev/null
+++ b/xen/arch/arm/platforms/omap5.c
@@ -0,0 +1,41 @@
+/*
+ * xen/arch/arm/platforma/omap5.c
+ *
+ * OMAP5 specific settings
+ *
+ * Chen Baozi <baozich@gmail.com>
+ * Copyright (c) 2013
+ *
+ * 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 distributted 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 Gerneral Public License for more details.
+ */
+
+#include <xen/config.h>
+#include <asm/platform.h>
+#include <asm/platforms/omap5.h>
+
+static const char const *omap5_dt_compat[] __initdata =
+{
+    "ti,omap5",
+    NULL
+};
+
+PLATFORM_START(omap5, "TI OMAP5")
+    .compatible = omap5_dt_compat,
+PLATFORM_END
+
+/*
+ * Local variables:
+ * mode: C
+ * c-file-style: "BSD"
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ */
diff --git a/xen/include/asm-arm/platforms/omap5.h b/xen/include/asm-arm/platforms/omap5.h
new file mode 100644
index 0000000..ff07d95
--- /dev/null
+++ b/xen/include/asm-arm/platforms/omap5.h
@@ -0,0 +1,13 @@
+#ifndef __ASM_ARM_PLATFORMS_OMAP5_H
+#define __ASM_ASM_PLATFORMS_OMAP5_H
+
+#endif /* __ASM_ARM_PLATFORMS_OMAP5_H */
+
+/*
+ * Local variables:
+ * mode: C
+ * c-file-style: "BSD"
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ */
-- 
1.8.1.4

  parent reply	other threads:[~2013-08-07 12:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-07 12:31 [PATCHv2 0/5] Add UART support and arch timer initialization for OMAP5 Chen Baozi
2013-08-07 12:31 ` [PATCHv2 1/5] xen: rename ns16550-uart.h to 8250-uart.h and fix some typos Chen Baozi
2013-08-07 12:31 ` [PATCHv2 2/5] xen/arm: add 8250 compatible UART support for early_printk Chen Baozi
2013-08-07 12:31 ` [PATCH 2/5] xen/arm: add OMAP5432 " Chen Baozi
2013-08-07 12:40   ` Chen Baozi
2013-08-07 12:44     ` Ian Campbell
2013-08-07 12:46       ` Chen Baozi
2013-08-07 12:49         ` Julien Grall
2013-08-07 12:31 ` [PATCHv2 3/5] xen/arm: Add the new OMAP UART driver Chen Baozi
2013-08-07 12:31 ` Chen Baozi [this message]
2013-08-07 12:31 ` [PATCHv2 5/5] xen/arm: Add OMAP5 architected timer initialization codes Chen Baozi
  -- strict thread matches above, loose matches on Subject: below --
2013-08-07 13:14 [PATCHv2 0/5] Add UART support and arch timer initialization for OMAP5 Chen Baozi
2013-08-07 13:14 ` [PATCHv2 4/5] xen/arm: Introduce platform recognition codes for the OMAP5 Chen Baozi

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=1375878685-24453-6-git-send-email-baozich@gmail.com \
    --to=baozich@gmail.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=julien.grall@linaro.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).