diff options
author | Sergey Ryazanov <ryazanov.s.a@gmail.com> | 2014-10-29 02:18:43 +0300 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-11-24 09:45:27 +0300 |
commit | 1ac91b1f686e9d819b16525baf2e8db3c282edba (patch) | |
tree | 22175fa726fe35b52f562f114a41a5eb80bcb6b6 /arch/mips/ath25/ar2315.c | |
parent | 8aaa7278c0c98a77ec36e1fed7d9bede58164a26 (diff) | |
download | linux-1ac91b1f686e9d819b16525baf2e8db3c282edba.tar.xz |
MIPS: ath25: add UART support
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Cc: Linux MIPS <linux-mips@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/8242/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/ath25/ar2315.c')
-rw-r--r-- | arch/mips/ath25/ar2315.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/mips/ath25/ar2315.c b/arch/mips/ath25/ar2315.c index d92aa91ae75d..d10eac4cd828 100644 --- a/arch/mips/ath25/ar2315.c +++ b/arch/mips/ath25/ar2315.c @@ -267,3 +267,11 @@ void __init ar2315_plat_mem_setup(void) _machine_restart = ar2315_restart; } + +void __init ar2315_arch_init(void) +{ + unsigned irq = irq_create_mapping(ar2315_misc_irq_domain, + AR2315_MISC_IRQ_UART0); + + ath25_serial_setup(AR2315_UART0_BASE, irq, ar2315_apb_frequency()); +} |