All of lore.kernel.org
 help / color / mirror / Atom feed
From: Horatiu Vultur <horatiu.vultur@microchip.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/3] mips: mscc: use MSCC SPI flash driver for Luton
Date: Wed, 16 Jan 2019 13:07:55 +0100	[thread overview]
Message-ID: <1547640475-26939-4-git-send-email-horatiu.vultur@microchip.com> (raw)
In-Reply-To: <1547640475-26939-1-git-send-email-horatiu.vultur@microchip.com>

Update Luton DT and defconfig to use the new MSCC SPI flash driver.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
---
 arch/mips/dts/luton_pcb090.dts | 3 ++-
 arch/mips/dts/luton_pcb091.dts | 3 ++-
 configs/mscc_luton_defconfig   | 1 +
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/mips/dts/luton_pcb090.dts b/arch/mips/dts/luton_pcb090.dts
index 951d8da..55cf609 100644
--- a/arch/mips/dts/luton_pcb090.dts
+++ b/arch/mips/dts/luton_pcb090.dts
@@ -48,7 +48,8 @@
 &spi0 {
 	status = "okay";
 	spi-flash at 0 {
-		compatible = "spi-flash";
+		compatible = "mscc,luton-spi-flash", "spi-flash";
+		memory-map = <0x40000000 0x2000000>;
 		spi-max-frequency = <18000000>; /* input clock */
 		reg = <0>; /* CS0 */
 		spi-cs-high;
diff --git a/arch/mips/dts/luton_pcb091.dts b/arch/mips/dts/luton_pcb091.dts
index bf638b2..fe1d332 100644
--- a/arch/mips/dts/luton_pcb091.dts
+++ b/arch/mips/dts/luton_pcb091.dts
@@ -54,7 +54,8 @@
 &spi0 {
 	status = "okay";
 	spi-flash at 0 {
-		compatible = "spi-flash";
+		compatible = "mscc,luton-spi-flash", "spi-flash";
+		memory-map = <0x40000000 0x2000000>;
 		spi-max-frequency = <18000000>; /* input clock */
 		reg = <0>; /* CS0 */
 		spi-cs-high;
diff --git a/configs/mscc_luton_defconfig b/configs/mscc_luton_defconfig
index 7154e97..9e3efa1 100644
--- a/configs/mscc_luton_defconfig
+++ b/configs/mscc_luton_defconfig
@@ -69,3 +69,4 @@ CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_MSCC_BB_SPI=y
 CONFIG_LZMA=y
+CONFIG_MSCC_SPI_FLASH=y
-- 
2.7.4

      parent reply	other threads:[~2019-01-16 12:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-16 12:07 [U-Boot] [PATCH 0/3] mtd: spi: Add MSCC SPI flash driver Horatiu Vultur
2019-01-16 12:07 ` [U-Boot] [PATCH 1/3] mtd: spi: export functions to sf_internal.h Horatiu Vultur
2019-01-16 14:07   ` Daniel Schwierzeck
2019-01-17 12:13     ` Horatiu Vultur
2019-01-16 12:07 ` [U-Boot] [PATCH 2/3] mtd: spi: add MSCC SPI flash driver Horatiu Vultur
2019-01-16 12:07 ` Horatiu Vultur [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1547640475-26939-4-git-send-email-horatiu.vultur@microchip.com \
    --to=horatiu.vultur@microchip.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.