summaryrefslogtreecommitdiff
path: root/board/siemens/smartweb
diff options
context:
space:
mode:
authorWenyou Yang <wenyou.yang@atmel.com>2016-02-03 10:20:45 +0800
committerAndreas Bießmann <andreas.devel@googlemail.com>2016-02-18 21:34:41 +0100
commit30f65c85decb7d6816ba358927ab86e05ccaea2e (patch)
treec178179fe8b270462b71505935c66321196843c1 /board/siemens/smartweb
parent9cf7385c9b4d33b43dcfb6782f0f246ea33769d9 (diff)
downloadu-boot-imx-30f65c85decb7d6816ba358927ab86e05ccaea2e.zip
u-boot-imx-30f65c85decb7d6816ba358927ab86e05ccaea2e.tar.gz
u-boot-imx-30f65c85decb7d6816ba358927ab86e05ccaea2e.tar.bz2
board: atmel: siemens: clean up PLLB code
Due to introducing the new PLLB clock handle functions, use these functions to clean up the PLLB enable code. Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Reviewed-by: Andreas Bießmann <andreas.devel@googlemail.com> Tested-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'board/siemens/smartweb')
-rw-r--r--board/siemens/smartweb/smartweb.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/board/siemens/smartweb/smartweb.c b/board/siemens/smartweb/smartweb.c
index e7ee65c..47a60a7 100644
--- a/board/siemens/smartweb/smartweb.c
+++ b/board/siemens/smartweb/smartweb.c
@@ -115,12 +115,8 @@ static void smartweb_macb_hw_init(void)
void at91_udp_hw_init(void)
{
- at91_pmc_t *pmc = (at91_pmc_t *)ATMEL_BASE_PMC;
-
/* Enable PLLB */
- writel(get_pllb_init(), &pmc->pllbr);
- while ((readl(&pmc->sr) & AT91_PMC_LOCKB) != AT91_PMC_LOCKB)
- ;
+ at91_pllb_clk_enable(get_pllb_init());
/* Enable UDPCK clock, MCK is enabled in at91_clock_init() */
at91_periph_clk_enable(ATMEL_ID_UDP);