diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-30 17:50:26 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-30 17:50:26 +0000 |
commit | eec25d29ad35d963df61f88c95495bab453282b0 (patch) | |
tree | 0fa8dd6558c7901059a44dd4142edfe2bbe4476d /nuttx/arch/arm/src/lpc313x/lpc313x_boot.c | |
parent | ea7ba8d9a64cabb45a18375b1ded3b2df1361a7b (diff) | |
download | px4-nuttx-eec25d29ad35d963df61f88c95495bab453282b0.tar.gz px4-nuttx-eec25d29ad35d963df61f88c95495bab453282b0.tar.bz2 px4-nuttx-eec25d29ad35d963df61f88c95495bab453282b0.zip |
Completes clock initialization
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2465 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc313x/lpc313x_boot.c')
-rwxr-xr-x | nuttx/arch/arm/src/lpc313x/lpc313x_boot.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/lpc313x/lpc313x_boot.c b/nuttx/arch/arm/src/lpc313x/lpc313x_boot.c index 9f85f4f13..9141fdf24 100755 --- a/nuttx/arch/arm/src/lpc313x/lpc313x_boot.c +++ b/nuttx/arch/arm/src/lpc313x/lpc313x_boot.c @@ -46,6 +46,9 @@ #include "arm.h" #include "up_internal.h" #include "up_arch.h" + +#include "lpc313x_syscreg.h" +#include "lpc313x_cgudrvr.h" #include "lpc313x_internal.h" /************************************************************************************ @@ -237,7 +240,24 @@ void up_boot(void) up_copyvectorblock(); #endif /* 0 */ - /* Perform chip common initialization (might do nothing) */ + /* Reset all clocks */ + + lpc313x_resetclks(); + + /* Initialize the PLLs */ + + lpc313x_hp1pllconfig(); + lpc313x_hp0pllconfig(); + + /* Initialize clocking to settings provided by board-specific logic */ + + lpc313x_clkinit(&g_boardclks); + + /* Map first 4KB of ARM space to ISRAM area */ + + putreg32(LPC313X_INTSRAM0_PSECTION, LPC313X_SYSCREG_ARM926SHADOWPTR); + + /* Perform common, low-level chip initialization (might do nothing) */ lpc313x_lowsetup(); |