diff options
Diffstat (limited to 'arch/arm/mach-shmobile/board-kzm9g.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-kzm9g.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c index 53b7ea92c32c..6525835abc0a 100644 --- a/arch/arm/mach-shmobile/board-kzm9g.c +++ b/arch/arm/mach-shmobile/board-kzm9g.c | |||
@@ -133,8 +133,8 @@ static struct platform_device usb_host_device = { | |||
133 | 133 | ||
134 | /* USB Func CN17 */ | 134 | /* USB Func CN17 */ |
135 | struct usbhs_private { | 135 | struct usbhs_private { |
136 | unsigned int phy; | 136 | void __iomem *phy; |
137 | unsigned int cr2; | 137 | void __iomem *cr2; |
138 | struct renesas_usbhs_platform_info info; | 138 | struct renesas_usbhs_platform_info info; |
139 | }; | 139 | }; |
140 | 140 | ||
@@ -232,8 +232,8 @@ static u32 usbhs_pipe_cfg[] = { | |||
232 | }; | 232 | }; |
233 | 233 | ||
234 | static struct usbhs_private usbhs_private = { | 234 | static struct usbhs_private usbhs_private = { |
235 | .phy = 0xe60781e0, /* USBPHYINT */ | 235 | .phy = IOMEM(0xe60781e0), /* USBPHYINT */ |
236 | .cr2 = 0xe605810c, /* USBCR2 */ | 236 | .cr2 = IOMEM(0xe605810c), /* USBCR2 */ |
237 | .info = { | 237 | .info = { |
238 | .platform_callback = { | 238 | .platform_callback = { |
239 | .hardware_init = usbhs_hardware_init, | 239 | .hardware_init = usbhs_hardware_init, |
@@ -763,12 +763,20 @@ static void __init kzm_init(void) | |||
763 | platform_add_devices(kzm_devices, ARRAY_SIZE(kzm_devices)); | 763 | platform_add_devices(kzm_devices, ARRAY_SIZE(kzm_devices)); |
764 | } | 764 | } |
765 | 765 | ||
766 | static void kzm9g_restart(char mode, const char *cmd) | ||
767 | { | ||
768 | #define RESCNT2 0xe6188020 | ||
769 | /* Do soft power on reset */ | ||
770 | writel((1 << 31), RESCNT2); | ||
771 | } | ||
772 | |||
766 | static const char *kzm9g_boards_compat_dt[] __initdata = { | 773 | static const char *kzm9g_boards_compat_dt[] __initdata = { |
767 | "renesas,kzm9g", | 774 | "renesas,kzm9g", |
768 | NULL, | 775 | NULL, |
769 | }; | 776 | }; |
770 | 777 | ||
771 | DT_MACHINE_START(KZM9G_DT, "kzm9g") | 778 | DT_MACHINE_START(KZM9G_DT, "kzm9g") |
779 | .smp = smp_ops(sh73a0_smp_ops), | ||
772 | .map_io = sh73a0_map_io, | 780 | .map_io = sh73a0_map_io, |
773 | .init_early = sh73a0_add_early_devices, | 781 | .init_early = sh73a0_add_early_devices, |
774 | .nr_irqs = NR_IRQS_LEGACY, | 782 | .nr_irqs = NR_IRQS_LEGACY, |
@@ -777,5 +785,6 @@ DT_MACHINE_START(KZM9G_DT, "kzm9g") | |||
777 | .init_machine = kzm_init, | 785 | .init_machine = kzm_init, |
778 | .init_late = shmobile_init_late, | 786 | .init_late = shmobile_init_late, |
779 | .timer = &shmobile_timer, | 787 | .timer = &shmobile_timer, |
788 | .restart = kzm9g_restart, | ||
780 | .dt_compat = kzm9g_boards_compat_dt, | 789 | .dt_compat = kzm9g_boards_compat_dt, |
781 | MACHINE_END | 790 | MACHINE_END |