Skip to contentSkip to conversation

mips: ath79: Fix compiler warning on const assignment

PATCH New Marek Vasut 2 participants 14 messages Jan 27, 2016 – Jan 29, 2016 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 mips: ath79: Fix compiler warning on const assignment

The assignment const T var; var = value; is illegal, since var is constant. Drop the const to fix the compiler warning.

Cc Daniel Schwierzeck <[email protected]>
Cc Wills Wang <[email protected]>
---
 arch/mips/mach-ath79/reset.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/mach-ath79/reset.c +1 -1
index 504b833..e8f5796 100644
@@ -46,7 +46,7 @@ void _machine_restart(void)
 
 u32 get_bootstrap(void)
 {
-	const void __iomem *base;
+	void __iomem *base;
 	u32 reg = 0;
 
 	base = map_physmem(AR71XX_RESET_BASE, AR71XX_RESET_SIZE,
Signature · 1 line
2.1.4
#1 lore raw

PATCH 2/3 mips: ath79: Drop SYS_MIPS_CACHE_INIT_RAM_LOAD

Drop SYS_MIPS_CACHE_INIT_RAM_LOAD from the Kconfig, since this option is bogus. The DRAM is not active when this option comes into play, so any attempt to restore valid cache state from invalid DRAM must fail. Disable this option to prevent such failure and potential undefined behavior.

Cc Daniel Schwierzeck <[email protected]>
Cc Wills Wang <[email protected]>
---
 arch/mips/mach-ath79/Kconfig | 2 --
 1 file changed, 2 deletions(-)
arch/mips/mach-ath79/Kconfig +0 -2
index f61efd2..95f7de9 100644
@@ -12,7 +12,6 @@ config SOC_AR933X
 	select SUPPORTS_BIG_ENDIAN
 	select SUPPORTS_CPU_MIPS32_R1
 	select SUPPORTS_CPU_MIPS32_R2
-	select SYS_MIPS_CACHE_INIT_RAM_LOAD
 	select MIPS_TUNE_24KC
 	help
 	  This supports QCA/Atheros ar933x family SOCs.
@@ -22,7 +21,6 @@ config SOC_QCA953X
 	select SUPPORTS_BIG_ENDIAN
 	select SUPPORTS_CPU_MIPS32_R1
 	select SUPPORTS_CPU_MIPS32_R2
-	select SYS_MIPS_CACHE_INIT_RAM_LOAD
 	select MIPS_TUNE_24KC
 	help
 	  This supports QCA/Atheros qca953x family SOCs.
Signature · 1 line
2.1.4
#4 lore raw

PATCH 3/3 mips: ath79: Move SYS_SOC and SYS_VENDOR to board Kconfig

In reply to Marek Vasut

In order to support boards with ath79 from different vendors and thus located under /board/$VENDOR/ , we need to define SYS_VENDOR and SYS_SOC in the board-level Kconfig. Move these two variables into board-level Kconfig for both ap121 and ap143 boards.

Cc Daniel Schwierzeck <[email protected]>
Cc Wills Wang <[email protected]>
---
 arch/mips/mach-ath79/Kconfig | 6 ------
 board/ath79/ap121/Kconfig    | 6 ++++++
 board/ath79/ap143/Kconfig    | 6 ++++++
 3 files changed, 12 insertions(+), 6 deletions(-)
arch/mips/mach-ath79/Kconfig +0 -6
index 95f7de9..8f07a77 100644
@@ -1,12 +1,6 @@
 menu "QCA/Athroes 7xxx/9xxx platforms"
 	depends on ARCH_ATH79
 
-config SYS_VENDOR
-	default "ath79"
-
-config SYS_SOC
-	default "ath79"
-
 config SOC_AR933X
 	bool
 	select SUPPORTS_BIG_ENDIAN
board/ath79/ap121/Kconfig +6 -0
index ec72914..a4e5690 100644
@@ -1,5 +1,11 @@
 if BOARD_AP121
 
+config SYS_VENDOR
+	default "ath79"
+
+config SYS_SOC
+	default "ath79"
+
 config SYS_BOARD
 	default "ap121"
 
board/ath79/ap143/Kconfig +6 -0
index 118b9b5..2e54fa7 100644
@@ -1,5 +1,11 @@
 if BOARD_AP143
 
+config SYS_VENDOR
+	default "ath79"
+
+config SYS_SOC
+	default "ath79"
+
 config SYS_BOARD
 	default "ap143"
 
Signature · 1 line
2.1.4
#12 lore raw

PATCH 1/3 mips: ath79: Fix compiler warning on const assignment

In reply to Marek Vasut
Quoted 15 lines · Marek Vasut

The assignment const T var; var = value; is illegal, since var is constant. Drop the const to fix the compiler warning.

Cc Daniel Schwierzeck <[email protected]>
Cc Wills Wang <[email protected]>
---
  arch/mips/mach-ath79/reset.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/mach-ath79/reset.c +0 -0
index 504b833..e8f5796 100644

arch/mips/mach-ath79/reset.c void _machine_restart(void) · line 52

Quoted 8 lines
arch/mips/mach-ath79/reset.c +1 -1
@@ -46,7 +46,7 @@ void _machine_restart(void)
 
  u32 get_bootstrap(void)
  {
-	const void __iomem *base;
+	void __iomem *base;
  	u32 reg = 0;
 
  	base = map_physmem(AR71XX_RESET_BASE, AR71XX_RESET_SIZE,

I have dropped "const" in the coming v8.

Signature · 2 lines
Best Regards
Wills
#2 lore raw

PATCH 2/3 mips: ath79: Drop SYS_MIPS_CACHE_INIT_RAM_LOAD

In reply to Marek Vasut
Quoted 26 lines · Marek Vasut

Drop SYS_MIPS_CACHE_INIT_RAM_LOAD from the Kconfig, since this option is bogus. The DRAM is not active when this option comes into play, so any attempt to restore valid cache state from invalid DRAM must fail. Disable this option to prevent such failure and potential undefined behavior.

Cc Daniel Schwierzeck <[email protected]>
Cc Wills Wang <[email protected]>
---
  arch/mips/mach-ath79/Kconfig | 2 --
  1 file changed, 2 deletions(-)
arch/mips/mach-ath79/Kconfig +0 -1
index f61efd2..95f7de9 100644
@@ -12,7 +12,6 @@ config SOC_AR933X
  	select SUPPORTS_BIG_ENDIAN
  	select SUPPORTS_CPU_MIPS32_R1
  	select SUPPORTS_CPU_MIPS32_R2
-	select SYS_MIPS_CACHE_INIT_RAM_LOAD
  	select MIPS_TUNE_24KC
  	help
  	  This supports QCA/Atheros ar933x family SOCs.

arch/mips/mach-ath79/Kconfig config SOC_QCA953X · line 26

Quoted 7 lines
arch/mips/mach-ath79/Kconfig +0 -1
@@ -22,7 +21,6 @@ config SOC_QCA953X
  	select SUPPORTS_BIG_ENDIAN
  	select SUPPORTS_CPU_MIPS32_R1
  	select SUPPORTS_CPU_MIPS32_R2
-	select SYS_MIPS_CACHE_INIT_RAM_LOAD
  	select MIPS_TUNE_24KC
  	help
  	  This supports QCA/Atheros qca953x family SOCs.

I will remove this option in the coming v8.

Signature · 2 lines
Best Regards
Wills
#13 lore raw

PATCH 1/3 mips: ath79: Fix compiler warning on const assignment

In reply to Wills Wang
Quoted 21 lines · Wills Wang
Quoted 20 lines · Marek Vasut

The assignment const T var; var = value; is illegal, since var is constant. Drop the const to fix the compiler warning.

Cc Daniel Schwierzeck <[email protected]>
Cc Wills Wang <[email protected]>

---

  arch/mips/mach-ath79/reset.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/mach-ath79/reset.c +0 -0
index 504b833..e8f5796 100644
@@ -46,7 +46,7 @@ void _machine_restart(void)
 
  u32 get_bootstrap(void)
  {
 
Quoted 8 lines
Quoted 6 lines
arch/mips/mach-ath79/reset.c +1 -1
-	const void __iomem *base;
+	void __iomem *base;
 
  	u32 reg = 0;

base = map_physmem(AR71XX_RESET_BASE, AR71XX_RESET_SIZE,

I have dropped "const" in the coming v8.

Fine

Best regards,
Marek Vasut

#3 lore raw

PATCH 2/3 mips: ath79: Drop SYS_MIPS_CACHE_INIT_RAM_LOAD

In reply to Wills Wang
Quoted 38 lines · Wills Wang
Quoted 37 lines · Marek Vasut

Drop SYS_MIPS_CACHE_INIT_RAM_LOAD from the Kconfig, since this option is bogus. The DRAM is not active when this option comes into play, so any attempt to restore valid cache state from invalid DRAM must fail. Disable this option to prevent such failure and potential undefined behavior.

Cc Daniel Schwierzeck <[email protected]>
Cc Wills Wang <[email protected]>

---

  arch/mips/mach-ath79/Kconfig | 2 --
  1 file changed, 2 deletions(-)
arch/mips/mach-ath79/Kconfig +0 -1
index f61efd2..95f7de9 100644
@@ -12,7 +12,6 @@ config SOC_AR933X
 
  	select SUPPORTS_BIG_ENDIAN
  	select SUPPORTS_CPU_MIPS32_R1
  	select SUPPORTS_CPU_MIPS32_R2
 
-	select SYS_MIPS_CACHE_INIT_RAM_LOAD
 

select MIPS_TUNE_24KC
help

This supports QCA/Atheros ar933x family SOCs.

arch/mips/mach-ath79/Kconfig +0 -0
@@ -22,7 +21,6 @@ config SOC_QCA953X
 
  	select SUPPORTS_BIG_ENDIAN
  	select SUPPORTS_CPU_MIPS32_R1
  	select SUPPORTS_CPU_MIPS32_R2
 
Quoted 8 lines
Quoted 6 lines
arch/mips/mach-ath79/Kconfig +0 -1
-	select SYS_MIPS_CACHE_INIT_RAM_LOAD
 

select MIPS_TUNE_24KC
help

This supports QCA/Atheros qca953x family SOCs.

I will remove this option in the coming v8.

Fine

Best regards,
Marek Vasut

#5 lore raw

PATCH 3/3 mips: ath79: Move SYS_SOC and SYS_VENDOR to board Kconfig

In reply to Marek Vasut
Quoted 53 lines · Marek Vasut

In order to support boards with ath79 from different vendors and thus located under /board/$VENDOR/ , we need to define SYS_VENDOR and SYS_SOC in the board-level Kconfig. Move these two variables into board-level Kconfig for both ap121 and ap143 boards.

Cc Daniel Schwierzeck <[email protected]>
Cc Wills Wang <[email protected]>
---
  arch/mips/mach-ath79/Kconfig | 6 ------
  board/ath79/ap121/Kconfig    | 6 ++++++
  board/ath79/ap143/Kconfig    | 6 ++++++
  3 files changed, 12 insertions(+), 6 deletions(-)
arch/mips/mach-ath79/Kconfig +0 -6
index 95f7de9..8f07a77 100644
@@ -1,12 +1,6 @@
  menu "QCA/Athroes 7xxx/9xxx platforms"
  	depends on ARCH_ATH79
 
-config SYS_VENDOR
-	default "ath79"
-
-config SYS_SOC
-	default "ath79"
-
  config SOC_AR933X
  	bool
  	select SUPPORTS_BIG_ENDIAN
board/ath79/ap121/Kconfig +6 -0
index ec72914..a4e5690 100644
@@ -1,5 +1,11 @@
  if BOARD_AP121
 
+config SYS_VENDOR
+	default "ath79"
+
+config SYS_SOC
+	default "ath79"
+
  config SYS_BOARD
  	default "ap121"
 
board/ath79/ap143/Kconfig +0 -0
index 118b9b5..2e54fa7 100644
@@ -1,5 +1,11 @@
  if BOARD_AP143

board/ath79/ap143/Kconfig line 11

Quoted 10 lines
board/ath79/ap143/Kconfig +6 -0
 
+config SYS_VENDOR
+	default "ath79"
+
+config SYS_SOC
+	default "ath79"
+
  config SYS_BOARD
  	default "ap143"
 

I plan to place ap121 and ap143 into board/qca, and then move these into board directory.

Signature · 2 lines
Best Regards
Wills
#6 lore raw

PATCH 3/3 mips: ath79: Move SYS_SOC and SYS_VENDOR to board Kconfig

In reply to Marek Vasut
Quoted 53 lines · Marek Vasut

In order to support boards with ath79 from different vendors and thus located under /board/$VENDOR/ , we need to define SYS_VENDOR and SYS_SOC in the board-level Kconfig. Move these two variables into board-level Kconfig for both ap121 and ap143 boards.

Cc Daniel Schwierzeck <[email protected]>
Cc Wills Wang <[email protected]>
---
  arch/mips/mach-ath79/Kconfig | 6 ------
  board/ath79/ap121/Kconfig    | 6 ++++++
  board/ath79/ap143/Kconfig    | 6 ++++++
  3 files changed, 12 insertions(+), 6 deletions(-)
arch/mips/mach-ath79/Kconfig +0 -6
index 95f7de9..8f07a77 100644
@@ -1,12 +1,6 @@
  menu "QCA/Athroes 7xxx/9xxx platforms"
  	depends on ARCH_ATH79
 
-config SYS_VENDOR
-	default "ath79"
-
-config SYS_SOC
-	default "ath79"
-
  config SOC_AR933X
  	bool
  	select SUPPORTS_BIG_ENDIAN
board/ath79/ap121/Kconfig +6 -0
index ec72914..a4e5690 100644
@@ -1,5 +1,11 @@
  if BOARD_AP121
 
+config SYS_VENDOR
+	default "ath79"
+
+config SYS_SOC
+	default "ath79"
+
  config SYS_BOARD
  	default "ap121"
 
board/ath79/ap143/Kconfig +0 -0
index 118b9b5..2e54fa7 100644
@@ -1,5 +1,11 @@
  if BOARD_AP143

board/ath79/ap143/Kconfig line 11

Quoted 10 lines
board/ath79/ap143/Kconfig +6 -0
 
+config SYS_VENDOR
+	default "ath79"
+
+config SYS_SOC
+	default "ath79"
+
  config SYS_BOARD
  	default "ap143"
 

I plan to place ap121 and ap143 into board/qca, and then move these into board directory.

Signature · 2 lines
Best Regards
Wills
#7 lore raw

PATCH 3/3 mips: ath79: Move SYS_SOC and SYS_VENDOR to board Kconfig

Quoted 72 lines · Wills Wang
Quoted 71 lines · Marek Vasut

In order to support boards with ath79 from different vendors and thus located under /board/$VENDOR/ , we need to define SYS_VENDOR and SYS_SOC in the board-level Kconfig. Move these two variables into board-level Kconfig for both ap121 and ap143 boards.

Cc Daniel Schwierzeck <[email protected]>
Cc Wills Wang <[email protected]>

---

  arch/mips/mach-ath79/Kconfig | 6 ------
  board/ath79/ap121/Kconfig    | 6 ++++++
  board/ath79/ap143/Kconfig    | 6 ++++++
  3 files changed, 12 insertions(+), 6 deletions(-)
arch/mips/mach-ath79/Kconfig +0 -6
index 95f7de9..8f07a77 100644
@@ -1,12 +1,6 @@
 
  menu "QCA/Athroes 7xxx/9xxx platforms"
 
  	depends on ARCH_ATH79
 
-config SYS_VENDOR
-	default "ath79"
-
-config SYS_SOC
-	default "ath79"
-
 

config SOC_AR933X

bool
select SUPPORTS_BIG_ENDIAN

board/ath79/ap121/Kconfig +6 -0
index ec72914..a4e5690 100644
@@ -1,5 +1,11 @@
 
  if BOARD_AP121
 
+config SYS_VENDOR
+	default "ath79"
+
+config SYS_SOC
+	default "ath79"
+
 
  config SYS_BOARD

default "ap121"

board/ath79/ap143/Kconfig +6 -0
index 118b9b5..2e54fa7 100644
@@ -1,5 +1,11 @@
 
  if BOARD_AP143
 
+config SYS_VENDOR
+	default "ath79"
+
+config SYS_SOC
+	default "ath79"
+
 
Quoted 6 lines
Quoted 3 lines
board/ath79/ap143/Kconfig +0 -0
  config SYS_BOARD

default "ap143"

I plan to place ap121 and ap143 into board/qca, and then move these into board directory.

That's fine, but keep this patch or something along those lines, since I want to create board/arduino/yun/ soon after your stuff is accepted.

btw. I got both EHCI and ethernet operational, but I am still struggling with booting the board from the SPI NOR. I think there's something broken in start.S or lowlevel_init.S . Which board do you use for your development and testing ?

#8 lore raw

PATCH 3/3 mips: ath79: Move SYS_SOC and SYS_VENDOR to board Kconfig

Quoted 78 lines · Marek Vasut
Quoted 72 lines · Wills Wang
Quoted 71 lines · Marek Vasut

In order to support boards with ath79 from different vendors and thus located under /board/$VENDOR/ , we need to define SYS_VENDOR and SYS_SOC in the board-level Kconfig. Move these two variables into board-level Kconfig for both ap121 and ap143 boards.

Cc Daniel Schwierzeck <[email protected]>
Cc Wills Wang <[email protected]>

---

   arch/mips/mach-ath79/Kconfig | 6 ------
   board/ath79/ap121/Kconfig    | 6 ++++++
   board/ath79/ap143/Kconfig    | 6 ++++++
   3 files changed, 12 insertions(+), 6 deletions(-)
arch/mips/mach-ath79/Kconfig +0 -6
index 95f7de9..8f07a77 100644
@@ -1,12 +1,6 @@
 
   menu "QCA/Athroes 7xxx/9xxx platforms"
 
   	depends on ARCH_ATH79
 
-config SYS_VENDOR
-	default "ath79"
-
-config SYS_SOC
-	default "ath79"
-
 

config SOC_AR933X

bool
select SUPPORTS_BIG_ENDIAN

board/ath79/ap121/Kconfig +6 -0
index ec72914..a4e5690 100644
@@ -1,5 +1,11 @@
 
   if BOARD_AP121
 
+config SYS_VENDOR
+	default "ath79"
+
+config SYS_SOC
+	default "ath79"
+
 
   config SYS_BOARD
   
   	default "ap121"
board/ath79/ap143/Kconfig +6 -0
index 118b9b5..2e54fa7 100644
@@ -1,5 +1,11 @@
 
   if BOARD_AP143
 
+config SYS_VENDOR
+	default "ath79"
+
+config SYS_SOC
+	default "ath79"
+
 
Quoted 5 lines
Quoted 3 lines
board/ath79/ap143/Kconfig +0 -0
   config SYS_BOARD
   
   	default "ap143"

I plan to place ap121 and ap143 into board/qca, and then move these into board directory.

Quoted 7 lines

That's fine, but keep this patch or something along those lines, since I want to create board/arduino/yun/ soon after your stuff is accepted.

btw. I got both EHCI and ethernet operational, but I am still struggling with booting the board from the SPI NOR. I think there's something broken in start.S or lowlevel_init.S . Which board do you use for your development and testing ?

My private board was made by myself, it originate from AP121, and it's circuit is compatible with AP121.

Signature · 2 lines
Best Regards
Wills
#9 lore raw

PATCH 3/3 mips: ath79: Move SYS_SOC and SYS_VENDOR to board Kconfig

Quoted 84 lines · Wills Wang
Quoted 83 lines · Marek Vasut
Quoted 72 lines · Wills Wang
Quoted 71 lines · Marek Vasut

In order to support boards with ath79 from different vendors and thus located under /board/$VENDOR/ , we need to define SYS_VENDOR and SYS_SOC in the board-level Kconfig. Move these two variables into board-level Kconfig for both ap121 and ap143 boards.

Cc Daniel Schwierzeck <[email protected]>
Cc Wills Wang <[email protected]>

---

   arch/mips/mach-ath79/Kconfig | 6 ------
   board/ath79/ap121/Kconfig    | 6 ++++++
   board/ath79/ap143/Kconfig    | 6 ++++++
   3 files changed, 12 insertions(+), 6 deletions(-)
(quoted diff) +0 -0

b/arch/mips/mach-ath79/Kconfig index 95f7de9..8f07a77 100644

arch/mips/mach-ath79/Kconfig +0 -6
@@ -1,12 +1,6 @@
 
   menu "QCA/Athroes 7xxx/9xxx platforms"
 
   	depends on ARCH_ATH79
 
-config SYS_VENDOR
-	default "ath79"
-
-config SYS_SOC
-	default "ath79"
-
 

config SOC_AR933X

bool
select SUPPORTS_BIG_ENDIAN

board/ath79/ap121/Kconfig +6 -0
index ec72914..a4e5690 100644
@@ -1,5 +1,11 @@
 
   if BOARD_AP121
 
+config SYS_VENDOR
+	default "ath79"
+
+config SYS_SOC
+	default "ath79"
+
 
   config SYS_BOARD
   
   	default "ap121"
board/ath79/ap143/Kconfig +6 -0
index 118b9b5..2e54fa7 100644
@@ -1,5 +1,11 @@
 
   if BOARD_AP143
 
+config SYS_VENDOR
+	default "ath79"
+
+config SYS_SOC
+	default "ath79"
+
 
Quoted 6 lines
Quoted 3 lines
board/ath79/ap143/Kconfig +0 -0
   config SYS_BOARD
   
   	default "ap143"

I plan to place ap121 and ap143 into board/qca, and then move these into board directory.

That's fine, but keep this patch or something along those lines, since I want to create board/arduino/yun/ soon after your stuff is accepted.

Quoted 7 lines
Quoted 4 lines

btw. I got both EHCI and ethernet operational, but I am still struggling with booting the board from the SPI NOR. I think there's something broken in start.S or lowlevel_init.S . Which board do you use for your development and testing ?

My private board was made by myself, it originate from AP121, and it's circuit is compatible with AP121.

How do you program your board ? Do you have EJTAG?

What SPI NOR do you use?

#10 lore raw

PATCH 3/3 mips: ath79: Move SYS_SOC and SYS_VENDOR to board Kconfig

Quoted 87 lines · Marek Vasut
Quoted 86 lines · Wills Wang
Quoted 85 lines · Marek Vasut
Quoted 72 lines · Wills Wang
Quoted 71 lines · Marek Vasut

In order to support boards with ath79 from different vendors and thus located under /board/$VENDOR/ , we need to define SYS_VENDOR and SYS_SOC in the board-level Kconfig. Move these two variables into board-level Kconfig for both ap121 and ap143 boards.

Cc Daniel Schwierzeck <[email protected]>
Cc Wills Wang <[email protected]>

---

    arch/mips/mach-ath79/Kconfig | 6 ------
    board/ath79/ap121/Kconfig    | 6 ++++++
    board/ath79/ap143/Kconfig    | 6 ++++++
    3 files changed, 12 insertions(+), 6 deletions(-)
(quoted diff) +0 -0

b/arch/mips/mach-ath79/Kconfig index 95f7de9..8f07a77 100644

arch/mips/mach-ath79/Kconfig +0 -6
@@ -1,12 +1,6 @@
 
    menu "QCA/Athroes 7xxx/9xxx platforms"
 
    	depends on ARCH_ATH79
 
-config SYS_VENDOR
-	default "ath79"
-
-config SYS_SOC
-	default "ath79"
-
 

config SOC_AR933X

bool
select SUPPORTS_BIG_ENDIAN

board/ath79/ap121/Kconfig +6 -0
index ec72914..a4e5690 100644
@@ -1,5 +1,11 @@
 
    if BOARD_AP121
 
+config SYS_VENDOR
+	default "ath79"
+
+config SYS_SOC
+	default "ath79"
+
 
    config SYS_BOARD
    
    	default "ap121"
board/ath79/ap143/Kconfig +6 -0
index 118b9b5..2e54fa7 100644
@@ -1,5 +1,11 @@
 
    if BOARD_AP143
 
+config SYS_VENDOR
+	default "ath79"
+
+config SYS_SOC
+	default "ath79"
+
 
Quoted 5 lines
Quoted 3 lines
board/ath79/ap143/Kconfig +0 -0
    config SYS_BOARD
    
    	default "ap143"

I plan to place ap121 and ap143 into board/qca, and then move these into board directory.

That's fine, but keep this patch or something along those lines, since I want to create board/arduino/yun/ soon after your stuff is accepted.

btw. I got both EHCI and ethernet operational, but I am still struggling with booting the board from the SPI NOR. I think there's something broken in start.S or lowlevel_init.S . Which board do you use for your development and testing ?

Quoted 5 lines
Quoted 2 lines

My private board was made by myself, it originate from AP121, and it's circuit is compatible with AP121.

How do you program your board ? Do you have EJTAG?

What SPI NOR do you use?

My flash chip is W25Q64FV.
I place a chip socket on board, flash chip can be plugged in or out easily.

Signature · 2 lines
Best Regards
Wills
#11 lore raw

PATCH 3/3 mips: ath79: Move SYS_SOC and SYS_VENDOR to board Kconfig

Quoted 94 lines · Wills Wang
Quoted 93 lines · Marek Vasut
Quoted 91 lines · Wills Wang
Quoted 80 lines · Marek Vasut
Quoted 72 lines · Wills Wang
Quoted 71 lines · Marek Vasut

In order to support boards with ath79 from different vendors and thus located under /board/$VENDOR/ , we need to define SYS_VENDOR and SYS_SOC in the board-level Kconfig. Move these two variables into board-level Kconfig for both ap121 and ap143 boards.

Cc Daniel Schwierzeck <[email protected]>
Cc Wills Wang <[email protected]>

---

    arch/mips/mach-ath79/Kconfig | 6 ------
    board/ath79/ap121/Kconfig    | 6 ++++++
    board/ath79/ap143/Kconfig    | 6 ++++++
    3 files changed, 12 insertions(+), 6 deletions(-)
(quoted diff) +0 -0

b/arch/mips/mach-ath79/Kconfig index 95f7de9..8f07a77 100644

arch/mips/mach-ath79/Kconfig +0 -6
@@ -1,12 +1,6 @@
 
    menu "QCA/Athroes 7xxx/9xxx platforms"
 
    	depends on ARCH_ATH79
 
-config SYS_VENDOR
-	default "ath79"
-
-config SYS_SOC
-	default "ath79"
-
 

config SOC_AR933X

bool
select SUPPORTS_BIG_ENDIAN

board/ath79/ap121/Kconfig +6 -0
index ec72914..a4e5690 100644
@@ -1,5 +1,11 @@
 
    if BOARD_AP121
 
+config SYS_VENDOR
+	default "ath79"
+
+config SYS_SOC
+	default "ath79"
+
 
    config SYS_BOARD
    
    	default "ap121"
board/ath79/ap143/Kconfig +6 -0
index 118b9b5..2e54fa7 100644
@@ -1,5 +1,11 @@
 
    if BOARD_AP143
 
+config SYS_VENDOR
+	default "ath79"
+
+config SYS_SOC
+	default "ath79"
+
 
Quoted 6 lines
Quoted 3 lines
board/ath79/ap143/Kconfig +0 -0
    config SYS_BOARD
    
    	default "ap143"

I plan to place ap121 and ap143 into board/qca, and then move these into board directory.

Quoted 7 lines

That's fine, but keep this patch or something along those lines, since I want to create board/arduino/yun/ soon after your stuff is accepted.

btw. I got both EHCI and ethernet operational, but I am still struggling with booting the board from the SPI NOR. I think there's something broken in start.S or lowlevel_init.S . Which board do you use for your development and testing ?

My private board was made by myself, it originate from AP121, and it's circuit is compatible with AP121.

Quoted 6 lines
Quoted 3 lines

How do you program your board ? Do you have EJTAG?

What SPI NOR do you use?

My flash chip is W25Q64FV.
I place a chip socket on board, flash chip can be plugged in or out easily.

I see, OK.

Just out of sheer curiosity, are you doing the ath79 support as a hobby thing or are you putting out an actual product ?

Also, you might want to join the u-boot IRC, it's easier to discuss things in real time.

Best regards,
Marek Vasut