Skip to contentSkip to conversation

MIPS: misc patches

PATCH Applied Antony Pavlov 3 participants 8 messages Jun 21, 2019 – Jun 26, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover MIPS: misc patches

Antony Pavlov (4):
MIPS: Kconfig: move ARCH_TEXT_BASE to top mips Kconfig file
Documentation: user manual: update MIPS-specific targets
serial: ar933x: set linux_console_name
MIPS: dts: tplink-mr3020: add missing stdout-path property

 Documentation/user/barebox.rst  | 7 ++++---
 arch/mips/Kconfig               | 4 ++++
 arch/mips/dts/tplink-mr3020.dts | 2 ++
 arch/mips/mach-ar231x/Kconfig   | 4 ----
 arch/mips/mach-ath79/Kconfig    | 4 ----
 arch/mips/mach-bcm47xx/Kconfig  | 4 ----
 arch/mips/mach-loongson/Kconfig | 4 ----
 arch/mips/mach-malta/Kconfig    | 4 ----
 arch/mips/mach-xburst/Kconfig   | 4 ----
 drivers/serial/serial_ar933x.c  | 1 +
 10 files changed, 11 insertions(+), 27 deletions(-)
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

PATCH 1/4 MIPS: Kconfig: move ARCH_TEXT_BASE to top mips Kconfig file

---
 arch/mips/Kconfig               | 4 ++++
 arch/mips/mach-ar231x/Kconfig   | 4 ----
 arch/mips/mach-ath79/Kconfig    | 4 ----
 arch/mips/mach-bcm47xx/Kconfig  | 4 ----
 arch/mips/mach-loongson/Kconfig | 4 ----
 arch/mips/mach-malta/Kconfig    | 4 ----
 arch/mips/mach-xburst/Kconfig   | 4 ----
 7 files changed, 4 insertions(+), 24 deletions(-)
arch/mips/Kconfig +4 -0
index 936e56fa27..728295d486 100644
@@ -29,6 +29,10 @@ config GENERIC_LINKER_SCRIPT
 config PHYS_ADDR_T_64BIT
 	bool
 
+config ARCH_TEXT_BASE
+	hex
+	default 0xa0800000
+
 menu "Machine selection"
 
 config MIPS_RELOCATION_TABLE_SIZE
arch/mips/mach-ar231x/Kconfig +0 -4
index 5f9e24377f..f920f300bd 100644
@@ -1,9 +1,5 @@
 if MACH_MIPS_AR231X
 
-config ARCH_TEXT_BASE
-	hex
-	default 0xa0800000
-
 choice
 	prompt "Board type"
 
arch/mips/mach-ath79/Kconfig +0 -4
index 4bc1d88b4e..b1b49b0005 100644
@@ -1,9 +1,5 @@
 if MACH_MIPS_ATH79
 
-config ARCH_TEXT_BASE
-	hex
-	default 0xa0800000
-
 config SOC_QCA_AR9331
 	bool
 
arch/mips/mach-bcm47xx/Kconfig +0 -4
index f7522b79d6..c4791901af 100644
@@ -1,9 +1,5 @@
 if MACH_MIPS_BCM47XX
 
-config ARCH_TEXT_BASE
-	hex
-	default 0xa0800000
-
 choice
 	prompt "Board type"
 
arch/mips/mach-loongson/Kconfig +0 -4
index c9f19025eb..ab7ccd0cb5 100644
@@ -1,9 +1,5 @@
 if MACH_MIPS_LOONGSON
 
-config ARCH_TEXT_BASE
-	hex
-	default 0xa0800000
-
 choice
 	prompt "Board type"
 
arch/mips/mach-malta/Kconfig +0 -4
index 70799808f9..4671075140 100644
@@ -1,9 +1,5 @@
 if MACH_MIPS_MALTA
 
-config ARCH_TEXT_BASE
-	hex
-	default 0xa0800000
-
 config BOARD_QEMU_MALTA
 	bool "qemu malta"
 	select HAVE_PBL_IMAGE
arch/mips/mach-xburst/Kconfig +0 -4
index b3790210dd..ae8093d1a3 100644
@@ -1,9 +1,5 @@
 if MACH_MIPS_XBURST
 
-config ARCH_TEXT_BASE
-	hex
-	default 0xa0800000
-
 config CPU_JZ4755
 	bool
 	select SYS_HAS_CPU_MIPS32_R1
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

PATCH 2/4 Documentation: user manual: update MIPS-specific targets

In reply to Antony Pavlov
---
 Documentation/user/barebox.rst | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
Documentation/user/barebox.rst +4 -3
index d82163a886..c021a4c743 100644
@@ -112,11 +112,12 @@ targets, followed by the MIPS-specific ones:
   Architecture specific targets (mips):
     No architecture specific help defined for mips
 
+    ath79_defconfig          - Build for ath79
+    bcm47xx_defconfig        - Build for bcm47xx
+    gxemul-malta_defconfig   - Build for gxemul-malta
     loongson-ls1b_defconfig  - Build for loongson-ls1b
-    ritmix-rzx50_defconfig   - Build for ritmix-rzx50
-    tplink-mr3020_defconfig  - Build for tplink-mr3020
-    dlink-dir-320_defconfig  - Build for dlink-dir-320
     qemu-malta_defconfig     - Build for qemu-malta
+    xburst_defconfig         - Build for xburst
 
 barebox supports building for multiple boards with a single config. If you
 can't find your board in the list, it may be supported by one of the multi-board
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw

PATCH 3/4 serial: ar933x: set linux_console_name

In reply to Antony Pavlov
---
 drivers/serial/serial_ar933x.c | 1 +
 1 file changed, 1 insertion(+)
drivers/serial/serial_ar933x.c +1 -0
index 676b9fadf8..dda604652b 100644
@@ -175,6 +175,7 @@ static int ar933x_serial_probe(struct device_d *dev)
 	cdev->putc = ar933x_serial_putc;
 	cdev->getc = ar933x_serial_getc;
 	cdev->setbrg = ar933x_serial_setbaudrate;
+	cdev->linux_console_name = "ttyATH";
 
 	priv->clk = clk_get(dev, NULL);
 	if (IS_ERR(priv->clk)) {
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#4 lore raw

PATCH 4/4 MIPS: dts: tplink-mr3020: add missing stdout-path property

In reply to Antony Pavlov
---
 arch/mips/dts/tplink-mr3020.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/mips/dts/tplink-mr3020.dts +2 -0
index 982cffc250..e30eae1578 100644
@@ -7,6 +7,8 @@
 	};
 
 	chosen {
+		stdout-path = &uart;
+
 		environment {
 			compatible = "barebox,environment";
 			device-path = &spiflash, "partname:barebox-environment";
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#5 lore raw

Re: [PATCH 4/4] MIPS: dts: tplink-mr3020: add missing stdout-path property

Hi Antony,

since you are playing with MR3020, you probably wont to test this kernel with nfs boot:
https://github.com/olerem/linux-2.6/commits/v5.2/topic/ath79-upstream

The network driver is already in linux-next. The switch driver is on TODO.

Am 21.06.19 um 07:21 schrieb Antony Pavlov:

Quoted 11 lines
---
 arch/mips/dts/tplink-mr3020.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/mips/dts/tplink-mr3020.dts +0 -0
index 982cffc250..e30eae1578 100644

arch/mips/dts/tplink-mr3020.dts line 14

Quoted 8 lines
arch/mips/dts/tplink-mr3020.dts +2 -0
@@ -7,6 +7,8 @@
 	};
 
 	chosen {
+		stdout-path = &uart;
+
 		environment {
 			compatible = "barebox,environment";
 			device-path = &spiflash, "partname:barebox-environment";

--
Regards,
Oleksij

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#6 lore raw

Re: [PATCH 4/4] MIPS: dts: tplink-mr3020: add missing stdout-path property

Quoted 7 lines · On Fri, 21 Jun 2019 08:06:53 +0200 Oleksij Rempel <[email protected]>…

Hi Antony,

since you are playing with MR3020, you probably wont to test this kernel with nfs boot:
https://github.com/olerem/linux-2.6/commits/v5.2/topic/ath79-upstream

The network driver is already in linux-next. The switch driver is on TODO.

Thanks for the tip!

At the moment I use OpenWrt Linux 4.14.88+ with Debian Jessie nfsroot.

Quoted 25 lines

Am 21.06.19 um 07:21 schrieb Antony Pavlov:

Quoted 11 lines
---
 arch/mips/dts/tplink-mr3020.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/mips/dts/tplink-mr3020.dts +0 -0
index 982cffc250..e30eae1578 100644

arch/mips/dts/tplink-mr3020.dts line 14

Quoted 8 lines
arch/mips/dts/tplink-mr3020.dts +2 -0
@@ -7,6 +7,8 @@
 	};
 
 	chosen {
+		stdout-path = &uart;
+
 		environment {
 			compatible = "barebox,environment";
 			device-path = &spiflash, "partname:barebox-environment";

--
Regards,
Oleksij

Signature · 7 lines
Best regards,
  Antony Pavlov

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#7 lore raw
In reply to Antony Pavlov
Quoted 5 lines · Antony Pavlov

Antony Pavlov (4):
MIPS: Kconfig: move ARCH_TEXT_BASE to top mips Kconfig file
Documentation: user manual: update MIPS-specific targets
serial: ar933x: set linux_console_name
MIPS: dts: tplink-mr3020: add missing stdout-path property

Applied, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox