From: Andrii Tseglytskyi Date: Thu, 3 Jul 2014 09:55:28 +0000 (+0300) Subject: xen/arm: add DRA7 platform definition X-Git-Tag: 4.5.0-rc1~553 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=bf28d7c95639c42d42626e5c332895a5ba717a7e;p=xen.git xen/arm: add DRA7 platform definition DRA7 platform definition is added to already existing OMAP5 data. Data definitions, needed for DRA7 are almost common for OMAP5 family. Signed-off-by: Andrii Tseglytskyi Acked-by: Julien Grall Acked-by: Ian Campbell --- diff --git a/xen/arch/arm/platforms/omap5.c b/xen/arch/arm/platforms/omap5.c index 76d4d9b125..c0f8537404 100644 --- a/xen/arch/arm/platforms/omap5.c +++ b/xen/arch/arm/platforms/omap5.c @@ -144,12 +144,29 @@ static int __init omap5_smp_init(void) return 0; } -static const char const *omap5_dt_compat[] __initconst = +static const char * const omap5_dt_compat[] __initconst = { "ti,omap5", NULL }; +static const char * const dra7_dt_compat[] __initconst = +{ + "ti,dra7", + NULL +}; + +static const struct dt_device_match dra7_blacklist_dev[] __initconst = +{ + /* OMAP Linux kernel handles devices with status "disabled" in a + * weird manner - tries to reset them. While their memory ranges + * are not mapped, this leads to data aborts, so skip these devices + * from DT for dom0. + */ + DT_MATCH_NOT_AVAILABLE(), + { /* sentinel */ }, +}; + PLATFORM_START(omap5, "TI OMAP5") .compatible = omap5_dt_compat, .init_time = omap5_init_time, @@ -161,6 +178,17 @@ PLATFORM_START(omap5, "TI OMAP5") .dom0_gnttab_size = 0x20000, PLATFORM_END +PLATFORM_START(dra7, "TI DRA7") + .compatible = dra7_dt_compat, + .init_time = omap5_init_time, + .cpu_up = cpu_up_send_sgi, + .smp_init = omap5_smp_init, + + .dom0_gnttab_start = 0x4b000000, + .dom0_gnttab_size = 0x20000, + .blacklist_dev = dra7_blacklist_dev, +PLATFORM_END + /* * Local variables: * mode: C