Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /* Staging board support for KZM9D. Enable not-yet-DT-capable devices here. */
0003 
0004 #include <linux/kernel.h>
0005 #include <linux/platform_device.h>
0006 #include "board.h"
0007 
0008 static struct resource usbs1_res[] __initdata = {
0009     DEFINE_RES_MEM(0xe2800000, 0x2000),
0010     DEFINE_RES_IRQ(159),
0011 };
0012 
0013 static void __init kzm9d_init(void)
0014 {
0015     board_staging_gic_setup_xlate("arm,pl390", 32);
0016 
0017     if (!board_staging_dt_node_available(usbs1_res,
0018                          ARRAY_SIZE(usbs1_res))) {
0019         board_staging_gic_fixup_resources(usbs1_res,
0020                           ARRAY_SIZE(usbs1_res));
0021         platform_device_register_simple("emxx_udc", -1, usbs1_res,
0022                         ARRAY_SIZE(usbs1_res));
0023     }
0024 }
0025 
0026 board_staging("renesas,kzm9d", kzm9d_init);