diff options
author | Andy Green <andy@openmoko.com> | 2008-11-19 17:09:58 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-11-19 17:09:58 +0000 |
commit | c3a78e6ea03689bc097ed449c9ae2597d94f3277 (patch) | |
tree | 7018af34ebc032d7b3d38a796a14c3fc1c254af7 /arch/arm/mach-s3c2440 | |
parent | cb559a9ddbd67883ec2e328ed69f9ad68768b4de (diff) |
use-gta02-glamo-mci-sd-dynamic-clock.patch
This patch uses the new glamo-mci slow clock ratio
patch in order to dynamically reduce SD Card clock
rate when the GPS unit is powered on GTA02.
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'arch/arm/mach-s3c2440')
-rw-r--r-- | arch/arm/mach-s3c2440/mach-gta02.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c index 382837d27d6..8e43c4afc06 100644 --- a/arch/arm/mach-s3c2440/mach-gta02.c +++ b/arch/arm/mach-s3c2440/mach-gta02.c @@ -85,6 +85,8 @@ #include <linux/gta02_hdq.h> #include <linux/bq27000_battery.h> +#include "../plat-s3c24xx/neo1973_pm_gps.h" + /* arbitrates which sensor IRQ owns the shared SPI bus */ static spinlock_t motion_irq_lock; @@ -1424,6 +1426,15 @@ static void gta02_glamo_mci_suspending(struct platform_device *dev) /* Smedia Glamo 3362 */ +/* + * we crank down SD Card clock dynamically when GPS is powered + */ + +static int gta02_glamo_mci_use_slow(void) +{ + return neo1973_pm_gps_is_on(); +} + static struct glamofb_platform_data gta02_glamo_pdata = { .width = 43, .height = 58, @@ -1456,6 +1467,7 @@ static struct glamofb_platform_data gta02_glamo_pdata = { /* glamo MMC function platform data */ .glamo_set_mci_power = gta02_glamo_mmc_set_power, + .glamo_mci_use_slow = gta02_glamo_mci_use_slow, .glamo_irq_is_wired = glamo_irq_is_wired, .mci_suspending = gta02_glamo_mci_suspending, .mci_all_dependencies_resumed = |