Skip to contentSkip to conversation

atmel, at91: fix taurus board

PATCH In review Heiko Schocher 3 participants 3 messages Jun 28, 2017 – Jun 29, 2017

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

PATCH 1/1 atmel, at91: fix taurus board

since commit: f8b7fff1d5c5 "serial: atmel_usart: Add clk support"

taurus board comes not up anymore. Fix it.

---

 arch/arm/dts/at91sam9g20-taurus.dts | 2 ++
 board/siemens/taurus/taurus.c       | 9 ---------
 configs/taurus_defconfig            | 3 +++
 3 files changed, 5 insertions(+), 9 deletions(-)
arch/arm/dts/at91sam9g20-taurus.dts +2 -0
index f27d772..7931c0a 100644
@@ -18,6 +18,7 @@
 	compatible = "atmel,at91sam9g20ek", "atmel,at91sam9g20", "atmel,at91sam9";
 
 	chosen {
+		u-boot,dm-pre-reloc;
 		stdout-path = &dbgu;
 	};
 
@@ -48,6 +49,7 @@
 			};
 
 			dbgu: serial at fffff200 {
+				u-boot,dm-pre-reloc;
 				status = "okay";
 			};
 
board/siemens/taurus/taurus.c +0 -9
index 8da24be..4aa8d64 100644
@@ -448,12 +448,3 @@ U_BOOT_CMD(
 );
 #endif
 #endif
-
-static struct atmel_serial_platdata at91sam9260_serial_plat = {
-	.base_addr = ATMEL_BASE_DBGU,
-};
-
-U_BOOT_DEVICE(at91sam9260_serial) = {
-	.name   = "serial_atmel",
-	.platdata = &at91sam9260_serial_plat,
-};
configs/taurus_defconfig +3 -0
index 2de9cad..70d44a7 100644
@@ -7,6 +7,7 @@ CONFIG_TARGET_TAURUS=y
 CONFIG_SPL_GPIO_SUPPORT=y
 CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
+CONFIG_SYS_MALLOC_F_LEN=0x1000
 CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_NAND_SUPPORT=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
@@ -36,6 +37,8 @@ CONFIG_CMD_PING=y
 # CONFIG_DOS_PARTITION is not set
 CONFIG_OF_CONTROL=y
 CONFIG_OF_EMBED=y
+CONFIG_CLK=y
+CONFIG_CLK_AT91=y
 CONFIG_DFU_NAND=y
 # CONFIG_MMC is not set
 CONFIG_SPI_FLASH=y
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 atmel, at91: fix taurus board

Quoted 5 lines · Heiko Schocher

since commit: f8b7fff1d5c5 "serial: atmel_usart: Add clk support"

taurus board comes not up anymore. Fix it.

Thank you.

Quoted 57 lines

---

  arch/arm/dts/at91sam9g20-taurus.dts | 2 ++
  board/siemens/taurus/taurus.c       | 9 ---------
  configs/taurus_defconfig            | 3 +++
  3 files changed, 5 insertions(+), 9 deletions(-)
arch/arm/dts/at91sam9g20-taurus.dts +2 -0
index f27d772..7931c0a 100644
@@ -18,6 +18,7 @@
  	compatible = "atmel,at91sam9g20ek", "atmel,at91sam9g20", "atmel,at91sam9";
 
  	chosen {
+		u-boot,dm-pre-reloc;
  		stdout-path = &dbgu;
  	};
 
@@ -48,6 +49,7 @@
  			};
 
  			dbgu: serial at fffff200 {
+				u-boot,dm-pre-reloc;
  				status = "okay";
  			};
 
board/siemens/taurus/taurus.c +0 -9
index 8da24be..4aa8d64 100644
@@ -448,12 +448,3 @@ U_BOOT_CMD(
  );
  #endif
  #endif
-
-static struct atmel_serial_platdata at91sam9260_serial_plat = {
-	.base_addr = ATMEL_BASE_DBGU,
-};
-
-U_BOOT_DEVICE(at91sam9260_serial) = {
-	.name   = "serial_atmel",
-	.platdata = &at91sam9260_serial_plat,
-};
configs/taurus_defconfig +1 -0
index 2de9cad..70d44a7 100644
@@ -7,6 +7,7 @@ CONFIG_TARGET_TAURUS=y
  CONFIG_SPL_GPIO_SUPPORT=y
  CONFIG_SPL_LIBCOMMON_SUPPORT=y
  CONFIG_SPL_LIBGENERIC_SUPPORT=y
+CONFIG_SYS_MALLOC_F_LEN=0x1000
  CONFIG_SPL_SERIAL_SUPPORT=y
  CONFIG_SPL_NAND_SUPPORT=y
  CONFIG_SPL_SPI_FLASH_SUPPORT=y

configs/taurus_defconfig CONFIG_CMD_PING=y · line 44

Quoted 8 lines
configs/taurus_defconfig +2 -0
@@ -36,6 +37,8 @@ CONFIG_CMD_PING=y
  # CONFIG_DOS_PARTITION is not set
  CONFIG_OF_CONTROL=y
  CONFIG_OF_EMBED=y
+CONFIG_CLK=y
+CONFIG_CLK_AT91=y
  CONFIG_DFU_NAND=y
  # CONFIG_MMC is not set
  CONFIG_SPI_FLASH=y

Best Regards,
Wenyou Yang

#2 lore raw
In reply to Heiko Schocher
Quoted 6 lines · Heiko Schocher

since commit: f8b7fff1d5c5 "serial: atmel_usart: Add clk support"

taurus board comes not up anymore. Fix it.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170629/3d03f61e/attachment.sig>