add support for lemote loongson2f machines
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest7 patches 12 repliesIn review
- v17 patches 2 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | lemote-2f: add a LEMOTE_MACH2F kernel optionarch/ arch/ arch/ | +37 | 1 reply | |
| 2/7 | lemote-2f: rtc: enable legacy RTC driverarch/ | +1 | 1 reply | |
| 3/7 | lemote-2f: add basic cs5536 vsm supportarch/ arch/ arch/ +9 more | +1553 | 1 reply | |
| 4/7 | lemote-2f: add pci supportarch/ arch/ arch/ +1 more | +372 | 1 reply | |
| 5/7 | lemote-2f: add irq supportarch/ arch/ arch/ | +141 | 1 reply | |
| 6/7 | lemote-2f: add reset supportarch/ arch/ arch/ | +180 | 1 reply | |
| 7/7 | lemote-2f: add defconfig filearch/ | +1836 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/7] add support for lemote loongson2f machines
From: Wu Zhangjin <[email protected]>
This patchset add basic support for lemote loongson2f family machines(fuloong2f mini pc, yeeloong netbook).
If you use the default config file: arch/mips/configs/lemote2f_defconfig, and pass the suitable command line argument to the kernel when booting, you will be possible to run the same kernel image on fuloong2f mini pc and yeeloong netbook.
for example, if you pass "machtype=8.9" to kernel when booting, it will run well on yeeloong netbook. the default machtype is 2f-box, so, you can run the kernel on fuloong2f directly. In the future, we will pass the machtype argument by PMON directly, and then the linux distributions will only need to build one kernel image, and will make it work on all of lemote loongson2f family machines.
The main change from the v1 version:
o [loongson] lemote-2f: add reset support
use "switch...case..." statements instead of the array to make the stuff only for lemote2f family machines and also save some memory.
The whole patchset have been pushed into this branch:
git://dev.lemote.com/rt4ls.git linux-loongson/dev/for-upstream
Thanks & Regards,
Wu Zhangjin
Wu Zhangjin (7):
[loongson] lemote-2f: add a LEMOTE_MACH2F kernel option [loongson] lemote-2f: rtc: enable legacy RTC driver [loongson] lemote-2f: add basic cs5536 vsm support [loongson] lemote-2f: add pci support [loongson] lemote-2f: add irq support [loongson] lemote-2f: add reset support [loongson] lemote-2f: add defconfig file
arch/mips/Kconfig | 2 +- arch/mips/Makefile | 1 + arch/mips/configs/lemote2f_defconfig | 1836 ++++++++++++++++++++ .../mips/include/asm/mach-loongson/cs5536/cs5536.h | 305 ++++ .../include/asm/mach-loongson/cs5536/cs5536_pci.h | 153 ++ .../include/asm/mach-loongson/cs5536/cs5536_vsm.h | 31 + arch/mips/include/asm/mach-loongson/loongson.h | 7 + arch/mips/include/asm/mach-loongson/machine.h | 7 + arch/mips/loongson/Kconfig | 32 + arch/mips/loongson/Makefile | 6 + arch/mips/loongson/common/Makefile | 6 + arch/mips/loongson/common/cs5536/Makefile | 8 + arch/mips/loongson/common/cs5536/cs5536_acc.c | 148 ++ arch/mips/loongson/common/cs5536/cs5536_ehci.c | 158 ++ arch/mips/loongson/common/cs5536/cs5536_ide.c | 185 ++ arch/mips/loongson/common/cs5536/cs5536_isa.c | 316 ++++ arch/mips/loongson/common/cs5536/cs5536_ohci.c | 153 ++ arch/mips/loongson/common/cs5536/cs5536_pci.c | 87 + arch/mips/loongson/lemote-2f/Makefile | 5 + arch/mips/loongson/lemote-2f/irq.c | 130 ++ arch/mips/loongson/lemote-2f/reset.c | 172 ++ arch/mips/pci/Makefile | 3 +- arch/mips/pci/fixup-lemote2f.c | 162 ++ arch/mips/pci/ops-fuloong2e.c | 154 -- arch/mips/pci/ops-loongson2.c | 208 +++ 25 files changed, 4119 insertions(+), 156 deletions(-) create mode 100644 arch/mips/configs/lemote2f_defconfig create mode 100644 arch/mips/include/asm/mach-loongson/cs5536/cs5536.h create mode 100644 arch/mips/include/asm/mach-loongson/cs5536/cs5536_pci.h create mode 100644 arch/mips/include/asm/mach-loongson/cs5536/cs5536_vsm.h create mode 100644 arch/mips/loongson/common/cs5536/Makefile create mode 100644 arch/mips/loongson/common/cs5536/cs5536_acc.c create mode 100644 arch/mips/loongson/common/cs5536/cs5536_ehci.c create mode 100644 arch/mips/loongson/common/cs5536/cs5536_ide.c create mode 100644 arch/mips/loongson/common/cs5536/cs5536_isa.c create mode 100644 arch/mips/loongson/common/cs5536/cs5536_ohci.c create mode 100644 arch/mips/loongson/common/cs5536/cs5536_pci.c create mode 100644 arch/mips/loongson/lemote-2f/Makefile create mode 100644 arch/mips/loongson/lemote-2f/irq.c create mode 100644 arch/mips/loongson/lemote-2f/reset.c create mode 100644 arch/mips/pci/fixup-lemote2f.c delete mode 100644 arch/mips/pci/ops-fuloong2e.c create mode 100644 arch/mips/pci/ops-loongson2.c