]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Loongson: Improve LEFI firmware interface
authorHuacai Chen <chenhc@lemote.com>
Tue, 4 Nov 2014 06:13:27 +0000 (14:13 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 24 Nov 2014 06:45:01 +0000 (07:45 +0100)
commit022ef6aeb9cb80bdab74d645d6e6c4bb7647cff6
tree5b01da67a65f1f6ad3177b157ea9d9fc62f7d6ca
parent18b712e37438a265b227a6dab980a73460a76adc
MIPS: Loongson: Improve LEFI firmware interface

Machtypes of Loongson-3 machines become more and more, but there are
only small differences among different machtypes. Keeping a large table
of machtypes is very ugly and hard to extend. We found that the major
machtype differences are UARTs information (number of UARTs, UART IRQs,
UART clocks, etc.), platform devices (EC, temperature sensors, fan
controllers, etc.) and some workarounds (because of some CPU bugs or
mainboard bugs).

In this patch we improve the UEFI-like (LEFI) interface to make all
Loongson-3 machines use a same machtype "generic-loongson-machine".

Signed-off-by: Huacai Chen <chenhc@lemote.com>
Cc: John Crispin <john@phrozen.org>
Cc: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/8324/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
14 files changed:
arch/mips/include/asm/bootinfo.h
arch/mips/include/asm/mach-loongson/boot_param.h
arch/mips/include/asm/mach-loongson/loongson.h
arch/mips/include/asm/mach-loongson/loongson_hwmon.h [new file with mode: 0644]
arch/mips/include/asm/mach-loongson/machine.h
arch/mips/include/asm/mach-loongson/workarounds.h [new file with mode: 0644]
arch/mips/loongson/common/early_printk.c
arch/mips/loongson/common/env.c
arch/mips/loongson/common/machtype.c
arch/mips/loongson/common/serial.c
arch/mips/loongson/common/uart_base.c
arch/mips/loongson/loongson-3/Makefile
arch/mips/loongson/loongson-3/platform.c [new file with mode: 0644]
arch/mips/loongson/loongson-3/smp.c