Patchwork [U-Boot] board/bsc9131rdb: Add targets for Sysclk 100MHz

login
register
mail settings
Submitter Priyanka Jain
Date April 1, 2013, 6:42 a.m.
Message ID <1364798565-3021-1-git-send-email-Priyanka.Jain@freescale.com>
Download mbox | patch
Permalink /patch/232673/
State Accepted
Delegated to: Andy Fleming
Headers show

Comments

Priyanka Jain - April 1, 2013, 6:42 a.m.
BSC9131RDB supports Sysclk
-66MHz if jumper J16 is close (default state)
-100MHz if jumper J16 is open

Add targets
-BSC9131RDB_NAND_SYSCLK100 : for NAND boot at Sysclk 100MHz
-BSC9131RDB_SPIFLASH_SYSCLK100: for SPI boot at Sysclk 100MHz

Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
---
 Dependent on nand_spl patch set(0001-0006)
 http://patchwork.ozlabs.org/patch/229892/ to be present

 board/freescale/bsc9131rdb/README |    8 ++++++--
 boards.cfg                        |    2 ++
 include/configs/BSC9131RDB.h      |    4 ++++
 3 files changed, 12 insertions(+), 2 deletions(-)
Andy Fleming - June 21, 2013, 8:39 p.m.
On Mon, Apr 01, 2013 at 12:12:45PM +0530, Priyanka Jain wrote:
> BSC9131RDB supports Sysclk
> -66MHz if jumper J16 is close (default state)
> -100MHz if jumper J16 is open
> 
> Add targets
> -BSC9131RDB_NAND_SYSCLK100 : for NAND boot at Sysclk 100MHz
> -BSC9131RDB_SPIFLASH_SYSCLK100: for SPI boot at Sysclk 100MHz
> 
> Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
> Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
> 
> ---

Applied, thanks!

Andy

Patch

diff --git a/board/freescale/bsc9131rdb/README b/board/freescale/bsc9131rdb/README
index 065faa3..d7b2176 100644
--- a/board/freescale/bsc9131rdb/README
+++ b/board/freescale/bsc9131rdb/README
@@ -89,10 +89,14 @@  NAND boot
 Building U-boot
 --------------
 To build the u-boot for BSC9131RDB:
-1. NAND Flash
+1. NAND Flash with sysclk 66MHz(J16 on RDB closed, default)
 	make BSC9131RDB_NAND
-2. SPI Flash
+2. NAND Flash with sysclk 100MHz(J16 on RDB open)
+	make BSC9131RDB_NAND_SYSCLK100
+3. SPI Flash with sysclk 66MHz(J16 on RDB closed, default)
 	make BSC9131RDB_SPIFLASH
+4. SPI Flash with sysclk 100MHz(J16 on RDB open)
+	make BSC9131RDB_SPIFLASH_SYSCLK100
 
 Memory map
 -----------
diff --git a/boards.cfg b/boards.cfg
index eb44a94..02cbb2d 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -875,7 +875,9 @@  P5020DS_SPIFLASH	     powerpc     mpc85xx     corenet_ds          freescale
 P5020DS_SRIO_PCIE_BOOT          powerpc     mpc85xx     corenet_ds          freescale      -           P5020DS:SRIO_PCIE_BOOT_SLAVE,SYS_TEXT_BASE=0xFFF80000
 P5040DS                      powerpc     mpc85xx     corenet_ds          freescale
 BSC9131RDB_SPIFLASH          powerpc     mpc85xx     bsc9131rdb          freescale      -           BSC9131RDB:BSC9131RDB,SPIFLASH
+BSC9131RDB_SPIFLASH_SYSCLK100 powerpc     mpc85xx     bsc9131rdb          freescale      -           BSC9131RDB:BSC9131RDB,SPIFLASH,SYS_CLK_100
 BSC9131RDB_NAND              powerpc     mpc85xx     bsc9131rdb          freescale      -           BSC9131RDB:BSC9131RDB,NAND
+BSC9131RDB_NAND_SYSCLK100    powerpc     mpc85xx     bsc9131rdb          freescale      -           BSC9131RDB:BSC9131RDB,NAND,SYS_CLK_100
 BSC9132QDS_NOR_DDRCLK100     powerpc     mpc85xx     bsc9132qds          freescale      -           BSC9132QDS:BSC9132QDS,SYS_CLK_100_DDR_100
 BSC9132QDS_NOR_DDRCLK133     powerpc     mpc85xx     bsc9132qds          freescale      -           BSC9132QDS:BSC9132QDS,SYS_CLK_100_DDR_133
 BSC9132QDS_NAND_DDRCLK100    powerpc     mpc85xx     bsc9132qds          freescale      -           BSC9132QDS:BSC9132QDS,NAND,SYS_CLK_100_DDR_100
diff --git a/include/configs/BSC9131RDB.h b/include/configs/BSC9131RDB.h
index 73fdc84..baf190f 100644
--- a/include/configs/BSC9131RDB.h
+++ b/include/configs/BSC9131RDB.h
@@ -79,7 +79,11 @@ 
 #define CONFIG_ENV_OVERWRITE
 
 #define CONFIG_DDR_CLK_FREQ	66666666 /* DDRCLK on 9131 RDB */
+#if defined(CONFIG_SYS_CLK_100)
+#define CONFIG_SYS_CLK_FREQ    100000000 /* SYSCLK for 9131 RDB */
+#else
 #define CONFIG_SYS_CLK_FREQ	66666666 /* SYSCLK for 9131 RDB */
+#endif
 
 #define CONFIG_HWCONFIG
 /*