From b842280e77a2893bf5e8da1ddaf06f5bbc83f9e4 Mon Sep 17 00:00:00 2001 From: Petr Smolik Date: Mon, 24 May 2010 23:22:46 +0200 Subject: [PATCH] mach HAL: removed functions lpc_pll_on and lpc_pll_off. Now, hal provides the function system_clock_init to initialize CPU clock. IAP improvement: don't need to switch off PLL during call a IAP function Signed-off-by: Petr Smolik --- arch/arm/mach-lpc17xx/libs/hal/hal_machperiph.c | 8 -------- arch/arm/mach-lpc17xx/libs/hal/hal_machperiph.h | 2 -- 2 files changed, 10 deletions(-) diff --git a/arch/arm/mach-lpc17xx/libs/hal/hal_machperiph.c b/arch/arm/mach-lpc17xx/libs/hal/hal_machperiph.c index 92db817..352bb29 100644 --- a/arch/arm/mach-lpc17xx/libs/hal/hal_machperiph.c +++ b/arch/arm/mach-lpc17xx/libs/hal/hal_machperiph.c @@ -135,14 +135,6 @@ void system_clock_init(void) #endif } -void lpc_pll_off(void) -{ - // disable PLL -// PLLCON = 0; -// PLLFEED = 0xAA; // Make it happen. These two updates -// PLLFEED = 0x55; // MUST occur in sequence. -} - void lpc_watchdog_feed() { unsigned long flags; diff --git a/arch/arm/mach-lpc17xx/libs/hal/hal_machperiph.h b/arch/arm/mach-lpc17xx/libs/hal/hal_machperiph.h index e606e22..9b3a74b 100644 --- a/arch/arm/mach-lpc17xx/libs/hal/hal_machperiph.h +++ b/arch/arm/mach-lpc17xx/libs/hal/hal_machperiph.h @@ -6,8 +6,6 @@ extern unsigned int system_frequency; void system_clock_init(void); -//void lpc_pll_on(); -void lpc_pll_off(); void lpc_watchdog_init(int on,int timeout_ms); void lpc_watchdog_feed(); -- 2.39.2