diff options
author | Ed Tanous <ed.tanous@intel.com> | 2019-04-15 23:42:44 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2019-04-17 19:13:25 +0300 |
commit | 816d793003e93c1e5eec0a2e90fbd8b9dde9f7a5 (patch) | |
tree | 341534fed9a2de460ded7f8231ca1cbb178bb2ca /meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0018-Add-support-for-Macronix-and-Micron-1Gbits-SPI-flash.patch | |
parent | a75bff085ba9443315222231c42692745e5781e9 (diff) | |
download | openbmc-816d793003e93c1e5eec0a2e90fbd8b9dde9f7a5.tar.xz |
Update 4-15-19
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0018-Add-support-for-Macronix-and-Micron-1Gbits-SPI-flash.patch')
-rw-r--r-- | meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0018-Add-support-for-Macronix-and-Micron-1Gbits-SPI-flash.patch | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0018-Add-support-for-Macronix-and-Micron-1Gbits-SPI-flash.patch b/meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0018-Add-support-for-Macronix-and-Micron-1Gbits-SPI-flash.patch index b96211118..2ed297a96 100644 --- a/meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0018-Add-support-for-Macronix-and-Micron-1Gbits-SPI-flash.patch +++ b/meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0018-Add-support-for-Macronix-and-Micron-1Gbits-SPI-flash.patch @@ -1,4 +1,4 @@ -From 5f2a7c03c877454eb78a406934abf6b7d05e40a6 Mon Sep 17 00:00:00 2001 +From 0039c15251a7fcf60154d59933a11d9e17b04d5c Mon Sep 17 00:00:00 2001 From: Jae Hyun Yoo <jae.hyun.yoo@intel.com> Date: Thu, 6 Dec 2018 18:49:04 -0800 Subject: [PATCH] Add support for Macronix and Micron 1Gbits SPI flash @@ -7,27 +7,25 @@ Quick fix to support Macronix and Micron 1Gbits SPI. Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@intel.com> --- - arch/arm/mach-aspeed/flash.c | 32 ++++++++++++++++++++++++++++++++ - 1 file changed, 32 insertions(+) + arch/arm/mach-aspeed/flash.c | 33 ++++++++++++++++++++++++++++++++- + 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-aspeed/flash.c b/arch/arm/mach-aspeed/flash.c -index f9f1345523d4..abc0420176a6 100644 +index dece4315d755..2a31b6503a22 100644 --- a/arch/arm/mach-aspeed/flash.c +++ b/arch/arm/mach-aspeed/flash.c -@@ -79,6 +79,8 @@ flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* FLASH chips info */ +@@ -79,6 +79,7 @@ flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* FLASH chips info */ #define MX25L12805D 0x1820C2 #define MX25L25635E 0x1920C2 #define MX66L51235F 0x1A20C2 +#define MX66L1G45G 0x1B20C2 -+#define MT25QL01GB 0x21BA20 #define SST25VF016B 0x4125bf #define SST25VF064C 0x4b25bf #define SST25VF040B 0x8d25bf -@@ -977,6 +979,36 @@ static ulong flash_get_size (ulong base, flash_info_t *info) +@@ -978,6 +979,35 @@ static ulong flash_get_size (ulong base, flash_info_t *info) #endif break; -+ case MT25QL01GB: + case MX66L1G45G: + erase_region_size = 0x10000; + info->readcmd = 0x0b; @@ -60,6 +58,16 @@ index f9f1345523d4..abc0420176a6 100644 case MX25L12805D: info->sector_count = 256; info->size = 0x1000000; +@@ -1093,7 +1123,8 @@ static ulong flash_get_size (ulong base, flash_info_t *info) + info->readcmd = 0x0b; + info->dualport = 0; + info->dummybyte = 1; +- info->buffersize = 1; ++ info->buffersize = 256; ++ info->address32 = 1; + WriteClk = 50; + EraseClk = 25; + ReadClk = 50; -- 2.7.4 |