summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJan Luebbe <jlu@pengutronix.de>2015-01-29 16:43:37 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-01-30 08:54:23 +0100
commitb5579c7c12db00e3c90575f1e1da7e7488104b53 (patch)
tree8bdd04480a0c412ec5c162e34ba4be9ef9b9bc3c /arch
parenta114e9b00c6c3f73be8f9de4c4722a6320399252 (diff)
downloadbarebox-b5579c7c12db00e3c90575f1e1da7e7488104b53.tar.gz
barebox-b5579c7c12db00e3c90575f1e1da7e7488104b53.tar.xz
imx53: add uart3
Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-imx/clk-imx5.c1
-rw-r--r--arch/arm/mach-imx/include/mach/devices-imx53.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/clk-imx5.c b/arch/arm/mach-imx/clk-imx5.c
index 2ae8d6aa3a..ea805b0f64 100644
--- a/arch/arm/mach-imx/clk-imx5.c
+++ b/arch/arm/mach-imx/clk-imx5.c
@@ -372,6 +372,7 @@ int __init mx53_clocks_init(void __iomem *regs, unsigned long rate_ckil, unsigne
clkdev_add_physbase(clks[IMX5_CLK_UART_ROOT], MX53_UART1_BASE_ADDR, NULL);
clkdev_add_physbase(clks[IMX5_CLK_UART_ROOT], MX53_UART2_BASE_ADDR, NULL);
clkdev_add_physbase(clks[IMX5_CLK_UART_ROOT], MX53_UART3_BASE_ADDR, NULL);
+ clkdev_add_physbase(clks[IMX5_CLK_UART_ROOT], MX53_UART4_BASE_ADDR, NULL);
clkdev_add_physbase(clks[IMX5_CLK_PER_ROOT], MX53_I2C1_BASE_ADDR, NULL);
clkdev_add_physbase(clks[IMX5_CLK_PER_ROOT], MX53_I2C2_BASE_ADDR, NULL);
clkdev_add_physbase(clks[IMX5_CLK_PER_ROOT], MX53_I2C3_BASE_ADDR, NULL);
diff --git a/arch/arm/mach-imx/include/mach/devices-imx53.h b/arch/arm/mach-imx/include/mach/devices-imx53.h
index 88be4fdbc8..10caae8c93 100644
--- a/arch/arm/mach-imx/include/mach/devices-imx53.h
+++ b/arch/arm/mach-imx/include/mach/devices-imx53.h
@@ -47,6 +47,11 @@ static inline struct device_d *imx53_add_uart2(void)
return imx_add_uart_imx21((void *)MX53_UART3_BASE_ADDR, 2);
}
+static inline struct device_d *imx53_add_uart3(void)
+{
+ return imx_add_uart_imx21((void *)MX53_UART4_BASE_ADDR, 3);
+}
+
static inline struct device_d *imx53_add_fec(struct fec_platform_data *pdata)
{
return imx_add_fec_imx27((void *)MX53_FEC_BASE_ADDR, pdata);