Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
[platform/msm7k]: Add code to wait till the mARM is ready to initiali…
Browse files Browse the repository at this point in the history
…ze the clocks

Before initializing the clock, wait for the modem to be ready. This will fix
the jload problem of not reaching the l4 entry point. Add code to not implement
this wait while flashing the apps images.
  • Loading branch information
Chandan Uddaraju committed Dec 15, 2009
1 parent 2412050 commit 9650197
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions platform/msm7k/acpuclock.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ void acpu_clock_init(void)
{
unsigned i;

#if (!ENABLE_NANDWRITE)
int *modem_stat_check = (MSM_SHARED_BASE + 0x14);

/* Wait for modem to be ready before clock init */
while (readl(modem_stat_check) != 1);
#endif

/* Increase VDD level to the final value. */
writel((1 << 7) | (VDD_LEVEL << 3), VDD_SVS_PLEVEL_ADDR);
thread_sleep(1);
Expand Down
1 change: 1 addition & 0 deletions project/msm7627_ffa_nandwrite.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ TARGET := msm7627_ffa
MODULES += app/nandwrite

DEFINES += WITH_DEBUG_JTAG=1
DEFINES += ENABLE_NANDWRITE=1
#DEFINES += WITH_DEBUG_DCC=1
#DEFINES += WITH_DEBUG_UART=1
#DEFINES += WITH_DEBUG_FBCON=1
Expand Down
1 change: 1 addition & 0 deletions project/msm7627_surf_nandwrite.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ TARGET := msm7627_surf
MODULES += app/nandwrite

DEFINES += WITH_DEBUG_JTAG=1
DEFINES += ENABLE_NANDWRITE=1
#DEFINES += WITH_DEBUG_DCC=1
#DEFINES += WITH_DEBUG_UART=1
#DEFINES += WITH_DEBUG_FBCON=1
Expand Down

0 comments on commit 9650197

Please sign in to comment.