@@ -136,6 +136,16 @@ static struct resource irqc0_resources[] = {
&irqc##idx##_data, \
sizeof(struct renesas_irqc_config))
+/* PCI Express */
+static struct resource pcie_resources[] = {
+ DEFINE_RES_MEM(0xfe000000, SZ_512K),
+ DEFINE_RES_MEM(0xfe100000, SZ_1M),
+ DEFINE_RES_MEM(0xfe200000, SZ_2M),
+ DEFINE_RES_MEM(0x30000000, SZ_128M),
+ DEFINE_RES_MEM(0x38000000, SZ_128M),
+ DEFINE_RES_IRQ(gic_spi(116)),
+};
+
void __init r8a7791_add_dt_devices(void)
{
r8a7791_register_scif(SCIFA0);
@@ -160,6 +170,9 @@ void __init r8a7791_add_standard_devices(void)
{
r8a7791_add_dt_devices();
r8a7791_register_irqc(0);
+ platform_device_register_simple("r8a7791-pcie", -1,
+ pcie_resources,
+ ARRAY_SIZE(pcie_resources));
}
void __init r8a7791_init_early(void)
Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> --- arch/arm/mach-shmobile/setup-r8a7791.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)