[mipsel/loongson3] Add support for Loongson 3 LS3A RS780E 1-way
boards. svn path=/dists/sid/linux/; revision=21591
This commit is contained in:
parent
ccced8e9f8
commit
240b7dc036
|
@ -64,6 +64,8 @@ linux (3.14.13-1) UNRELEASED; urgency=medium
|
||||||
to fix excessive kernel warnings.
|
to fix excessive kernel warnings.
|
||||||
* [mips/malta] Backport from upstream power management support for
|
* [mips/malta] Backport from upstream power management support for
|
||||||
Malta.
|
Malta.
|
||||||
|
* [mipsel/loongson3] Add support for Loongson 3 LS3A RS780E 1-way
|
||||||
|
boards.
|
||||||
|
|
||||||
[ Ben Hutchings ]
|
[ Ben Hutchings ]
|
||||||
* net/l2tp: don't fall back on UDP [get|set]sockopt (CVE-2014-4943)
|
* net/l2tp: don't fall back on UDP [get|set]sockopt (CVE-2014-4943)
|
||||||
|
|
67
debian/patches/features/mips/MIPS-Loongson-3-Add-Loongson-LS3A-RS780E-1-way-machi.patch
vendored
Normal file
67
debian/patches/features/mips/MIPS-Loongson-3-Add-Loongson-LS3A-RS780E-1-way-machi.patch
vendored
Normal file
|
@ -0,0 +1,67 @@
|
||||||
|
From: Aurelien Jarno <aurelien@aurel32.net>
|
||||||
|
Date: Sun, 20 Jul 2014 19:16:31 +0200
|
||||||
|
Subject: MIPS: Loongson 3: Add Loongson LS3A RS780E 1-way machine definition
|
||||||
|
Forwarded: not yet
|
||||||
|
|
||||||
|
Add a Loongson LS3A RS780E 1-way machine definition, which only differs
|
||||||
|
from other Loongson 3 based machines by the UART base clock speed.
|
||||||
|
|
||||||
|
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
|
||||||
|
---
|
||||||
|
arch/mips/include/asm/bootinfo.h | 1 +
|
||||||
|
arch/mips/loongson/common/machtype.c | 1 +
|
||||||
|
arch/mips/loongson/common/serial.c | 1 +
|
||||||
|
arch/mips/loongson/common/uart_base.c | 1 +
|
||||||
|
4 files changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/arch/mips/include/asm/bootinfo.h b/arch/mips/include/asm/bootinfo.h
|
||||||
|
index 1f7ca8b..c3efea0 100644
|
||||||
|
--- a/arch/mips/include/asm/bootinfo.h
|
||||||
|
+++ b/arch/mips/include/asm/bootinfo.h
|
||||||
|
@@ -74,6 +74,7 @@ enum loongson_machine_type {
|
||||||
|
MACH_LEMOTE_A1101,
|
||||||
|
MACH_LEMOTE_A1201,
|
||||||
|
MACH_LEMOTE_A1205,
|
||||||
|
+ MACH_LOONGSON_3A780E1W,
|
||||||
|
MACH_LOONGSON_END
|
||||||
|
};
|
||||||
|
|
||||||
|
diff --git a/arch/mips/loongson/common/machtype.c b/arch/mips/loongson/common/machtype.c
|
||||||
|
index 1a47979..3b88f88 100644
|
||||||
|
--- a/arch/mips/loongson/common/machtype.c
|
||||||
|
+++ b/arch/mips/loongson/common/machtype.c
|
||||||
|
@@ -31,6 +31,7 @@ static const char *system_types[] = {
|
||||||
|
[MACH_LEMOTE_A1101] "lemote-3a-itx-a1101",
|
||||||
|
[MACH_LEMOTE_A1201] "lemote-2gq-notebook-a1201",
|
||||||
|
[MACH_LEMOTE_A1205] "lemote-2gq-aio-a1205",
|
||||||
|
+ [MACH_LOONGSON_3A780E1W] "loongson-ls3a-rs780e-1w",
|
||||||
|
[MACH_LOONGSON_END] NULL,
|
||||||
|
};
|
||||||
|
|
||||||
|
diff --git a/arch/mips/loongson/common/serial.c b/arch/mips/loongson/common/serial.c
|
||||||
|
index bd2b709..f1cc859 100644
|
||||||
|
--- a/arch/mips/loongson/common/serial.c
|
||||||
|
+++ b/arch/mips/loongson/common/serial.c
|
||||||
|
@@ -51,6 +51,7 @@ static struct plat_serial8250_port uart8250_data[][2] = {
|
||||||
|
[MACH_LEMOTE_A1101] {PORT_M(2, 25000000), {} },
|
||||||
|
[MACH_LEMOTE_A1201] {PORT_M(2, 25000000), {} },
|
||||||
|
[MACH_LEMOTE_A1205] {PORT_M(2, 25000000), {} },
|
||||||
|
+ [MACH_LOONGSON_3A780E1W] {PORT_M(2, 33177600), {} },
|
||||||
|
[MACH_LOONGSON_END] {},
|
||||||
|
};
|
||||||
|
|
||||||
|
diff --git a/arch/mips/loongson/common/uart_base.c b/arch/mips/loongson/common/uart_base.c
|
||||||
|
index 1e1eeea..406cb24 100644
|
||||||
|
--- a/arch/mips/loongson/common/uart_base.c
|
||||||
|
+++ b/arch/mips/loongson/common/uart_base.c
|
||||||
|
@@ -42,6 +42,7 @@ void prom_init_loongson_uart_base(void)
|
||||||
|
case MACH_LEMOTE_A1101:
|
||||||
|
case MACH_LEMOTE_A1201:
|
||||||
|
case MACH_LEMOTE_A1205:
|
||||||
|
+ case MACH_LOONGSON_3A780E1W:
|
||||||
|
/* The CPU provided serial port (CPU) */
|
||||||
|
loongson_uart_base = LOONGSON_REG_BASE + 0x1e0;
|
||||||
|
break;
|
||||||
|
--
|
||||||
|
2.0.0
|
||||||
|
|
|
@ -108,3 +108,4 @@ features/mips/MIPS-Malta-add-suspend-state-entry-code.patch
|
||||||
features/mips/MIPS-Malta-Let-PIIX4-respond-to-PCI-special-cycles.patch
|
features/mips/MIPS-Malta-Let-PIIX4-respond-to-PCI-special-cycles.patch
|
||||||
features/mips/MIPS-Malta-hang-on-halt.patch
|
features/mips/MIPS-Malta-hang-on-halt.patch
|
||||||
features/mips/MIPS-Malta-support-powering-down.patch
|
features/mips/MIPS-Malta-support-powering-down.patch
|
||||||
|
features/mips/MIPS-Loongson-3-Add-Loongson-LS3A-RS780E-1-way-machi.patch
|
||||||
|
|
Loading…
Reference in New Issue