This patchset cleans up the fuloong2e support and do some necessary preparation for the coming loongson2f family machines' support. Wu Zhangjin (7): [loongson] fuloong2e: Cleanup the Kconfig [loongson] mem.c: Register reserved memory pages [loongson] early_printk: fix the variable type of uart_base [loongosn] add a new serial port debug function [loongson] add serial port support [loongson] remove reference from bonito64 [loongson] fuloong2e: update config file arch/mips/configs/fuloong2e_defconfig | 93 ++++++++---- arch/mips/include/asm/mach-loongson/dbg.h | 17 +++ arch/mips/include/asm/mach-loongson/loongson.h | 182 ++++++++++++++++++++++-- arch/mips/include/asm/mach-loongson/machine.h | 2 +- arch/mips/include/asm/mach-loongson/pci.h | 6 +- arch/mips/include/asm/mips-boards/bonito64.h | 5 - arch/mips/loongson/Kconfig | 52 ++++---- arch/mips/loongson/common/Makefile | 7 +- arch/mips/loongson/common/bonito-irq.c | 8 +- arch/mips/loongson/common/dbg.c | 34 +++++ arch/mips/loongson/common/early_printk.c | 10 +- arch/mips/loongson/common/init.c | 2 +- arch/mips/loongson/common/irq.c | 12 +- arch/mips/loongson/common/mem.c | 8 + arch/mips/loongson/common/pci.c | 12 +- arch/mips/loongson/common/reset.c | 2 +- arch/mips/loongson/common/serial.c | 71 +++++++++ arch/mips/loongson/fuloong-2e/irq.c | 4 +- arch/mips/loongson/fuloong-2e/reset.c | 4 +- arch/mips/pci/Makefile | 2 +- arch/mips/pci/fixup-fuloong2e.c | 5 +- arch/mips/pci/ops-bonito64.c | 7 - arch/mips/pci/ops-fuloong2e.c | 160 +++++++++++++++++++++ 23 files changed, 586 insertions(+), 119 deletions(-) create mode 100644 arch/mips/include/asm/mach-loongson/dbg.h create mode 100644 arch/mips/loongson/common/dbg.c create mode 100644 arch/mips/loongson/common/serial.c create mode 100644 arch/mips/pci/ops-fuloong2e.c