diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-07-08 12:56:16 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-07-13 07:19:59 +0200 |
commit | 382090ed7d0428e11536e6fcf80404f04095ba9f (patch) | |
tree | a19e4144231339d5ce7d6185d0a9491e3e64a97a /arch | |
parent | d0c482359f89e8ea4d4c9ee558f94868f2a78ca2 (diff) | |
download | barebox-382090ed7d0428e11536e6fcf80404f04095ba9f.tar.gz barebox-382090ed7d0428e11536e6fcf80404f04095ba9f.tar.xz |
ARM: i.MX: Add i.MX5 debug functions
We recently introduced ungate_all_peripherals and SoC specific low
level UART init functions. Add some more for i.MX5 SoCs.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-imx/include/mach/debug_ll.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/include/mach/debug_ll.h b/arch/arm/mach-imx/include/mach/debug_ll.h index ab939b3a88..eceac40fb6 100644 --- a/arch/arm/mach-imx/include/mach/debug_ll.h +++ b/arch/arm/mach-imx/include/mach/debug_ll.h @@ -75,6 +75,11 @@ static inline void imx51_uart_setup_ll(void) __imx_uart_setup_ll(54000000); } +static inline void imx53_uart_setup_ll(void) +{ + __imx_uart_setup_ll(66666666); +} + static inline void imx6_uart_setup_ll(void) { __imx_uart_setup_ll(80000000); @@ -103,6 +108,7 @@ static inline void imx_uart_setup_ll(void __iomem *uartbase, } static inline void imx51_uart_setup_ll(void) {} +static inline void imx53_uart_setup_ll(void) {} static inline void imx6_uart_setup_ll(void) {} #endif /* CONFIG_DEBUG_LL */ @@ -119,4 +125,14 @@ static inline void imx6_ungate_all_peripherals(void) imx_ungate_all_peripherals(IOMEM(MX6_CCM_BASE_ADDR)); } +static inline void imx51_ungate_all_peripherals(void) +{ + imx_ungate_all_peripherals(IOMEM(MX51_CCM_BASE_ADDR)); +} + +static inline void imx53_ungate_all_peripherals(void) +{ + imx_ungate_all_peripherals(IOMEM(MX53_CCM_BASE_ADDR)); +} + #endif /* __MACH_DEBUG_LL_H__ */ |