From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Thu, 10 Dec 2015 10:35:35 +0100 Subject: [U-Boot] [PATCH v2 2/3] ARM: at91: clean up the PMC_PLLICPR init code In-Reply-To: <1449646720-30057-3-git-send-email-wenyou.yang@atmel.com> References: <1449646720-30057-1-git-send-email-wenyou.yang@atmel.com> <1449646720-30057-3-git-send-email-wenyou.yang@atmel.com> Message-ID: <56694767.3040606@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Wenyou, Am 09.12.2015 um 08:38 schrieb Wenyou Yang: > Due to introducing the PMC_PLLICPR init function, use this > function to clean up the code. > > Signed-off-by: Wenyou Yang > --- > > Changes in v2: None > > arch/arm/mach-at91/spl_at91.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) Tested on the smartweb board, see log: http://xeidos.ddns.net/buildbot/builders/smartweb_dfu/builds/29/steps/shell/logs/tbotlog Tested-by: Heiko Schocher bye, Heiko > > diff --git a/arch/arm/mach-at91/spl_at91.c b/arch/arm/mach-at91/spl_at91.c > index b19f95b..cc3341a 100644 > --- a/arch/arm/mach-at91/spl_at91.c > +++ b/arch/arm/mach-at91/spl_at91.c > @@ -14,7 +14,6 @@ > #include > #include > #include > -#include > #include > #include > #include > @@ -77,8 +76,6 @@ void __weak spl_board_init(void) > > void board_init_f(ulong dummy) > { > - struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; > - > lowlevel_clock_init(); > at91_disable_wdt(); > > @@ -86,7 +83,7 @@ void board_init_f(ulong dummy) > * At this stage the main oscillator is supposed to be enabled > * PCK = MCK = MOSC > */ > - writel(0x00, &pmc->pllicpr); > + at91_pllicpr_init(0x00); > > /* Configure PLLA = MOSC * (PLL_MULA + 1) / PLL_DIVA */ > at91_plla_init(CONFIG_SYS_AT91_PLLA); > -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany