summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/phytec-phycard-imx6/lowlevel.c
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2015-05-06 12:32:03 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2015-05-07 09:49:40 +0200
commit059098fe07e06d5ebec484a5b4747197955b53ce (patch)
tree409af9d5a9c69aa3cdc59d899a069da21dd14ba4 /arch/arm/boards/phytec-phycard-imx6/lowlevel.c
parent5b7def7b68f46ed4ec9979865ff9187e465eed4e (diff)
downloadbarebox-059098fe07e06d5ebec484a5b4747197955b53ce.tar.gz
barebox-059098fe07e06d5ebec484a5b4747197955b53ce.tar.xz
i.MX: serial: Distil common clock ungating code
Move all of the common clock ungating code in early UART initialization into a dedicated subroutine that can be shared by all of the users. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/phytec-phycard-imx6/lowlevel.c')
-rw-r--r--arch/arm/boards/phytec-phycard-imx6/lowlevel.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm/boards/phytec-phycard-imx6/lowlevel.c b/arch/arm/boards/phytec-phycard-imx6/lowlevel.c
index 1b8dca44da..d85a1ab0a1 100644
--- a/arch/arm/boards/phytec-phycard-imx6/lowlevel.c
+++ b/arch/arm/boards/phytec-phycard-imx6/lowlevel.c
@@ -26,19 +26,11 @@
static inline void setup_uart(void)
{
- void __iomem *ccmbase = IOMEM(MX6_CCM_BASE_ADDR);
void __iomem *iomuxbase = IOMEM(MX6_IOMUXC_BASE_ADDR);
writel(0x4, iomuxbase + 0x01f8);
- writel(0xffffffff, ccmbase + 0x68);
- writel(0xffffffff, ccmbase + 0x6c);
- writel(0xffffffff, ccmbase + 0x70);
- writel(0xffffffff, ccmbase + 0x74);
- writel(0xffffffff, ccmbase + 0x78);
- writel(0xffffffff, ccmbase + 0x7c);
- writel(0xffffffff, ccmbase + 0x80);
-
+ imx6_ungate_all_peripherals();
imx6_uart_setup_ll();
putc_ll('>');