target/platform: MSM8952 Bringup changes.
This patch adds support for -
1. Correct the USB freq plan.
2. Change the Volume up key GPIO status from Active high to low.
3. Update the mmu mapping for the scratch region
Change-Id: I45b5ea05e7cd70a52ded49c81d2cd1fd3f0ad6d6
diff --git a/platform/msm8952/msm8952-clock.c b/platform/msm8952/msm8952-clock.c
index f464cc8..2a94f16 100644
--- a/platform/msm8952/msm8952-clock.c
+++ b/platform/msm8952/msm8952-clock.c
@@ -298,6 +298,7 @@
/* USB Clocks */
static struct clk_freq_tbl ftbl_gcc_usb_hs_system_clk[] =
{
+ F(80000000, gpll0, 10, 0, 0),
F(133330000, gpll0, 6, 0, 0),
F_END
};
diff --git a/platform/msm8952/platform.c b/platform/msm8952/platform.c
index 1ee7cdc..6d82c08 100644
--- a/platform/msm8952/platform.c
+++ b/platform/msm8952/platform.c
@@ -64,7 +64,7 @@
{ MSM_IOMAP_BASE, MSM_IOMAP_BASE, MSM_IOMAP_SIZE, IOMAP_MEMORY},
{ APPS_SS_BASE, APPS_SS_BASE, APPS_SS_SIZE, IOMAP_MEMORY},
{ MSM_SHARED_IMEM_BASE, MSM_SHARED_IMEM_BASE, 1, COMMON_MEMORY},
- { SCRATCH_ADDR, SCRATCH_ADDR, 256, SCRATCH_MEMORY},
+ { SCRATCH_ADDR, SCRATCH_ADDR, 512, SCRATCH_MEMORY},
};
void platform_early_init(void)
diff --git a/target/msm8952/init.c b/target/msm8952/init.c
index 445e132..2e743c2 100644
--- a/target/msm8952/init.c
+++ b/target/msm8952/init.c
@@ -161,7 +161,7 @@
status = gpio_status(TLMM_VOL_UP_BTN_GPIO);
/* Active high signal. */
- return status;
+ return !status;
}
/* Return 1 if vol_down pressed */