These patches add support for Loongson1B. Changelog: V6: Add USB support for Loongson1B. V5: Add IS_ENABLED() macro for platform devices. V4: Split the RTC patch, and merge the arch/mips parts into patch 2/4. Use 'KSEG1ADDR' instead of 'ioremap()' in registers definitions. V3: Add RTC support for Loongson1B. V2: Add Ethernet support for Loongson1B. V1: Add basic support for Loongson1B. ---------------- Kelvin Cheung (5): MIPS: Add CPU support for Loongson1B MIPS: Add board support for Loongson1B MIPS: Add Makefile and Kconfig for Loongson1B USB: Add EHCI bus glue for Loongson1x SoCs MIPS: Add defconfig for Loongson1B arch/mips/Kbuild.platforms | 1 + arch/mips/Kconfig | 31 ++++ arch/mips/configs/ls1b_defconfig | 104 +++++++++++++ arch/mips/include/asm/cpu.h | 3 +- arch/mips/include/asm/mach-loongson1/irq.h | 68 +++++++++ arch/mips/include/asm/mach-loongson1/loongson1.h | 44 ++++++ arch/mips/include/asm/mach-loongson1/platform.h | 23 +++ arch/mips/include/asm/mach-loongson1/prom.h | 24 +++ arch/mips/include/asm/mach-loongson1/regs-clk.h | 33 ++++ arch/mips/include/asm/mach-loongson1/regs-wdt.h | 22 +++ arch/mips/include/asm/mach-loongson1/war.h | 25 +++ arch/mips/include/asm/module.h | 2 + arch/mips/kernel/cpu-probe.c | 15 ++ arch/mips/kernel/perf_event_mipsxx.c | 6 + arch/mips/kernel/traps.c | 1 + arch/mips/loongson1/Kconfig | 21 +++ arch/mips/loongson1/Makefile | 11 ++ arch/mips/loongson1/Platform | 7 + arch/mips/loongson1/common/Makefile | 5 + arch/mips/loongson1/common/clock.c | 165 +++++++++++++++++++++ arch/mips/loongson1/common/irq.c | 146 +++++++++++++++++++ arch/mips/loongson1/common/platform.c | 130 +++++++++++++++++ arch/mips/loongson1/common/prom.c | 87 +++++++++++ arch/mips/loongson1/common/reset.c | 45 ++++++ arch/mips/loongson1/common/setup.c | 29 ++++ arch/mips/loongson1/ls1b/Makefile | 5 + arch/mips/loongson1/ls1b/board.c | 39 +++++ arch/mips/oprofile/common.c | 1 + arch/mips/oprofile/op_model_mipsxx.c | 4 + drivers/usb/Kconfig | 1 + drivers/usb/host/ehci-hcd.c | 5 + drivers/usb/host/ehci-ls1x.c | 170 ++++++++++++++++++++++ 32 files changed, 1272 insertions(+), 1 deletions(-) create mode 100644 arch/mips/configs/ls1b_defconfig create mode 100644 arch/mips/include/asm/mach-loongson1/irq.h create mode 100644 arch/mips/include/asm/mach-loongson1/loongson1.h create mode 100644 arch/mips/include/asm/mach-loongson1/platform.h create mode 100644 arch/mips/include/asm/mach-loongson1/prom.h create mode 100644 arch/mips/include/asm/mach-loongson1/regs-clk.h create mode 100644 arch/mips/include/asm/mach-loongson1/regs-wdt.h create mode 100644 arch/mips/include/asm/mach-loongson1/war.h create mode 100644 arch/mips/loongson1/Kconfig create mode 100644 arch/mips/loongson1/Makefile create mode 100644 arch/mips/loongson1/Platform create mode 100644 arch/mips/loongson1/common/Makefile create mode 100644 arch/mips/loongson1/common/clock.c create mode 100644 arch/mips/loongson1/common/irq.c create mode 100644 arch/mips/loongson1/common/platform.c create mode 100644 arch/mips/loongson1/common/prom.c create mode 100644 arch/mips/loongson1/common/reset.c create mode 100644 arch/mips/loongson1/common/setup.c create mode 100644 arch/mips/loongson1/ls1b/Makefile create mode 100644 arch/mips/loongson1/ls1b/board.c create mode 100644 drivers/usb/host/ehci-ls1x.c