diff options
author | Jason M. Bills <jason.m.bills@linux.intel.com> | 2020-01-07 21:40:08 +0300 |
---|---|---|
committer | Jason M. Bills <jason.m.bills@linux.intel.com> | 2020-01-07 21:43:56 +0300 |
commit | 820013481a115100d5f8f22dc01aac8cc0363a23 (patch) | |
tree | 99cd46b66d5b9b97d38265d553f4fb60fee0d6a2 /meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0039-AST2500-increase-boot-speed.patch | |
parent | 965a056096e5e043748da8766fa50cb7afedb608 (diff) | |
download | openbmc-820013481a115100d5f8f22dc01aac8cc0363a23.tar.xz |
Update to internal 2020-01-07
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Diffstat (limited to 'meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0039-AST2500-increase-boot-speed.patch')
-rw-r--r-- | meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0039-AST2500-increase-boot-speed.patch | 44 |
1 files changed, 27 insertions, 17 deletions
diff --git a/meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0039-AST2500-increase-boot-speed.patch b/meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0039-AST2500-increase-boot-speed.patch index ce36b580e..d8ac50dbd 100644 --- a/meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0039-AST2500-increase-boot-speed.patch +++ b/meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0039-AST2500-increase-boot-speed.patch @@ -1,21 +1,29 @@ -From 1e9a4afdfa995e924f74139f620e8b2f985a705f Mon Sep 17 00:00:00 2001 +From b571713f51beb467eefae8e56bfea6e5eab48f8c Mon Sep 17 00:00:00 2001 From: James Feist <james.feist@linux.intel.com> Date: Tue, 10 Dec 2019 16:21:24 -0800 Subject: [PATCH 1/1] AST2500 increase boot speed -This hardcodes the IOMODE to x2 as that is the fastest -we support. +Enable CONFIG_FLASH_SPIx2_Dummy and add it to known +good SPI flashes. Signed-off-by: James Feist <james.feist@linux.intel.com> --- - arch/arm/mach-aspeed/flash.c | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) + arch/arm/mach-aspeed/flash.c | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-aspeed/flash.c b/arch/arm/mach-aspeed/flash.c -index d33fb9e0fe..31d2ef6001 100644 +index d33fb9e0fe..95fc46dd76 100644 --- a/arch/arm/mach-aspeed/flash.c +++ b/arch/arm/mach-aspeed/flash.c -@@ -730,7 +730,7 @@ static ulong flash_get_size (ulong base, flash_info_t *info) +@@ -34,6 +34,7 @@ + #include <asm/arch/ast_scu.h> + #include <asm/arch/aspeed.h> + ++#define CONFIG_FLASH_SPIx2_Dummy 1 + + /* + * This file implements a Common Flash Interface (CFI) driver for U-Boot. +@@ -730,7 +731,7 @@ static ulong flash_get_size (ulong base, flash_info_t *info) ulID = ((ulong)ch[0]) | ((ulong)ch[1] << 8) | ((ulong)ch[2] << 16) ; info->flash_id = ulID; @@ -24,17 +32,19 @@ index d33fb9e0fe..31d2ef6001 100644 /* init default */ info->iomode = IOMODEx1; -@@ -1258,6 +1258,10 @@ static ulong flash_get_size (ulong base, flash_info_t *info) - } /* JDEC */ - } - -+ info->readcmd = 0xbb; -+ info->dualport = 1; -+ info->iomode = IOMODEx2_dummy; -+ - sector = base; - for (j = 0; j < info->sector_count; j++) { +@@ -1035,6 +1036,12 @@ static ulong flash_get_size (ulong base, flash_info_t *info) + EraseClk = 25; + ReadClk = 50; + info->address32 = 1; ++#if defined(CONFIG_FLASH_SPIx2_Dummy) ++ info->readcmd = 0xbb; ++ info->dummybyte = 1; ++ info->dualport = 1; ++ info->iomode = IOMODEx2_dummy; ++#endif + break; + case SST25VF016B: -- 2.17.1 |