MIPS: Loongson: Cleanups of serial port support
This patchs uses a loongson_uart_base variable instead of the uart_base[] array and adds a new kernel option to avoid to compile uart_base.c all the time, which will save a little bit of memory for us. Signed-off-by:Wu Zhangjin <wuzhangjin@gmail.com> Cc: linux-mips@linux-mips.org http://patchwork.linux-mips.org/patch/727/ Signed-off-by:
Ralf Baechle <ralf@linux-mips.org>
Showing
- arch/mips/include/asm/mach-loongson/loongson.h 11 additions, 3 deletionsarch/mips/include/asm/mach-loongson/loongson.h
- arch/mips/loongson/Kconfig 5 additions, 0 deletionsarch/mips/loongson/Kconfig
- arch/mips/loongson/common/Makefile 3 additions, 2 deletionsarch/mips/loongson/common/Makefile
- arch/mips/loongson/common/init.c 0 additions, 2 deletionsarch/mips/loongson/common/init.c
- arch/mips/loongson/common/serial.c 7 additions, 3 deletionsarch/mips/loongson/common/serial.c
- arch/mips/loongson/common/uart_base.c 25 additions, 16 deletionsarch/mips/loongson/common/uart_base.c
Please register or sign in to comment