Skip to contentSkip to conversation

board/ls2080aqds, SD-boot: Update env offset

PATCH New Santan Kumar 3 participants 16 messages Jun 9, 2017 – Aug 10, 2017

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

PATCH 1/1 board/ls2080aqds, SD-boot: Update env offset

As per new memory layout, Update env offset
from 0x200000 to 0x300000

---
 include/configs/ls2080aqds.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/ls2080aqds.h +1 -1
index 8a8ee9d..c32c184 100644
@@ -238,7 +238,7 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_SYS_NAND_U_BOOT_OFFS	(256 * 1024)
 #define CONFIG_SYS_NAND_U_BOOT_SIZE	(640 * 1024)
 #elif defined(CONFIG_SD_BOOT)
-#define CONFIG_ENV_OFFSET		0x200000
+#define CONFIG_ENV_OFFSET		0x300000
 #define CONFIG_ENV_IS_IN_MMC
 #define CONFIG_SYS_MMC_ENV_DEV		0
 #define CONFIG_ENV_SIZE			0x20000
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 board/ls2080ardb: Disable SD-related GPIO programming

LS2080ARDB/LS2088ARDB updated RevF boards do not have smart voltage translator, so no need to program GPIO for LS2088ARDB boards
The GPIO programming is required only for LS2081ARDB.

---
 board/freescale/ls2080ardb/ls2080ardb.c | 18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)
board/freescale/ls2080ardb/ls2080ardb.c +2 -16
index df2d768..210142c 100644
@@ -257,31 +257,17 @@ int board_early_init_f(void)
 
 int misc_init_r(void)
 {
-#ifdef CONFIG_FSL_QIXIS
-	/*
-	 * LS2081ARDB has smart voltage translator which needs
-	 * to be programmed as below
-	 */
-#ifndef CONFIG_TARGET_LS2081ARDB
-	u8 sw;
-
-	sw = QIXIS_READ(arch);
 	/*
-	 * LS2080ARDB/LS2088ARDB RevF board has smart voltage translator
+	 * LS2081ARDB RevF board has smart voltage translator
 	 * which needs to be programmed to enable high speed SD interface
 	 * by setting GPIO4_10 output to zero
 	 */
-	if ((sw & 0xf) == 0x5) {
-#endif
+#ifdef CONFIG_TARGET_LS2081ARDB
 		out_le32(GPIO4_GPDIR_ADDR, (1 << 21 |
 					    in_le32(GPIO4_GPDIR_ADDR)));
 		out_le32(GPIO4_GPDAT_ADDR, (~(1 << 21) &
 					    in_le32(GPIO4_GPDAT_ADDR)));
-#ifndef CONFIG_TARGET_LS2081ARDB
-	}
-#endif
 #endif
-
 	if (hwconfig("sdhc"))
 		config_board_mux(MUX_TYPE_SDHC);
 
Signature · 1 line
1.9.1
#2 lore raw

PATCH 1/1 board/ls2080ardb: Disable SD-related GPIO programming

Quoted 40 lines · Santan Kumar

LS2080ARDB/LS2088ARDB updated RevF boards do not have smart voltage translator, so no need to program GPIO for LS2088ARDB boards
The GPIO programming is required only for LS2081ARDB.

---
  board/freescale/ls2080ardb/ls2080ardb.c | 18 ++----------------
  1 file changed, 2 insertions(+), 16 deletions(-)
board/freescale/ls2080ardb/ls2080ardb.c +2 -12
index df2d768..210142c 100644
@@ -257,31 +257,17 @@ int board_early_init_f(void)
 
  int misc_init_r(void)
  {
-#ifdef CONFIG_FSL_QIXIS
-	/*
-	 * LS2081ARDB has smart voltage translator which needs
-	 * to be programmed as below
-	 */
-#ifndef CONFIG_TARGET_LS2081ARDB
-	u8 sw;
-
-	sw = QIXIS_READ(arch);
  	/*
-	 * LS2080ARDB/LS2088ARDB RevF board has smart voltage translator
+	 * LS2081ARDB RevF board has smart voltage translator
  	 * which needs to be programmed to enable high speed SD interface
  	 * by setting GPIO4_10 output to zero
  	 */
-	if ((sw & 0xf) == 0x5) {
-#endif
+#ifdef CONFIG_TARGET_LS2081ARDB
  		out_le32(GPIO4_GPDIR_ADDR, (1 << 21 |
  					    in_le32(GPIO4_GPDIR_ADDR)));

board/freescale/ls2080ardb/ls2080ardb.c int board_early_init_f(void) · line 273

Quoted 10 lines
board/freescale/ls2080ardb/ls2080ardb.c +0 -4
  		out_le32(GPIO4_GPDAT_ADDR, (~(1 << 21) &
  					    in_le32(GPIO4_GPDAT_ADDR)));
-#ifndef CONFIG_TARGET_LS2081ARDB
-	}
-#endif
  #endif
-
  	if (hwconfig("sdhc"))
  		config_board_mux(MUX_TYPE_SDHC);
 

This change is not backward-compatible, is it?

York

#3 lore raw

PATCH 1/1 board/ls2080ardb: Disable SD-related GPIO programming

Quoted 65 lines

-----Original Message-----
From: York Sun
Sent: Wednesday, June 14, 2017 2:16 AM
To: Santan Kumar <[email protected]>; u-boot at lists.denx.de
Cc: Priyanka Jain <[email protected]>
Subject: Re: [PATCH 1/1] board/ls2080ardb: Disable SD-related GPIO programming

Quoted 31 lines · Santan Kumar

LS2080ARDB/LS2088ARDB updated RevF boards do not have smart voltage translator, so no need to program GPIO for LS2088ARDB boards The GPIO programming is required only for LS2081ARDB.

---
  board/freescale/ls2080ardb/ls2080ardb.c | 18 ++----------------
  1 file changed, 2 insertions(+), 16 deletions(-)
board/freescale/ls2080ardb/ls2080ardb.c +1 -10
index df2d768..210142c 100644
@@ -257,31 +257,17 @@ int board_early_init_f(void)
 
  int misc_init_r(void)
  {
-#ifdef CONFIG_FSL_QIXIS
-	/*
-	 * LS2081ARDB has smart voltage translator which needs
-	 * to be programmed as below
-	 */
-#ifndef CONFIG_TARGET_LS2081ARDB
-	u8 sw;
-
-	sw = QIXIS_READ(arch);
  	/*
-	 * LS2080ARDB/LS2088ARDB RevF board has smart voltage translator
+	 * LS2081ARDB RevF board has smart voltage translator

board/freescale/ls2080ardb/ls2080ardb.c int board_early_init_f(void) · line 269

Quoted 10 lines
board/freescale/ls2080ardb/ls2080ardb.c +1 -2
  	 * which needs to be programmed to enable high speed SD interface
  	 * by setting GPIO4_10 output to zero
  	 */
-	if ((sw & 0xf) == 0x5) {
-#endif
+#ifdef CONFIG_TARGET_LS2081ARDB
  		out_le32(GPIO4_GPDIR_ADDR, (1 << 21 |
  					    in_le32(GPIO4_GPDIR_ADDR)));
  		out_le32(GPIO4_GPDAT_ADDR, (~(1 << 21) &
  					    in_le32(GPIO4_GPDAT_ADDR))); -

#ifndef

board/freescale/ls2080ardb/ls2080ardb.c int board_early_init_f(void) · line 272

Quoted 9 lines

CONFIG_TARGET_LS2081ARDB

board/freescale/ls2080ardb/ls2080ardb.c +0 -3
-	}
-#endif
  #endif
-
  	if (hwconfig("sdhc"))
  		config_board_mux(MUX_TYPE_SDHC);

This change is not backward-compatible, is it?

Quoted 1 line

York

Yes, It is backward compatible. As per updated board designs and the manufactured boards, GPIO programming is required only for LS2081ARDB boards.

Priyanka

#4 lore raw

PATCH 1/1 board/ls2080ardb: Disable SD-related GPIO programming

Quoted 65 lines · Priyanka Jain
Quoted 65 lines

-----Original Message-----
From: York Sun
Sent: Wednesday, June 14, 2017 2:16 AM
To: Santan Kumar <[email protected]>; u-boot at lists.denx.de
Cc: Priyanka Jain <[email protected]>
Subject: Re: [PATCH 1/1] board/ls2080ardb: Disable SD-related GPIO programming

Quoted 31 lines · Santan Kumar

LS2080ARDB/LS2088ARDB updated RevF boards do not have smart voltage translator, so no need to program GPIO for LS2088ARDB boards The GPIO programming is required only for LS2081ARDB.

---
   board/freescale/ls2080ardb/ls2080ardb.c | 18 ++----------------
   1 file changed, 2 insertions(+), 16 deletions(-)
board/freescale/ls2080ardb/ls2080ardb.c +1 -10
index df2d768..210142c 100644
@@ -257,31 +257,17 @@ int board_early_init_f(void)
 
   int misc_init_r(void)
   {
-#ifdef CONFIG_FSL_QIXIS
-	/*
-	 * LS2081ARDB has smart voltage translator which needs
-	 * to be programmed as below
-	 */
-#ifndef CONFIG_TARGET_LS2081ARDB
-	u8 sw;
-
-	sw = QIXIS_READ(arch);
   	/*
-	 * LS2080ARDB/LS2088ARDB RevF board has smart voltage translator
+	 * LS2081ARDB RevF board has smart voltage translator

board/freescale/ls2080ardb/ls2080ardb.c int board_early_init_f(void) · line 269

Quoted 10 lines
board/freescale/ls2080ardb/ls2080ardb.c +1 -2
   	 * which needs to be programmed to enable high speed SD interface
   	 * by setting GPIO4_10 output to zero
   	 */
-	if ((sw & 0xf) == 0x5) {
-#endif
+#ifdef CONFIG_TARGET_LS2081ARDB
   		out_le32(GPIO4_GPDIR_ADDR, (1 << 21 |
   					    in_le32(GPIO4_GPDIR_ADDR)));
   		out_le32(GPIO4_GPDAT_ADDR, (~(1 << 21) &
   					    in_le32(GPIO4_GPDAT_ADDR))); -

#ifndef

board/freescale/ls2080ardb/ls2080ardb.c int board_early_init_f(void) · line 272

Quoted 9 lines

CONFIG_TARGET_LS2081ARDB

board/freescale/ls2080ardb/ls2080ardb.c +0 -3
-	}
-#endif
   #endif
-
   	if (hwconfig("sdhc"))
   		config_board_mux(MUX_TYPE_SDHC);

This change is not backward-compatible, is it?

Quoted 2 lines
Quoted 1 line

York

Yes, It is backward compatible. As per updated board designs and the manufactured boards, GPIO programming is required only for LS2081ARDB boards.

Priyanka,

I looked at this patch again. Before this change, LS2080ARDB rev F and LS2081ARDB both have the smart voltage translator enabled. After this change, rev F no longer enables this voltage translator. You still consider it backward-compatible?

York

#5 lore raw

PATCH 1/1 board/ls2080ardb: Disable SD-related GPIO programming

Quoted 81 lines

-----Original Message-----
From: York Sun
Sent: Tuesday, August 08, 2017 2:20 AM
To: Priyanka Jain <[email protected]>; Santan Kumar <[email protected]>; u-boot at lists.denx.de
Subject: Re: [PATCH 1/1] board/ls2080ardb: Disable SD-related GPIO programming

Quoted 65 lines · Priyanka Jain
Quoted 65 lines

-----Original Message-----
From: York Sun
Sent: Wednesday, June 14, 2017 2:16 AM
To: Santan Kumar <[email protected]>; u-boot at lists.denx.de
Cc: Priyanka Jain <[email protected]>
Subject: Re: [PATCH 1/1] board/ls2080ardb: Disable SD-related GPIO programming

Quoted 31 lines · Santan Kumar

LS2080ARDB/LS2088ARDB updated RevF boards do not have smart voltage translator, so no need to program GPIO for LS2088ARDB boards The GPIO programming is required only for LS2081ARDB.

---
   board/freescale/ls2080ardb/ls2080ardb.c | 18 ++----------------
   1 file changed, 2 insertions(+), 16 deletions(-)
board/freescale/ls2080ardb/ls2080ardb.c +1 -10
index df2d768..210142c 100644
@@ -257,31 +257,17 @@ int board_early_init_f(void)
 
   int misc_init_r(void)
   {
-#ifdef CONFIG_FSL_QIXIS
-	/*
-	 * LS2081ARDB has smart voltage translator which needs
-	 * to be programmed as below
-	 */
-#ifndef CONFIG_TARGET_LS2081ARDB
-	u8 sw;
-
-	sw = QIXIS_READ(arch);
   	/*
-	 * LS2080ARDB/LS2088ARDB RevF board has smart voltage translator
+	 * LS2081ARDB RevF board has smart voltage translator

board/freescale/ls2080ardb/ls2080ardb.c int board_early_init_f(void) · line 269

Quoted 10 lines
board/freescale/ls2080ardb/ls2080ardb.c +1 -2
   	 * which needs to be programmed to enable high speed SD interface
   	 * by setting GPIO4_10 output to zero
   	 */
-	if ((sw & 0xf) == 0x5) {
-#endif
+#ifdef CONFIG_TARGET_LS2081ARDB
   		out_le32(GPIO4_GPDIR_ADDR, (1 << 21 |
   					    in_le32(GPIO4_GPDIR_ADDR)));
   		out_le32(GPIO4_GPDAT_ADDR, (~(1 << 21) &
   					    in_le32(GPIO4_GPDAT_ADDR))); -

#ifndef

board/freescale/ls2080ardb/ls2080ardb.c int board_early_init_f(void) · line 272

Quoted 9 lines

CONFIG_TARGET_LS2081ARDB

board/freescale/ls2080ardb/ls2080ardb.c +0 -3
-	}
-#endif
   #endif
-
   	if (hwconfig("sdhc"))
   		config_board_mux(MUX_TYPE_SDHC);

This change is not backward-compatible, is it?

Quoted 2 lines
Quoted 1 line

York

Yes, It is backward compatible. As per updated board designs and the

manufactured boards, GPIO programming is required only for LS2081ARDB boards.

Quoted 8 lines

Priyanka,

I looked at this patch again. Before this change, LS2080ARDB rev F and LS2081ARDB both have the smart voltage translator enabled. After this change, rev F no longer enables this voltage translator. You still consider it backward- compatible?

York

Both LS2080ARDB rev F and LS2081ARDB were initially designed to have smart voltage translator to support SD-boot and UHS mode At a later stage, due to some issues on LS2088ARDB RevF board to support SD-boot, translator was removed from RevF boards.

I confirmed with board team that all LS2088ARDB RevF board will not have the smart voltage translator and all LS2081ARDB boards will have smart voltage translator.

Priyanka

#6 lore raw

PATCH 1/1 board/ls2080ardb: Disable SD-related GPIO programming

On 08/07/2017 10:18 PM, Priyanka Jain wrote:
<snip>

Quoted 15 lines
Quoted 15 lines
Quoted 5 lines
Quoted 4 lines

This change is not backward-compatible, is it?

York

Yes, It is backward compatible. As per updated board designs and the

manufactured boards, GPIO programming is required only for LS2081ARDB boards.

Priyanka,

I looked at this patch again. Before this change, LS2080ARDB rev F and LS2081ARDB both have the smart voltage translator enabled. After this change, rev F no longer enables this voltage translator. You still consider it backward- compatible?

Quoted 7 lines
Quoted 1 line

York

Both LS2080ARDB rev F and LS2081ARDB were initially designed to have smart voltage translator to support SD-boot and UHS mode At a later stage, due to some issues on LS2088ARDB RevF board to support SD-boot, translator was removed from RevF boards.

I confirmed with board team that all LS2088ARDB RevF board will not have the smart voltage translator and all LS2081ARDB boards will have smart voltage translator.

OK. Thanks.

York

Applied
#7 lore raw

PATCH 1/1 board/ls2080ardb: Disable SD-related GPIO programming

In reply to Priyanka Jain
Quoted 5 lines · Priyanka Jain

Both LS2080ARDB rev F and LS2081ARDB were initially designed to have smart voltage translator to support SD-boot and UHS mode At a later stage, due to some issues on LS2088ARDB RevF board to support SD-boot, translator was removed from RevF boards.

I confirmed with board team that all LS2088ARDB RevF board will not have the smart voltage translator and all LS2081ARDB boards will have smart voltage translator.

Applied to fsl-qoriq master, awaiting upstream.
Thanks.

York

#8 lore raw

PATCH 1/1 board/ls2081ardb: Update qspi flash type and checkboard

In reply to Santan Kumar

Patch makes below changes:
-As per updated board design, different QSPI flash is connected on boards,
hence change QSPI flash type from n25q512a to s25fs512ss
-Remove deprecated config : CONFIG_DISPLAY_BOARDINFO_LATE -Increase env size from 64kb to 256kb for qspi boot
-Update checkboard() to detect boot source and display message

---
 arch/arm/dts/fsl-ls2081a-rdb.dts        |  4 ++--
 board/freescale/ls2080ardb/ls2080ardb.c | 15 +++------------
 include/configs/ls2080a_common.h        |  2 +-
 include/configs/ls2080ardb.h            |  7 +------
 4 files changed, 7 insertions(+), 21 deletions(-)
arch/arm/dts/fsl-ls2081a-rdb.dts +2 -2
index 6489362..aa4aa68 100644
@@ -41,7 +41,7 @@
 	bus-num = <0>;
 	status = "okay";
 
-	qflash0: n25q512a at 0 {
+	qflash0: s25fs512s at 0 {
 		#address-cells = <1>;
 		#size-cells = <1>;
 		compatible = "spi-flash";
@@ -49,7 +49,7 @@
 		reg = <0>;
 	};
 
-	qflash1: n25q512a at 1 {
+	qflash1: s25fs512s at 1 {
 		#address-cells = <1>;
 		#size-cells = <1>;
 		compatible = "spi-flash";
board/freescale/ls2080ardb/ls2080ardb.c +3 -12
index 210142c..9d21d1e 100644
@@ -71,36 +71,27 @@ int checkboard(void)
 #ifdef CONFIG_TARGET_LS2081ARDB
 #ifdef CONFIG_FSL_QIXIS
 	sw = QIXIS_READ(arch);
-	printf("Board Arch: V%d, ", sw >> 4);
 	printf("Board version: %c, ", (sw & 0xf) + 'A');
 
 	sw = QIXIS_READ(brdcfg[0]);
-	sw = (sw & QIXIS_QMAP_MASK) >> QIXIS_QMAP_SHIFT;
+	sw = sw  >> QIXIS_QMAP_SHIFT;
 	switch (sw) {
 	case 0:
+	case 4:
 		puts("boot from QSPI DEV#0\n");
-		puts("QSPI_CSA_1 mapped to QSPI DEV#1\n");
 		break;
 	case 1:
 		puts("boot from QSPI DEV#1\n");
-		puts("QSPI_CSA_1 mapped to QSPI DEV#0\n");
 		break;
 	case 2:
-		puts("boot from QSPI EMU\n");
-		puts("QSPI_CSA_1 mapped to QSPI DEV#0\n");
-		break;
 	case 3:
 		puts("boot from QSPI EMU\n");
-		puts("QSPI_CSA_1 mapped to QSPI DEV#1\n");
-		break;
-	case 4:
-		puts("boot from QSPI DEV#0\n");
-		puts("QSPI_CSA_1 mapped to QSPI EMU\n");
 		break;
 	default:
 		printf("invalid setting of SW%u\n", sw);
 		break;
 	}
+	printf("FPGA: v%d.%d\n", QIXIS_READ(scver), QIXIS_READ(tagdata));
 #endif
 	puts("SERDES1 Reference : ");
 	printf("Clock1 = 100MHz ");
include/configs/ls2080a_common.h +1 -1
index e311d0b..68191f2 100644
@@ -34,7 +34,7 @@
 #define CONFIG_ENV_IS_IN_SPI_FLASH
 #define CONFIG_ENV_SIZE			0x2000          /* 8KB */
 #define CONFIG_ENV_OFFSET		0x300000        /* 3MB */
-#define CONFIG_ENV_SECT_SIZE		0x10000
+#define CONFIG_ENV_SECT_SIZE		0x40000
 #endif
 
 #define CONFIG_SUPPORT_RAW_INITRD
include/configs/ls2080ardb.h +1 -6
index 2dab065..a5f7eea 100644
@@ -18,7 +18,6 @@
 #define CONFIG_QIXIS_I2C_ACCESS
 #endif
 #define CONFIG_SYS_I2C_EARLY_INIT
-#define CONFIG_DISPLAY_BOARDINFO_LATE
 #endif
 
 #define I2C_MUX_CH_VOL_MONITOR		0xa
@@ -293,19 +292,15 @@ unsigned long get_board_sys_clk(void);
 /* SPI */
 #if defined(CONFIG_FSL_QSPI) || defined(CONFIG_FSL_DSPI)
 #define CONFIG_SPI_FLASH
-#ifdef CONFIG_FSL_QSPI
+#ifdef CONFIG_FSL_DSPI
 #define CONFIG_SPI_FLASH_STMICRO
 #endif
 #ifdef CONFIG_FSL_QSPI
-#ifdef CONFIG_TARGET_LS2081ARDB
-#define CONFIG_SPI_FLASH_STMICRO
-#else
 #define CONFIG_SPI_FLASH_SPANSION
 #endif
 #define FSL_QSPI_FLASH_SIZE		SZ_64M	/* 64MB */
 #define FSL_QSPI_FLASH_NUM		2
 #endif
-#endif
 
 /*
  * RTC configuration
Signature · 1 line
1.9.1
#9 lore raw

PATCH 1/1 board/ls2081ardb: Update qspi flash type and checkboard

Quoted 6 lines · Santan Kumar

Patch makes below changes:
-As per updated board design, different QSPI flash is connected on boards,
hence change QSPI flash type from n25q512a to s25fs512ss
-Remove deprecated config : CONFIG_DISPLAY_BOARDINFO_LATE -Increase env size from 64kb to 256kb for qspi boot
-Update checkboard() to detect boot source and display message

Please separate common change from board specific change.

Quoted 16 lines
---
  arch/arm/dts/fsl-ls2081a-rdb.dts        |  4 ++--
  board/freescale/ls2080ardb/ls2080ardb.c | 15 +++------------
  include/configs/ls2080a_common.h        |  2 +-
  include/configs/ls2080ardb.h            |  7 +------
  4 files changed, 7 insertions(+), 21 deletions(-)
arch/arm/dts/fsl-ls2081a-rdb.dts +0 -0
index 6489362..aa4aa68 100644

arch/arm/dts/fsl-ls2081a-rdb.dts line 44

Quoted 5 lines
arch/arm/dts/fsl-ls2081a-rdb.dts +1 -1
@@ -41,7 +41,7 @@
  	bus-num = <0>;
  	status = "okay";
 
-	qflash0: n25q512a at 0 {
+	qflash0: s25fs512s at 0 {

Is there any version of LS2081ARDB with n25q512a?

Quoted 17 lines
arch/arm/dts/fsl-ls2081a-rdb.dts +1 -1
  		#address-cells = <1>;
  		#size-cells = <1>;
  		compatible = "spi-flash";
@@ -49,7 +49,7 @@
  		reg = <0>;
  	};
 
-	qflash1: n25q512a at 1 {
+	qflash1: s25fs512s at 1 {
  		#address-cells = <1>;
  		#size-cells = <1>;
  		compatible = "spi-flash";
board/freescale/ls2080ardb/ls2080ardb.c +0 -0
index 210142c..9d21d1e 100644

board/freescale/ls2080ardb/ls2080ardb.c int checkboard(void) · line 75

Quoted 6 lines
board/freescale/ls2080ardb/ls2080ardb.c +0 -1
@@ -71,36 +71,27 @@ int checkboard(void)
  #ifdef CONFIG_TARGET_LS2081ARDB
  #ifdef CONFIG_FSL_QIXIS
  	sw = QIXIS_READ(arch);
-	printf("Board Arch: V%d, ", sw >> 4);
  	printf("Board version: %c, ", (sw & 0xf) + 'A');
 

What's the reason to drop "Board Arch"?

Quoted 20 lines
board/freescale/ls2080ardb/ls2080ardb.c +2 -7
  	sw = QIXIS_READ(brdcfg[0]);
-	sw = (sw & QIXIS_QMAP_MASK) >> QIXIS_QMAP_SHIFT;
+	sw = sw  >> QIXIS_QMAP_SHIFT;
  	switch (sw) {
  	case 0:
+	case 4:
  		puts("boot from QSPI DEV#0\n");
-		puts("QSPI_CSA_1 mapped to QSPI DEV#1\n");
  		break;
  	case 1:
  		puts("boot from QSPI DEV#1\n");
-		puts("QSPI_CSA_1 mapped to QSPI DEV#0\n");
  		break;
  	case 2:
-		puts("boot from QSPI EMU\n");
-		puts("QSPI_CSA_1 mapped to QSPI DEV#0\n");
-		break;
  	case 3:
  		puts("boot from QSPI EMU\n");
-		puts("QSPI_CSA_1 mapped to QSPI DEV#1\n");

board/freescale/ls2080ardb/ls2080ardb.c int checkboard(void) · line 94

Quoted 10 lines
board/freescale/ls2080ardb/ls2080ardb.c +1 -4
-		break;
-	case 4:
-		puts("boot from QSPI DEV#0\n");
-		puts("QSPI_CSA_1 mapped to QSPI EMU\n");
  		break;
  	default:
  		printf("invalid setting of SW%u\n", sw);
  		break;
  	}
+	printf("FPGA: v%d.%d\n", QIXIS_READ(scver), QIXIS_READ(tagdata));

What are you changing in this function?

York

#10 lore raw

PATCH 1/1 board/ls2081ardb: Update qspi flash type and checkboard

Quoted 41 lines

-----Original Message-----
From: York Sun
Sent: Wednesday, June 14, 2017 2:23 AM
To: Santan Kumar <[email protected]>; u-boot at lists.denx.de
Cc: Yogesh Narayan Gaur <[email protected]>; Priyanka Jain <[email protected]>
Subject: Re: [PATCH 1/1] board/ls2081ardb: Update qspi flash type and checkboard

Quoted 6 lines · Santan Kumar

Patch makes below changes:
-As per updated board design, different QSPI flash is connected on boards,
hence change QSPI flash type from n25q512a to s25fs512ss
-Remove deprecated config : CONFIG_DISPLAY_BOARDINFO_LATE -Increase env size from 64kb to 256kb for qspi boot
-Update checkboard() to detect boot source and display message

Please separate common change from board specific change.

arch/arm/dts/fsl-ls2081a-

Quoted 12 lines
---
  arch/arm/dts/fsl-ls2081a-rdb.dts        |  4 ++--
  board/freescale/ls2080ardb/ls2080ardb.c | 15 +++------------
  include/configs/ls2080a_common.h        |  2 +-
  include/configs/ls2080ardb.h            |  7 +------
  4 files changed, 7 insertions(+), 21 deletions(-)
arch/arm/dts/fsl-ls2081a- renamed from arch/arm/dts/fsl-ls2081a-rdb.dts +0 -0

rdb.dts

Quoted 7 lines

index 6489362..aa4aa68 100644

arch/arm/dts/fsl-ls2081a-rdb.dts +0 -0
@@ -41,7 +41,7 @@
  	bus-num = <0>;
  	status = "okay";
 
Quoted 4 lines

arch/arm/dts/fsl-ls2081a-rdb.dts line 44

Quoted 2 lines
arch/arm/dts/fsl-ls2081a-rdb.dts +1 -1
-	qflash0: n25q512a at 0 {
+	qflash0: s25fs512s at 0 {

Is there any version of LS2081ARDB with n25q512a?

No, All ls2081ardb boards will have s25fs512s device

Quoted 15 lines

Review

Quoted 14 lines
arch/arm/dts/fsl-ls2081a-rdb.dts +1 -1
  		#address-cells = <1>;
  		#size-cells = <1>;
  		compatible = "spi-flash";
@@ -49,7 +49,7 @@
  		reg = <0>;
  	};
 
-	qflash1: n25q512a at 1 {
+	qflash1: s25fs512s at 1 {
  		#address-cells = <1>;
  		#size-cells = <1>;
  		compatible = "spi-flash";
(quoted diff) +0 -0

b/board/freescale/ls2080ardb/ls2080ardb.c

Quoted 12 lines

board/freescale/ls2080ardb/ls2080ardb.c int checkboard(void) · line 75

Quoted 10 lines

index 210142c..9d21d1e 100644

board/freescale/ls2080ardb/ls2080ardb.c +0 -1
@@ -71,36 +71,27 @@ int checkboard(void)
  #ifdef CONFIG_TARGET_LS2081ARDB
  #ifdef CONFIG_FSL_QIXIS
  	sw = QIXIS_READ(arch);
-	printf("Board Arch: V%d, ", sw >> 4);
  	printf("Board version: %c, ", (sw & 0xf) + 'A');
 

What's the reason to drop "Board Arch"?

Based on feedback from board team, this is not required for RDB boards
Arch contains Qixis architecture version to use common Qixis image across multipl platforms. This field is relevant for QDS boards. For RDB boards it is always constant as '1'

Quoted 34 lines
Quoted 21 lines
board/freescale/ls2080ardb/ls2080ardb.c +2 -7
  	sw = QIXIS_READ(brdcfg[0]);
-	sw = (sw & QIXIS_QMAP_MASK) >> QIXIS_QMAP_SHIFT;
+	sw = sw  >> QIXIS_QMAP_SHIFT;
  	switch (sw) {
  	case 0:
+	case 4:
  		puts("boot from QSPI DEV#0\n");
-		puts("QSPI_CSA_1 mapped to QSPI DEV#1\n");
  		break;
  	case 1:
  		puts("boot from QSPI DEV#1\n");
-		puts("QSPI_CSA_1 mapped to QSPI DEV#0\n");
  		break;
  	case 2:
-		puts("boot from QSPI EMU\n");
-		puts("QSPI_CSA_1 mapped to QSPI DEV#0\n");
-		break;
  	case 3:
  		puts("boot from QSPI EMU\n");
-		puts("QSPI_CSA_1 mapped to QSPI DEV#1\n");

board/freescale/ls2080ardb/ls2080ardb.c int checkboard(void) · line 94

Quoted 10 lines
board/freescale/ls2080ardb/ls2080ardb.c +1 -4
-		break;
-	case 4:
-		puts("boot from QSPI DEV#0\n");
-		puts("QSPI_CSA_1 mapped to QSPI EMU\n");
  		break;
  	default:
  		printf("invalid setting of SW%u\n", sw);
  		break;
  	}
+	printf("FPGA: v%d.%d\n", QIXIS_READ(scver), QIXIS_READ(tagdata));

What are you changing in this function?

Quoted 1 line

York

Sw value is updated to sw = sw >> QIXIS_QMP_SHIFT
Instead of sw = (sw & QIXIS_QMAP_MASK) >> QIXIS_QMAP_SHIFT
Also With earlier version of prints, u-boot boot messages were confusing.
So, tried to make the bootlogs similar to Nor boot bootlogs to make them more user friendly.

Priyanka

#11 lore raw

PATCH 1/1 fsl/usb: enable errata-a010151 for ls2088a and ls2081a

In reply to Santan Kumar
---
 drivers/usb/common/fsl-errata.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/usb/common/fsl-errata.c +4 -0
index 338ac08..383a433 100644
@@ -198,6 +198,10 @@ bool has_erratum_a010151(void)
 #ifdef CONFIG_ARM64
 	case SVR_LS2080A:
 	case SVR_LS2085A:
+			/* fallthrough */
+	case SVR_LS2088A:
+			/* fallthrough */
+	case SVR_LS2081A:
 	case SVR_LS1046A:
 	case SVR_LS1012A:
 		return IS_SVR_REV(svr, 1, 0);
Signature · 1 line
1.9.1
Applied
#12 lore raw

PATCH 1/1 fsl/usb: enable errata-a010151 for ls2088a and ls2081a

Quoted 5 lines · Santan Kumar
---
  drivers/usb/common/fsl-errata.c | 4 ++++
  1 file changed, 4 insertions(+)

Applied to fsl-qoriq master. Thanks.

York

#13 lore raw

PATCH 1/1 soc/fsl-layerscape: Update SVR number for LS2081A and LS2041A

In reply to Santan Kumar

Update SVR as per the SOC document.
-LS2081A: 0x870919 -> 0x870918
-LS2041A: 0x870915 -> 0x870914

---
 arch/arm/include/asm/arch-fsl-layerscape/soc.h | 4 ++--
 drivers/pci/pcie_layerscape.h                  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/include/asm/arch-fsl-layerscape/soc.h +2 -2
index cc3b079..fae5730 100644
@@ -55,8 +55,8 @@ struct cpu_type {
 #define SVR_LS2084A		0x870910
 #define SVR_LS2048A		0x870920
 #define SVR_LS2044A		0x870930
-#define SVR_LS2081A		0x870919
-#define SVR_LS2041A		0x870915
+#define SVR_LS2081A		0x870918
+#define SVR_LS2041A		0x870914
 
 #define SVR_DEV_LS2080A		0x8701
 
drivers/pci/pcie_layerscape.h +2 -2
index 308b073..782e3ab 100644
@@ -118,8 +118,8 @@
 #define SVR_LS2084A		0x870910
 #define SVR_LS2048A		0x870920
 #define SVR_LS2044A		0x870930
-#define SVR_LS2081A		0x870919
-#define SVR_LS2041A		0x870915
+#define SVR_LS2081A		0x870918
+#define SVR_LS2041A		0x870914
 
 /* LS1021a PCIE space */
 #define LS1021_PCIE_SPACE_OFFSET	0x4000000000ULL
Signature · 1 line
1.9.1