mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
ARM: at91: clean up the PMC_PLLICPR init code
Due to introducing the PMC_PLLICPR init function, use this function to clean up the code. Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Tested-by: Heiko Schocher <hs@denx.de> Reviewed-by: Andreas Bießmann <andreas.devel@googlemail.com>
This commit is contained in:
parent
c0b868c087
commit
c43a72e88e
1 changed files with 1 additions and 4 deletions
|
@ -14,7 +14,6 @@
|
||||||
#include <asm/arch/at91_common.h>
|
#include <asm/arch/at91_common.h>
|
||||||
#include <asm/arch/at91sam9_matrix.h>
|
#include <asm/arch/at91sam9_matrix.h>
|
||||||
#include <asm/arch/at91_pit.h>
|
#include <asm/arch/at91_pit.h>
|
||||||
#include <asm/arch/at91_pmc.h>
|
|
||||||
#include <asm/arch/at91_rstc.h>
|
#include <asm/arch/at91_rstc.h>
|
||||||
#include <asm/arch/at91_wdt.h>
|
#include <asm/arch/at91_wdt.h>
|
||||||
#include <asm/arch/clk.h>
|
#include <asm/arch/clk.h>
|
||||||
|
@ -77,8 +76,6 @@ void __weak spl_board_init(void)
|
||||||
|
|
||||||
void board_init_f(ulong dummy)
|
void board_init_f(ulong dummy)
|
||||||
{
|
{
|
||||||
struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
|
|
||||||
|
|
||||||
lowlevel_clock_init();
|
lowlevel_clock_init();
|
||||||
at91_disable_wdt();
|
at91_disable_wdt();
|
||||||
|
|
||||||
|
@ -86,7 +83,7 @@ void board_init_f(ulong dummy)
|
||||||
* At this stage the main oscillator is supposed to be enabled
|
* At this stage the main oscillator is supposed to be enabled
|
||||||
* PCK = MCK = MOSC
|
* PCK = MCK = MOSC
|
||||||
*/
|
*/
|
||||||
writel(0x00, &pmc->pllicpr);
|
at91_pllicpr_init(0x00);
|
||||||
|
|
||||||
/* Configure PLLA = MOSC * (PLL_MULA + 1) / PLL_DIVA */
|
/* Configure PLLA = MOSC * (PLL_MULA + 1) / PLL_DIVA */
|
||||||
at91_plla_init(CONFIG_SYS_AT91_PLLA);
|
at91_plla_init(CONFIG_SYS_AT91_PLLA);
|
||||||
|
|
Loading…
Add table
Reference in a new issue