diff options
author | Andy Green <andy@openmoko.com> | 2008-11-19 17:11:08 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-11-19 17:11:08 +0000 |
commit | 6ea0a4bc5283a254c939f44206b2abde3cb7da45 (patch) | |
tree | b65b3226c6b89fd0608ba980f4fe70591339471c /arch/arm/mach-s3c2440/mach-gta02.c | |
parent | cd21081b281a4bfc00a5a41280bda734d2139f65 (diff) |
debug-make-glamo-child-of-pcf50633-for-sd-card-logical-suspend.patch
This is an early start on populating pcf50633 device tree callback, later
we convert the guys here and some additional ones to an array.
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'arch/arm/mach-s3c2440/mach-gta02.c')
-rw-r--r-- | arch/arm/mach-s3c2440/mach-gta02.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c index ce552879709..b0284971236 100644 --- a/arch/arm/mach-s3c2440/mach-gta02.c +++ b/arch/arm/mach-s3c2440/mach-gta02.c @@ -549,12 +549,25 @@ static struct platform_device gta01_pm_bt_dev = { * the pcf50633 still around. */ +static struct platform_device gta02_glamo_dev; +static void mangle_glamo_res_by_system_rev(void); + static void gta02_pcf50633_attach_child_devices(struct device *parent_device) { gta01_pm_gps_dev.dev.parent = parent_device; gta01_pm_bt_dev.dev.parent = parent_device; + /* + * Glamo is a child of PMU because SD Card needs power up until it can + * logically suspend the card... without this power is taken first + * before logical suspend action + */ + gta02_glamo_dev.dev.parent = parent_device; + platform_device_register(>a01_pm_bt_dev); platform_device_register(>a01_pm_gps_dev); + + mangle_glamo_res_by_system_rev(); + platform_device_register(>a02_glamo_dev); } static struct platform_device gta02_pm_wlan_dev = { @@ -1464,6 +1477,7 @@ gta02_glamo_mmc_set_power(unsigned char power_mode, unsigned short vdd) PCF50633_REGULATOR_HCLDO, mv); pcf50633_onoff_set(pcf50633_global, PCF50633_REGULATOR_HCLDO, 1); + msleep(200); break; case MMC_POWER_OFF: /* power off happens during suspend, when pcf50633 can |