Skip to content

Commit

Permalink
ARM: shmobile: armadillo800eva: A3SP domain includes USB
Browse files Browse the repository at this point in the history
Because USB Func is controlled by external IRQ mode,
it is possible to control USB under A3SP domain to reduce power.
This patch enables it.

Armadillo800eva board switchs USB Host/Func by SW1.6,
So, the device to adds into domain is selected on this patch.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
  • Loading branch information
Kuninori Morimoto authored and Rafael J. Wysocki committed Jul 6, 2012
1 parent 1000076 commit 0f54788
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/arm/mach-shmobile/board-armadillo800eva.c
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,8 @@ static void __init eva_clock_init(void)
#define GPIO_PORT8CR 0xe6050008
static void __init eva_init(void)
{
struct platform_device *usb = NULL;

regulator_register_always_on(0, "fixed-3.3V", fixed3v3_power_consumers,
ARRAY_SIZE(fixed3v3_power_consumers), 3300000);

Expand Down Expand Up @@ -1050,6 +1052,7 @@ static void __init eva_init(void)
gpio_direction_input(GPIO_PORT209);

platform_device_register(&usbhsf_device);
usb = &usbhsf_device;
}

/* SDHI0 */
Expand Down Expand Up @@ -1180,6 +1183,8 @@ static void __init eva_init(void)

rmobile_add_device_to_domain(&r8a7740_pd_a4lc, &lcdc0_device);
rmobile_add_device_to_domain(&r8a7740_pd_a4lc, &hdmi_lcdc_device);
if (usb)
rmobile_add_device_to_domain(&r8a7740_pd_a3sp, usb);
}

static void __init eva_earlytimer_init(void)
Expand Down

0 comments on commit 0f54788

Please sign in to comment.