Move usb device-tree fixup framework from ehci-fsl.c to common place so
that it can be used by other drivers as well (xhci-fsl.c).
Signed-off-by: Ramneek Mehresh
Signed-off-by: Sriram Dash
---
Changes in v5:
- No update
Changes in v4:
- Retain copyright info
- Remove #include from fsl-dt-f
Call fdt_usb_get_node_type() from fdt_fixup_usb_mode_phy_type() to
avoid code duplication.
Signed-off-by: Sriram Dash
Signed-off-by: Rajesh Bhagat
---
Changes in v5:
- reorder the functions and gets rid of the forward declaration
Changes in v4:
- Make minimal modification to code
Changes in
Use int as it is native (and widely used) return type.
Signed-off-by: Sriram Dash
Signed-off-by: Rajesh Bhagat
---
Changes in v5:
- Modified title and description
- Using error codes for return type.
drivers/usb/common/fsl-dt-fixup.c | 25 ++---
1 file changed, 14 inser
Enables usb device-tree fixup code to incorporate xhci controller
Signed-off-by: Ramneek Mehresh
Signed-off-by: Sriram Dash
---
Changes in v5:
- Make the array static const
Changes in v4:
- Use a terminating entry in the array for getting node type for controller
Changes in v3:
- Modify th
The RTL8211C found on the A20-OlinuXino-Lime2 does not word in slave
mode. This patch disables master/slave mode autonegotiation and forces
master mode.
The RTL8211C identifies itself as RTL8211B via its UID. This patch uses
the revision number taken from the PHYID2 register to distinguish the
two
This patch is an RFC based on recent discussions. It's only lightly
tested. I have yet to verify that the registers are being set correctly.
I'm sending it out now because I have to leave for today.
Michael
Michael Haas (1):
net: phy: Force master mode for RTL8211C
drivers/net/phy/realtek.
On 03/22/2016 08:10 AM, Sriram Dash wrote:
> Enables usb device-tree fixup code to incorporate xhci controller
>
> Signed-off-by: Ramneek Mehresh
> Signed-off-by: Sriram Dash
> ---
> Changes in v5:
> - Make the array static const
> Changes in v4:
> - Use a terminating entry in the array for
On 03/22/2016 08:10 AM, Sriram Dash wrote:
> Call fdt_usb_get_node_type() from fdt_fixup_usb_mode_phy_type() to
> avoid code duplication.
>
> Signed-off-by: Sriram Dash
> Signed-off-by: Rajesh Bhagat
Acked-by: Marek Vasut
Best regards,
Marek Vasut
_
On 03/22/2016 08:10 AM, Sriram Dash wrote:
> Move usb device-tree fixup framework from ehci-fsl.c to common place so
> that it can be used by other drivers as well (xhci-fsl.c).
>
> Signed-off-by: Ramneek Mehresh
> Signed-off-by: Sriram Dash
Acked-by: Marek Vasut
Best regards,
Marek Vasut
___
On 03/22/2016 08:10 AM, Sriram Dash wrote:
> Use int as it is native (and widely used) return type.
What do you mean by "int ... is native (and widely used) return type" ?
It's just a signed type, that's all there is to it.
> Signed-off-by: Sriram Dash
> Signed-off-by: Rajesh Bhagat
[...]
Be
Makes usb device-tree fixup independent of Controller type. This enables the
usage of device-tree fixup as a common framework for EHCI and XHCI controllers
Sriram Dash (4):
drivers:usb:common:fsl-dt-fixup: Move device-tree fixup framework to
common file
drivers:usb:common:fsl-dt-fixup: Rem
Some of the SPI device drivers at drivers/spi not a real
spi controllers, Unlike normal/generic SPI controllers they
operates only with SPI-NOR flash devices. these were technically
termed as SPI-NOR controllers, Ex: drivers/spi/fsl_qspi.c
The problem with these were resides at drivers/spi is enti
Added Kconfig entry for MTD_M25P80
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/Kconfig | 15 +++
1 file changed, 15 insertions(+)
create mode 100644 drivers/mtd/spi-nor/Kconfig
This is MTD SPI-NOR driver for ST M25Pxx (and similar)
serial flash chips which is written as MTD_UCLASS.
More features will be adding on further patches.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
Makefile
Some of the SPI device drivers at drivers/spi not a real
spi controllers, Unlike normal/generic SPI controllers they
operates only with SPI-NOR flash devices. these were technically
termed as SPI-NOR controllers, Ex: drivers/spi/fsl_qspi.c
The problem with these were resides at drivers/spi is enti
Since m25p80 follows similar naming convention as Linux,
hence added jedec, spi-nor device tree bindings from Linux.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
doc/device-tree-bindings/mtd/jedec,spi-nor.txt |
Added kconfig entry for MTD_SPI_NOR_USE_4K_SECTORS.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/Kconfig | 14 ++
1 file changed, 14 insertions(+)
diff --git a/drivers/mtd/spi-no
Added kconfig entry for MTD_SPI_NOR
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/Kconfig | 18 ++
1 file changed, 18 insertions(+)
diff --git a/drivers/mtd/spi-nor/Kconfig b/
While probing spi-nor in SPL spi_flash_probe is needed,
so add the flash probe code in spi-nor-probe.c
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/spi-nor-probe.c | 15 +++
inclu
env_sf need to free the flash while read error, so
add the flash probe code in spi-nor-probe.c
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/spi-nor-probe.c | 7 +++
include/spi_flash.h
This patch adds mtd_info support to spi-nor core instead
of using legacy spi_flash{}.
SPI-NOR with MTD:
--
cmd_sf.c
--
MTD core
--
spi-nor.c
This patch adds driver-model probe from cmd_sf through
MTD_DM_SPI_NOR which is depends on MTD and DM_SPI uclass.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
cmd/sf.c| 4 ++--
common
m25p80 is flash interface for spi-nor core and drivers/spi
so add spi_nor{} functionalities like
- allocate spi_nor{}
- basic initilization
- install hooks
- call to spi-nor core, using spi_nor_scan
- register with mtd core
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Si
Like adding spi_nor support for dm-driven code in m25p80
add the same way for non-dm code as well.
- allocate spi_nor{}
- basic initilization
- install hooks
- call to spi-nor core, using spi_nor_scan
- register with mtd core
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc:
For computing proper sector_size the below patch
assigned erase_size which is a proper sector
computation size, so this patch directly used
erasesize instead of assignment.
"sf: Fix to compute proper sector_size"
(sha1: c650ca7b4c160193791dc7a52381c71c6a29e871)
Cc: Simon Glass
Cc: Bin Meng
Cc: M
erasesize name looks similar as the way mtd_info{}
used so renamed erase_size to erasesize and more over
the spi-flash will use mtd in future patches.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi
To sync with size in mtd_info{} this patch change
data type of size to uint64_t
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
cmd/sf.c| 4 ++--
include/spi_flash.h | 2 +-
2 files changed, 3 insertion
Since spi-nor is using mtd layer for flash operations
this patch used mtd ops from user commands instead of
legacy spi_flash{} ops.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
include/spi_flash.h | 60 +
Copy spl files from drivers/mtd/spi to spi-nor,
more changes will added on future patches.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/Makefile | 5 +++
drivers/mtd/spi-nor/fsl_espi_s
Since spi_read_then_write is doing spi operations like
setting up commands, tx and rx through spi_xfer, So
it is meanfull to have this definition at spi layer and
flash layer should use this whenever required.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasa
Renamed SPI_FLASH_BAR to SPI_NOR_BAR
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/spi-nor.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/mtd/spi-
spi_flash_t same typedef alias name for spi_flash
and mtd_info so which one will use based on the
user config definition.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
cmd/sf.c| 10 +-
common/
Since spi_read_then_write moved into spi layer,
the meaning of data transfer is also change from
read_then_write to write_then_read, this means
first spi will write the opcode through and then
read the respective buffer.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva
Added kconfig entry for SPI_NOR_BAR
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/Kconfig | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/s
Use ascending order while including headers files.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/fsl_espi_spl.c | 2 +-
drivers/mtd/spi-nor/spi_spl_load.c | 2 +-
2 files changed, 2 insertions
Replace spi_flash{} with mtd_info{}
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/fsl_espi_spl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/spi-nor/fsl
On 03/22/2016 08:19 AM, Michael Haas wrote:
> The RTL8211C found on the A20-OlinuXino-Lime2 does not word in slave
> mode. This patch disables master/slave mode autonegotiation and forces
> master mode.
>
> The RTL8211C identifies itself as RTL8211B via its UID. This patch uses
> the revision numbe
Replace spi_flash{} with mtd_info{}
Cc: Simon Glass
Cc: Bin Meng
Cc: York Sun
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/fsl_espi_spl.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/spi-nor/fsl_espi_spl.c
b/drivers/mtd/spi-nor/fsl_espi_spl.c
ind
Replace spi_flash{} with mtd_info{}
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/spi_spl_load.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/spi-nor/sp
Add SPL support for SPI-NOR flash.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/Makefile b/drivers/Makefile
index e7eab66..1d179b9 100
Drop using legacy DM_SPI_FLASH.
Cc: Simon Glass
Cc: Bin Meng
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
arch/arm/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 1e92be0..b22a04f 100644
--- a/arch/arm/Kcon
Since SPI-NOR core relies on MTD uclass.
Cc: Simon Glass
Cc: Bin Meng
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
arch/arm/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index e5f57ef..1e92be0 100644
--- a/arc
Added flash vendor kconfig entries from drivers/mtd/spi
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/Kconfig | 40
1 file changed, 40 insertions(+)
d
Flash id detection should be the first step to enumerate
the connected flash on the board, once ie done checking
with respective id codes locally in the driver all this
should be part of jedec_probe instead of id detection and
validated through flash_info{} table separatly.
Cc: Bin Meng
Cc: Simon
This patch fixed the add_dataflash return logic,
so-that it can handle both jedec and older chips
same as Linux.
Cc: Bin Meng
Cc: Simon Glass
Cc: York Sun
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/sf_dataflash.c | 127 ++---
1 file changed, 61 insertion
Copy sf_dataflash.c from drivers/mtd/spi to spi-nor,
more changes will see on future patches.
Cc: Bin Meng
Cc: Simon Glass
Cc: York Sun
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/sf_dataflash.c | 701 +
1 file changed, 701 insertions(+)
create mode
dataflash doesn't require options, memory_map from spi.
Cc: Bin Meng
Cc: Simon Glass
Cc: York Sun
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/sf_dataflash.c | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/mtd/spi-nor/sf_dataflash.c
b/drivers/mtd/spi-nor
This patch replace the dataflash driver from SPI_FLASH
uclass to MTD UCLASS along with the support of mtd opertaions.
Cc: Bin Meng
Cc: Simon Glass
Cc: York Sun
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/sf_dataflash.c | 214 ++---
1 file changed, 107 ins
Use spi_write_then_read call from spi layer for
dataflash write and then read calling.
Cc: Bin Meng
Cc: Simon Glass
Cc: York Sun
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/sf_dataflash.c | 21 +++--
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/drivers
Drop using sf_internal.h and get the RDID from spi-nor.h
Cc: Bin Meng
Cc: Simon Glass
Cc: York Sun
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/sf_dataflash.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/spi-nor/sf_dataflash.c
b/drivers/mtd/spi-no
- rename spi_dataflash to mtd_dataflash
- fix single line comments
- remove unneeded spaces
- ascending order of include files
- rename spi_dataflash_* to dataflash_*
- rename SPI DATAFLASH to dataflash
- rename SPI DataFlash to dataflash
- return NULL replaced with error code
Cc: Bin Meng
Cc: Si
Added kconfig entry for MTD_DATAFLASH
Cc: Bin Meng
Cc: Simon Glass
Cc: York Sun
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/Kconfig | 15 +++
1 file changed, 15 insertions(+)
diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig
index a035fd3..f2bd630 10064
mtd_dataflash driver almost similar to Linux, so rename the
CONFIG_SPI_DATAFLASH_WRITE_VERIFY => CONFIG_MTD_DATAFLASH_WRITE_VERIFY
Cc: Bin Meng
Cc: Simon Glass
Cc: York Sun
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/mtd_dataflash.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions
Since dataflash driver is using mtd_info core
functionalities this patch renames file and
config name similar way as Linux.
Cc: Bin Meng
Cc: Simon Glass
Cc: York Sun
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/Makefile| 1 +
drivers/mtd/spi-nor/{sf_dataflash.
Added kconfig entry for MTD_DATAFLASH_WRITE_VERIFY
Cc: Bin Meng
Cc: Simon Glass
Cc: York Sun
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/Kconfig | 10 ++
1 file changed, 10 insertions(+)
diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig
index f2bd630..12dce
Dropped DM_SPI_FLASH and SPI_FLASH_DATAFLASH
Cc: Bin Meng
Cc: Simon Glass
Cc: York Sun
Signed-off-by: Jagan Teki
---
include/configs/ls1021aqds.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/include/configs/ls1021aqds.h b/include/configs/ls1021aqds.h
index d7025f6..b5415f4 100644
---
Enable CONFIG_MTD_DATAFLASH
Cc: Bin Meng
Cc: Simon Glass
Cc: York Sun
Signed-off-by: Jagan Teki
---
configs/ls1021aqds_qspi_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/ls1021aqds_qspi_defconfig
b/configs/ls1021aqds_qspi_defconfig
index 32a8662..ce4b677 100644
--- a/
Since sandbox moved to use spi-nor layer, this patch
replaced the header changes from sf_internal.h to
mtd/spi-nor.h
Cc: Simon Glass
Cc: Bin Meng
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/sandbox.c | 46 +--
1 file changed, 23 insertions(+), 23 d
Enable SPI-NOR with MTD uclass.
Cc: Bin Meng
Cc: Simon Glass
Cc: York Sun
Signed-off-by: Jagan Teki
---
configs/ls1021aqds_qspi_defconfig | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/configs/ls1021aqds_qspi_defconfig
b/configs/ls1021aqds_qspi_defconfig
index 025fd4e
Copy sandbox.c from drivers/mtd/spi to spi-nor,
more changes will added on future patches.
Cc: Simon Glass
Cc: Bin Meng
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/sandbox.c | 703 ++
1 file changed, 703 insertions(+)
create mode 100644 drivers/mt
To follow spi-nor notation replaced CONFIG_SPI_FLASH_SANDBOX
with CONFIG_SPI_NOR_SANDBOX.
Cc: Simon Glass
Cc: Bin Meng
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/Kconfig | 10 ++
drivers/mtd/spi-nor/Makefile | 1 +
2 files changed, 11 insertions(+)
diff --git a/drivers/mtd/sp
Use CONFIG_DM_MTD_SPI_NOR instead of CONFIG_DM_SPI_FLASH
Cc: Simon Glass
Cc: Bin Meng
Signed-off-by: Jagan Teki
---
test/dm/spi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/dm/spi.c b/test/dm/spi.c
index 2e27da7..f234c80 100644
--- a/test/dm/spi.c
+++ b/test/dm/sp
This patch fix the id exctract from spi_nor_info ids.
Cc: Simon Glass
Cc: Bin Meng
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/sandbox.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/spi-nor/sandbox.c b/drivers/mtd/spi-nor/sandbox.c
index cc7b2a4..8bd0
Since new spi-nor using m25p80 as a driver name for
probing flash chip using spi_get_bus_and_cs, hence
replace the 'spi_flash_std' with 'm25p80
Cc: Simon Glass
Cc: Bin Meng
Signed-off-by: Jagan Teki
---
test/dm/spi.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tes
- CONFIG_DM_SPI_FLASH
+ CONFIG_MTD
+ CONFIG_MTD_M25P80
+ CONFIG_MTD_SPI_NOR
+ CONFIG_SPI_NOR_SANDBOX
Replace CONFIG_SPI_FLASH with CONFIG_MTD_SPI_NOR
Cc: Simon Glass
Cc: Bin Meng
Signed-off-by: Jagan Teki
---
arch/Kconfig | 2 +-
configs/sandbox_defconfig | 5 +++--
dri
Use CONFIG_DM_MTD_SPI_NOR instead of CONFIG_DM_SPI_FLASH
Cc: Simon Glass
Cc: Bin Meng
Signed-off-by: Jagan Teki
---
test/dm/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/dm/Makefile b/test/dm/Makefile
index df2d71f..ae8e5c2 100644
--- a/test/dm/Makefile
+++
Use spi-nor flash driver compatible string as 'jedec,spi-nor'
instead of spi-flash
Cc: Simon Glass
Cc: Bin Meng
Signed-off-by: Jagan Teki
---
arch/sandbox/dts/test.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
inde
Since spi-nor flash is part of MTD uclass, so replaced
UCLASS_SPI_FLASH with UCLASS_MTD and use respective
spi_flash operations as well.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
arch/arm/mach-rockchip/rk3288
Use spi_flash_t instead of struct spi_flash.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
board/Arcturus/ucp1020/cmd_arc.c | 2 +-
board/Synology/ds414/cmd_syno.c | 2 +-
board/buffalo/lsxl/lsxl
Use zynq qspi driver for zynq zc770_xm013 board.
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
configs/zynq_zc770_xm013_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/zynq_zc770_xm013_defconfig
b/configs/zynq_zc770_xm013_defconfig
index 9
Since mtd support is part of spi-nor core, hence
removed legacy defines.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
include/configs/aristainetos-common.h | 1 -
include/configs/gw_ventana.h | 1 -
inc
Replace legacy CONFIG_SPI_FLASH with CONFIG_MTD_SPI_NOR
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
board/davinci/da8xxevm/da850evm.c | 2 +-
common/splash_source.c| 2 +-
2 files changed, 2 inserti
The flash chips vendors like
- Atmel
- EON
- ESMT
- Everspin
- Fujitsu
- GigaDevice
- Intel
- ISSI
- PMC
- non-JEDEC
have shared most of the spi-nor core code, so group
all of them into a common config CONFIG_SPI_NOR_MISC
this certainly reduced the individual chip configs.
Cc: Simon Glass
Cc: Bi
CONFIG_SPI_FLASH_ATMEL
CONFIG_SPI_FLASH_EON
CONFIG_SPI_FLASH_GIGADEVICE
CONFIG_SPI_FLASH_ISSI
All these configs are grouped in CONFIG_SPI_NOR_MISC
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
configs/C29XPCIE_N
For spi_set_speed this patch unnecessarily using
spi_flash.h instead of spi.h
"powerpc/mpc85xx: Add board support for ucp1020"
(sha1: 8b0044ff5942943eaa49935f49d5006b346a60f8)
So, fix this by using spi.h instead of spi_flash.h
Cc: York Sun
Cc: Oleksandr G Zhadan
Cc: Michael Durrant
Signed-off-
Drop using UCLASS_SPI_FLASH, spi-nor flash is part
of MTD uclass now.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
include/dm/uclass-id.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/dm/uclass-id.h
mp2580 will take care of tx and rx mode's so there is
no need to differentiate these into spi layer level
hence replaced all mode_rx macros with mode.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi
SPI_RX_FAST at spi layer used for spi-nor core to find
the fastest read mode, but this handling is taking care
at m25p80 hence removed the same at spi layer level.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
in
- CONFIG_SPI_FLASH_BAR
+ CONFIG_SPI_NOR_BAR
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
configs/alt_defconfig | 2 +-
configs/am437x_sk_evm_defconfig | 2 +-
configs/am43xx_evm_defconfig
Cc: Simon Glass
Cc: Bin Meng
Signed-off-by: Jagan Teki
---
MAINTAINERS | 10 +-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 3a9c205..c46d54d 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -393,7 +393,15 @@ M: Jagan Teki
S: Maintained
- CONFIG_SPI_FLASH_USE_4K_SECTORS
+ CONFIG_MTD_SPI_NOR_USE_4K_SECTORS
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
configs/socfpga_arria5_defconfig | 2 +-
configs/socfpga_cyclone5_defconfig | 2 +-
configs/so
Added spi_nor erase ops for m25p80.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/m25p80.c | 27 +++
drivers/mtd/spi-nor/spi-nor.c | 2 +-
include/linux/mtd/spi-nor.h
Use spi-nor flash driver node name as 'spi-nor'
instead of spi-flash
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
arch/arm/dts/armada-388-clearfog.dts | 2 +-
arch/arm/dts/armada-388-gp.dts| 2 +
Dummy byte(s) are need to send followed by address opcode
for read operation, and that dummy byte(s) not required
to malloc as well memset.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/spi-no
It's required to handling opcode in spi drivers
interface layer, m25p80 from spi-nor, becuase some
spi-nor controller drivers like fsl_qspi have separate
opcode's to handling the same operations.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Si
opcode handling is part of spi_nor_addr routine, since
it's been part of m25p80 so rename the function related
to that file name.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/m25p80.c | 8 +++
Added m25p_cmdsz for finding command size based on
the addr_width.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/m25p80.c | 15 +++
1 file changed, 11 insertions(+), 4 deletions(-)
addr_width is required to configure the flash
with 3 and 4 byte addressing, more features
will add in future patches.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/m25p80.c | 17 +
read_dummy refered as dummy cycles and dummy bytes
will findout during read operations.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/m25p80.c | 9 ++---
drivers/mtd/spi-nor/spi-nor.c | 4
For more readability use addr instead of offset.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/spi-nor.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/s
Used write operation address variable as 'to' instead
of 'offset' for more readability.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/spi-nor.c | 32
1 file ch
Use spi-nor flash driver compatible string as 'jedec,spi-nor'
instead of spi-flash
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
arch/arm/dts/am437x-sk-evm.dts | 2 +-
arch/arm/dts/dra7-evm.dts
Use opcode instead of cmd, for more readability.
Cc: Simon Glass
Cc: Bin Meng
Cc: Mugunthan V N
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
Signed-off-by: Jagan Teki
---
drivers/mtd/spi-nor/m25p80.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers
To make it take effect to enable MTD driver model for SPI-NOR.
Cc: York Sun
Signed-off-by: Gong Qianyu
Signed-off-by: Jagan Teki
---
configs/ls1043aqds_defconfig | 1 +
configs/ls1043aqds_lpuart_defconfig | 1 +
configs/ls1043aqds_nand_defconfig| 1 +
configs/ls1043aqd
From: Alison Wang
As QSPI driver is supported in ls1021atwr_sdcard_qspi_defconfig,
CONFIG_MTD needs to be enabled for SPI-NOR with MTD uclass.
Cc: York Sun
Cc: Jagan Teki
Signed-off-by: Alison Wang
Signed-off-by: Jagan Teki
---
configs/ls1021atwr_sdcard_qspi_defconfig | 1 +
1 file changed,
+ CONFIG_MTD
Cc: York Sun
Cc: Alison Wang
Signed-off-by: Jagan Teki
---
configs/ls1021aqds_sdcard_qspi_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/ls1021aqds_sdcard_qspi_defconfig
b/configs/ls1021aqds_sdcard_qspi_defconfig
index 9a06631..054c5ff 100644
--- a/configs/
+ CONFIG_MTD_DATAFLASH
Cc: York Sun
Cc: Alison Wang
Signed-off-by: Jagan Teki
---
configs/ls1021aqds_sdcard_qspi_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/ls1021aqds_sdcard_qspi_defconfig
b/configs/ls1021aqds_sdcard_qspi_defconfig
index 054c5ff..25ab3ee 100644
---
On Tuesday 22 March 2016 01:17 PM, Jagan Teki wrote:
On Tuesday 22 March 2016 01:07 PM, Jagan Teki wrote:
Some of the SPI device drivers at drivers/spi not a real
spi controllers, Unlike normal/generic SPI controllers they
operates only with SPI-NOR flash devices. these were technically
termed a
This patch is an RFC based on recent discussions. It's only lightly
tested. I have yet to verify that the registers are being set correctly.
I'm sending it out now because I have to leave for today.
Note that this patch requires Karsten Merkers '[PATCH] net: phy: Realtek
RTL8211B/C PHY ID fix'.
On Tuesday 22 March 2016 01:07 PM, Jagan Teki wrote:
Some of the SPI device drivers at drivers/spi not a real
spi controllers, Unlike normal/generic SPI controllers they
operates only with SPI-NOR flash devices. these were technically
termed as SPI-NOR controllers, Ex: drivers/spi/fsl_qspi.c
The
1 - 100 of 234 matches
Mail list logo