summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0006-SPI-Quad-IO-Mode.patch
diff options
context:
space:
mode:
authorJason M. Bills <jason.m.bills@linux.intel.com>2020-05-06 01:31:17 +0300
committerJason M. Bills <jason.m.bills@linux.intel.com>2020-05-14 21:54:34 +0300
commiteda2c7c523d858d25fe25052254a7f393767310b (patch)
tree7c14ec3de42b7fc6c86bc3b0f9ecb4b9f21a5d14 /meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0006-SPI-Quad-IO-Mode.patch
parent794d26fa53ad7e8cb54a3a5773436b1d8e813f35 (diff)
downloadopenbmc-eda2c7c523d858d25fe25052254a7f393767310b.tar.xz
Update to internal 0.53
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/0006-SPI-Quad-IO-Mode.patch')
-rw-r--r--meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0006-SPI-Quad-IO-Mode.patch105
1 files changed, 0 insertions, 105 deletions
diff --git a/meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0006-SPI-Quad-IO-Mode.patch b/meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0006-SPI-Quad-IO-Mode.patch
deleted file mode 100644
index 34d8b1abb..000000000
--- a/meta-openbmc-mods/meta-common/recipes-bsp/u-boot/files/0006-SPI-Quad-IO-Mode.patch
+++ /dev/null
@@ -1,105 +0,0 @@
-From c438edace30a3408c827faaae2d5004fe5ae010d Mon Sep 17 00:00:00 2001
-From: arun-pm <arun.p.m@linux.intel.com>
-Date: Fri, 29 Nov 2019 00:19:09 +0530
-Subject: [PATCH] SPI Quad IO Mode
-
-This commit adds quad IO mode in SPI driver for AST2600.
-
-Note:- Removed n25q00 Quad I/O support for the time being due to clock issue
- with chip 'Micron 8UA15 - rw182 (128MB)' while enabling Quad I/O mode.
----
- arch/arm/dts/ast2600-intel.dts | 6 ++----
- drivers/mtd/spi/spi-nor-ids.c | 7 ++++++-
- drivers/spi/aspeed_spi.c | 18 +++++++++++++++++-
- 3 files changed, 25 insertions(+), 6 deletions(-)
- mode change 100755 => 100644 drivers/spi/aspeed_spi.c
-
-diff --git a/arch/arm/dts/ast2600-intel.dts b/arch/arm/dts/ast2600-intel.dts
-index d16581c5811d..ab78b516b6a3 100644
---- a/arch/arm/dts/ast2600-intel.dts
-+++ b/arch/arm/dts/ast2600-intel.dts
-@@ -101,16 +101,14 @@
-
- &fmc {
- status = "okay";
--#if 0
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_fmcquad_default>;
--#endif
- flash@0 {
- compatible = "spi-flash", "sst,w25q256";
- status = "okay";
- spi-max-frequency = <40000000>;
-- spi-tx-bus-width = <2>;
-- spi-rx-bus-width = <2>;
-+ spi-tx-bus-width = <4>;
-+ spi-rx-bus-width = <4>;
- };
- };
-
-diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c
-index ad733e71988b..257ab472305c 100644
---- a/drivers/mtd/spi/spi-nor-ids.c
-+++ b/drivers/mtd/spi/spi-nor-ids.c
-@@ -164,7 +164,12 @@ const struct flash_info spi_nor_ids[] = {
- { INFO("n25q256ax1", 0x20bb19, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
- { INFO("n25q512a", 0x20bb20, 0, 64 * 1024, 1024, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
- { INFO("n25q512ax3", 0x20ba20, 0, 64 * 1024, 1024, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
-- { INFO("n25q00", 0x20ba21, 0, 64 * 1024, 2048, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) },
-+ /* Removed n25q00 Quad I/O support for the time being due to clock issue with chip 'Micron 8UA15 - rw182 (128MB)'
-+ * while enabling Quad I/O mode. As this chip is default shipped in platforms, marking it
-+ * as Not supported for the time being. Once all chips are replaced with the new model, this can be enabled
-+ * back(Note:- Certain other chips having same name(n25q00) but different part number has no issues).
-+ */
-+ { INFO("n25q00", 0x20ba21, 0, 64 * 1024, 2048, SECT_4K | USE_FSR | NO_CHIP_ERASE) },
- { INFO("n25q00a", 0x20bb21, 0, 64 * 1024, 2048, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) },
- { INFO("mt25qu02g", 0x20bb22, 0, 64 * 1024, 4096, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) },
- #endif
-diff --git a/drivers/spi/aspeed_spi.c b/drivers/spi/aspeed_spi.c
-old mode 100755
-new mode 100644
-index c7b998fadfde..930b18443a48
---- a/drivers/spi/aspeed_spi.c
-+++ b/drivers/spi/aspeed_spi.c
-@@ -16,6 +16,9 @@
- #include <linux/ioport.h>
-
- #define ASPEED_SPI_MAX_CS 3
-+#define AST2600A0 0x05000303
-+#define AST2600A0_MAX_FREQ 40000000
-+#define AST_MAX_FREQ 100000000
-
- struct aspeed_spi_regs {
- u32 conf; /* 0x00 CE Type Setting */
-@@ -1011,6 +1014,19 @@ static int aspeed_spi_bind(struct udevice *bus)
- return 0;
- }
-
-+static int aspeed_get_max_freq(void)
-+{
-+ u32 rev_id = readl(ASPEED_REVISION_ID);
-+
-+ /*Limit max spi frequency less than 50MHz on AST2600-A0 due
-+ * to FWSPICLK signal quality issue.
-+ */
-+ if(rev_id == AST2600A0)
-+ return AST2600A0_MAX_FREQ;
-+ else
-+ return AST_MAX_FREQ;
-+}
-+
- static int aspeed_spi_probe(struct udevice *bus)
- {
- struct resource res_regs, res_ahb;
-@@ -1041,7 +1057,7 @@ static int aspeed_spi_probe(struct udevice *bus)
- clk_free(&hclk);
-
- priv->max_hz = dev_read_u32_default(bus, "spi-max-frequency",
-- 100000000);
-+ aspeed_get_max_freq());
-
- priv->num_cs = dev_read_u32_default(bus, "num-cs", ASPEED_SPI_MAX_CS);
-
---
-2.7.4
-