enable net driver model for k2e evm as keystone_net supports
driver model
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
configs/k2e_evm_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/k2e_evm_defconfig b/configs/k2e_evm_defconfig
index 9fb9dac..5616be9
All the clocks which has to be enabled has to be done in
enable_basic_clocks(), so moving enable sata clock to common
clocks enable function.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
arch/arm/cpu/armv7/omap-common/sata.c | 23 ---
arch/arm/cpu/armv7
/~mugunthanvnm/ti-u-boot/mugunth-ti-u-boot.git dm-sata
Mugunthan V N (6):
arm: omap: sata: move enable sata clocks to enable_basic_clocks()
dm: implement a SATA uclass
arm: omap-common: sata: prepare driver for DM conversion
drivers: block: dwc_ahci: Implement a driver for Synopsys DWC sata
Implement a sata driver for Synopsys DWC sata device based on
U-boot driver model.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
arch/arm/cpu/armv7/omap-common/sata.c | 2 +
drivers/block/Kconfig | 7
drivers/block/Makefile| 1 +
drivers
Enable sata driver model for dra72_evm as dwc_ahci supports
driver model
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
configs/dra72_evm_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configs/dra72_evm_defconfig b/configs/dra72_evm_defconfig
index b57ecca..b
Prepare sata driver for DM conversion by abstracting sata phy
init to seperate function.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
arch/arm/cpu/armv7/omap-common/sata.c | 13 +
include/sata.h| 2 ++
2 files changed, 11 insertions(+), 4 del
Enable sata driver model for dra74_evm as dwc_ahci supports
driver model
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
configs/dra74_evm_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configs/dra74_evm_defconfig b/configs/dra74_evm_defconfig
index 6e5a705..1
Implement a SATA uclass that can represent a SATA controller.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
drivers/block/Kconfig | 10 +++
drivers/block/Makefile | 2 ++
drivers/block/sata-uclass.c | 69 +
include/dm/
On Monday 18 January 2016 02:53 PM, Bin Meng wrote:
> +Simon
>
> On Mon, Jan 18, 2016 at 4:47 PM, Mugunthan V N <mugunthan...@ti.com> wrote:
>> Implement a SATA uclass that can represent a SATA controller.
>>
>> Signed-off-by: Mugunthan V N <mugunthan...@ti.c
On Saturday 16 January 2016 09:33 PM, Mugunthan V N wrote:
> Adding timer init function in timer-uclass driver to create and
> initialize the timer device on platforms where u-boot,dm-pre-reloc
> is not used. Since there will be multiple timer devices in the
> system, adding a tic
On Saturday 16 January 2016 10:11 PM, Simon Glass wrote:
> Hi Mugunthan,
>
> On 16 January 2016 at 09:08, Mugunthan V N <mugunthan...@ti.com> wrote:
>> On Saturday 16 January 2016 09:33 PM, Mugunthan V N wrote:
>>> Adding timer init function in timer-uclass drive
-boot.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
doc/device-tree-bindings/chosen.txt | 43
drivers/timer/timer-uclass.c| 44 +
include/timer.h | 9
lib/
().
Also remove reinitializing of ret in timer_init().
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
Tested this patch on dra74x evm. and pushed a branch [2].
[1] - http://pastebin.ubuntu.com/14524076/
[2] - git://git.ti.com/~mugunthanvnm/ti-u-boot/mugunth-ti-u-boot.git
dm-tim
On Wednesday 06 January 2016 05:54 AM, Simon Glass wrote:
> Hi Mugunthan,
>
> On 23 December 2015 at 09:42, Mugunthan V N <mugunthan...@ti.com> wrote:
>> Implement a DMA uclass so that the devices like ethernet, spi,
>> mmc etc can offload the data transfers from/
enable spi driver model for am437x_sk_evm as usb xhci-omap
supports driver model
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
configs/am437x_sk_evm_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configs/am437x_sk_evm_defconfig b/configs/am437x_sk_evm_defconfig
OxBFF87E5E
board_init_r(struct global_data *, unsigned long)() at board_r.c:976 OxBFF63EB8
OxBFF6194C (no symbols are defined for OxBFF6194C)
[1]: git://git.ti.com/~mugunthanvnm/ti-u-boot/mugunth-ti-u-boot.git dm-usb-rfc
[2]: http://pastebin.ubuntu.com/14398751/
Mugunthan V N (4):
configs: am43xx
Adopt usb xhci-omap to driver model
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
drivers/usb/host/xhci-omap.c | 77
1 file changed, 77 insertions(+)
diff --git a/drivers/usb/host/xhci-omap.c b/drivers/usb/host/xhci-omap.c
index f
Currently USB is enabled only when boot from USB host mode.
Enable USB for U-boot so that Kernel/U-boot binaries can be
loaded from USB for update or booting.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
include/configs/am43xx_evm.h | 3 ++-
1 file changed, 2 insertions(+), 1 de
since dwc3 node can support both host and device mode, but U-boot
driver for host and device are separate driver, adding host
compatible for host usb node.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
arch/arm/dts/am4372.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
s/mtd/spi/sf_internal.h | 5 +-
> drivers/mtd/spi/spi_flash.c | 446
> +++---
> include/linux/err.h | 5 +
> 4 files changed, 383 insertions(+), 77 deletions(-)
>
Tested this series on AM437x SK and DRA74 EVM.
Tes
gt; to flash.
$sub and commit: s/convension/convention
Regards
Mugunthan V N
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
On Monday 28 December 2015 08:19 PM, Jagan Teki wrote:
> On 23 December 2015 at 20:39, Mugunthan V N <mugunthan...@ti.com> wrote:
>> spi bus can support dual and quad wire data transfers for tx and
>> rx. So defining dual and quad modes for both tx and rx. Also add
>>
On Monday 28 December 2015 11:08 PM, Jagan Teki wrote:
> From: Mugunthan V N <mugunthan...@ti.com>
>
> spi bus can support dual and quad wire data transfers for tx and
> rx. So defining dual and quad modes for both tx and rx. Also add
> support to parse bus width used for sp
-by: Mugunthan V N <mugunthan...@ti.com>
---
Submitting 02/19 only for v3 as there is no change on other
patches and to reduce traffic.
This patch is verified on AM437x SK and DRA74 EVM logs [1] and
pushed a branch for testing
[1] - http://pastebin.ubuntu.com/14205433/
[2] - git://git.
On Friday 25 December 2015 05:43 PM, Bin Meng wrote:
> Hi Mugunthan,
>
> On Fri, Dec 25, 2015 at 6:41 PM, Mugunthan V N <mugunthan...@ti.com> wrote:
>> Adding timer_init function to create and initialize the timer
>> device on platforms where u-boot,dm-p
if (ret)
> return ret;
> if (!dev)
> return -ENODEV;
> gd->timer = dev;
> } else {
>
> }
>
Oops!, will fix it in next version.
Regards
Mugunthan V N
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Specify which timer to be used as tick-timer in chosen node.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
arch/arm/dts/am335x-boneblack.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/dts/am335x-boneblack.dts
b/arch/arm/dts/am335x-boneblack.dts
index 679248a..2
Enable timer driver model for am335x_gp_evm as omap-timer supports
driver model.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
configs/am335x_gp_evm_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configs/am335x_gp_evm_defconfig b/configs/am335x_gp_evm_defconfig
Specify timer2 to be used as tick-timer in chosen node.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
arch/arm/dts/am335x-evm.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/dts/am335x-evm.dts b/arch/arm/dts/am335x-evm.dts
index e1c5d4f..c0bc2af 100644
--- a/ar
Since OMAP's spl doesn't support DM currently, do not define
CONFIG_TIMER for spl build.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
include/configs/ti_omap5_common.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/configs/ti_omap5_common.h
b/include/c
Since OMAP's spl doesn't support DM currently, do not define
CONFIG_TIMER for spl build.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
include/configs/am335x_evm.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
Enable timer driver model for am335x_boneblack_vboot as
omap-timer supports driver model.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
configs/am335x_boneblack_vboot_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configs/am335x_boneblack_vboot_defconfig
b/c
Enable timer driver model for am437x_gp_evm as omap-timer supports
driver model.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
configs/am437x_gp_evm_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configs/am437x_gp_evm_defconfig b/configs/am437x_gp_evm_defconfig
ged omap_timer_get_count dedfinition as per latest code base.
Mugunthan V N (19):
arm: omap-common: do not build timer when CONFIG_TIMER defined
dm: timer: uclass: add timer init to add timer device
dm: timer: uclass: Add flag to control sequence numbering
drivers: timer: omap_timer: add timer dri
To prepare timer driver to DM/DT conversion do not build the
exiting timer driver when CONFIG_TIMER is defined. But since
omap's SPL doesn't support DM yet so built timer driver only for
SPL build when CONFIG_TIMER is defined.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
arch/a
-by: Mugunthan V N <mugunthan...@ti.com>
---
doc/device-tree-bindings/chosen.txt | 43 +
drivers/timer/timer-uclass.c| 42
lib/time.c | 13 ++-
3 files changed, 87 insertions(
Like SPI and I2C, timer devices also have multiple chip
instances. This patch adds the flag 'DM_UC_FLAG_SEQ_ALIAS' in
timer_uclass driver to control device sequence numbering.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-
Since OMAP's spl doesn't support DM currently, do not define
CONFIG_TIMER for spl build.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
include/configs/am43xx_evm.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h
Specify which timer to be used as tick-timer in chosen node.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
arch/arm/dts/am437x-gp-evm.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/dts/am437x-gp-evm.dts b/arch/arm/dts/am437x-gp-evm.dts
index b5f0b4e..8e23b96
Enable timer driver model for am437x_sk_evm as omap-timer supports
driver model.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
configs/am437x_sk_evm_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configs/am437x_sk_evm_defconfig b/configs/am437x_sk_evm_defconfig
Specify which timer to be used as tick-timer in chosen node.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
arch/arm/dts/am437x-sk-evm.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/dts/am437x-sk-evm.dts b/arch/arm/dts/am437x-sk-evm.dts
index 3f9d808..85d3381
Adding a timer driver for omap devices based on driver model
and device tree.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
drivers/timer/Kconfig | 6 +++
drivers/timer/Makefile | 1 +
drivers/timer/omap-timer.c | 108 +
3
Enable timer driver model for dra74_evm_defconfig as omap-timer
supports driver model.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
configs/dra74_evm_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configs/dra74_evm_defconfig b/configs/dra74_evm_defconfig
index 3
Specify timer2 to be used as tick-timer in chosen node.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
arch/arm/dts/dra7-evm.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/dts/dra7-evm.dts b/arch/arm/dts/dra7-evm.dts
index e4daa99..2568aad 100644
--- a/arch/arm/dt
Specify timer2 to be used as tick-timer in chosen node.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
arch/arm/dts/dra72-evm.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/dts/dra72-evm.dts b/arch/arm/dts/dra72-evm.dts
index efb544c..6e3bbfd 100644
--- a/arch/a
Enable timer driver model for dra72_evm_defconfig as omap-timer
supports driver model.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
configs/dra72_evm_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configs/dra72_evm_defconfig b/configs/dra72_evm_defconfig
index 3
r spi flashed found in DRA7xx and AM437x SK
Mugunthan V N (16):
drivers: spi: ti_qspi: do not hard code chip select for memory map
configuration
drivers: spi:ti_qspi: change ti_qspi_slave to ti_qspi_priv for driver
model conversion
drivers: spi: ti_qspi: prepare driver for DM convers
To enable memory map in dra7xx, specific chip select must be
written to control module register. But this hard coded to chip
select 1, fixing it by writing the specific chip select value to
control module register.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Gl
Add new api to get device address based on index.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
drivers/core/device.c | 31 +++
include/dm/device.h | 11 +++
2 files changed, 38 insertions(+), 4 deletions(-)
diff --git a/drivers/core/devi
spi bus can support dual and quad wire data transfers for tx and
rx. So defining dual and quad modes for both tx and rx. Also add
support to parse bus width used for spi tx and rx transfers.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
drivers/spi/spi-uclass.
Since OMAP's spl doesn't support DM currently, do not define DM_SPI and
DM_SPI_FLASH for spl build.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
include/configs/dra7xx_evm.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/configs/dra7xx_evm.h b/include/c
add spi alias for qspi so that spi probes the device and driver
successfully.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
---
arch/arm/dts/dra7.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/dts/dra7.dtsi b/arch/
Add compatible for spansion 32MiB spi flash s25fl256s1.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
drivers/mtd/spi/sf_probe.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c
index daa1d5b..c691b6c 100644
--- a/drive
adopt ti_qspi driver to device driver model
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Tom Rini <tr...@konsulko.com>
---
drivers/spi/ti_qspi.c | 187 ++
1
enable mmc driver model for dra72_evm as ti_qspi supports
driver model
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Tom Rini <tr...@konsulko.com>
---
configs/dra72_evm_defconfig | 2 ++
1 file changed, 2 inserti
Add qspi memory map and control module register maps to device tree.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
---
arch/arm/dts/dra7.dtsi | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/arch/arm/dts/dra7
Add compatible for Macronix 64MiB spi flash mx66l51235l.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
drivers/mtd/spi/sf_probe.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c
index c691b6c..5c61b38 100644
--- a/drive
Changing the ti_qspi_priv structure and its instance names from
to priv for driver mode conversion.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Tom Rini <tr...@konsulko.com>
Reviewed-by: Jagan Teki <jt...@opene
Prepare driver for DM conversion.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
drivers/spi/ti_qspi.c | 279 +++---
1 file changed, 153 insertions(+), 126 deletions(-)
diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c
index a
enable spi driver model for dra74_evm as ti_qspi supports
driver model
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Tom Rini <tr...@konsulko.com>
---
configs/dra74_evm_defconfig | 2 ++
1 file changed, 2 inserti
enable spi driver model for am437x_sk_evm as ti_qspi supports
driver model
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Tom Rini <tr...@konsulko.com>
---
configs/am437x_sk_evm_defconfig | 3 +++
1 file changed, 3 i
Since OMAP's spl doesn't support DM currently, do not define
DM_SPI and DM_SPI_FLASH for spl build.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Tom Rini <tr...@konsulko.com>
---
include/configs/am43xx_evm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/inc
Add qspi memory map address to device tree.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
---
arch/arm/dts/am4372.dtsi | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/arm/dts/am4372.dtsi b/arch/arm/dts
| 2 +-
> include/spi.h | 65
> +++--
> 4 files changed, 31 insertions(+), 40 deletions(-)
>
Tested the series on AM437x SK and DRA74 EVM.
Tested-by: Mugunthan V N <mugunthan...@ti.com>
Regards
Mugunthan V N
___
U-Boot
On Wednesday 23 December 2015 05:02 PM, Jagan Teki wrote:
> On 23 December 2015 at 16:29, Mugunthan V N <mugunthan...@ti.com> wrote:
>> On Wednesday 23 December 2015 04:21 PM, Jagan Teki wrote:
>>> On 23 December 2015 at 15:29, Mugunthan V N <mugunthan...@ti.com&
Changing the ti_qspi_priv structure and its instance names from
to priv for driver mode conversion.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Tom Rini <tr...@konsulko.com>
Reviewed-by: Jagan Teki <jt...@opene
In U-Boot most flashes uses "spi-flash" as compatible to bind the
device to flash driver, so adding "spi-flash" compatible to
m25p80 node.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
arch/arm/dts/am437x-sk-evm.dts | 2 +-
1 file changed, 1 insertion(+),
adopt ti_qspi driver to device driver model
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Tom Rini <tr...@konsulko.com>
---
drivers/spi/ti_qspi.c | 187 ++
1
Add qspi memory map and control module register maps to device tree.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
---
arch/arm/dts/dra7.dtsi | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/arch/arm/dts/dra7
In U-Boot most flashes uses "spi-flash" as compatible to bind the
device to flash driver, so adding "spi-flash" compatible to
m25p80 node.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
arch/arm/dts/dra7-evm.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion
In U-Boot most flashes uses "spi-flash" as compatible to bind the
device to flash driver, so adding "spi-flash" compatible to
m25p80 node.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
arch/arm/dts/dra72-evm.dts | 2 +-
1 file changed, 1 insertion(+), 1 dele
Since OMAP's spl doesn't support DM currently, do not define DM_SPI and
DM_SPI_FLASH for spl build.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
include/configs/dra7xx_evm.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/configs/dra7xx_evm.h b/include/c
Since OMAP's spl doesn't support DM currently, do not define
DM_SPI and DM_SPI_FLASH for spl build.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Tom Rini <tr...@konsulko.com>
---
include/configs/am43xx_evm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/inc
enable spi driver model for dra74_evm as ti_qspi supports
driver model
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Tom Rini <tr...@konsulko.com>
---
configs/dra74_evm_defconfig | 2 ++
1 file changed, 2 inserti
In U-Boot most flashes uses "spi-flash" as compatible to bind the
device to flash driver, so adding "spi-flash" compatible to
m25p80 node.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
arch/arm/dts/dra7-evm.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion
Fixed the cosmetic reviews from Simon
* Modified the dev_get_addr_index to adopt OF_TRANSULATE as well
and also removed code duplicate.
* Added compatibles for spi flashed found in DRA7xx and AM437x SK
Mugunthan V N (16):
drivers: spi:ti_qspi: change ti_qspi_slave to ti_qspi_priv for driver
On Wednesday 23 December 2015 08:32 PM, Mugunthan V N wrote:
> This patch series enables ti_qspi to adopt driver model. This has
> been tested on dra72, dra74 and am437x-sk evms (logs [1]).
> Also pushed a branch for testing [2]
>
> This patch series is based on u-boot-spi
Since OMAP's spl doesn't support DM currently, do not define
DM_SPI and DM_SPI_FLASH for spl build.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Tom Rini <tr...@konsulko.com>
---
include/configs/am43xx_evm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/inc
enable spi driver model for dra74_evm as ti_qspi supports
driver model
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Tom Rini <tr...@konsulko.com>
---
configs/dra74_evm_defconfig | 2 ++
1 file changed, 2 inserti
enable mmc driver model for dra72_evm as ti_qspi supports
driver model
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Tom Rini <tr...@konsulko.com>
---
configs/dra72_evm_defconfig | 2 ++
1 file changed, 2 inserti
enable spi driver model for am437x_sk_evm as ti_qspi supports
driver model
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Tom Rini <tr...@konsulko.com>
---
configs/am437x_sk_evm_defconfig | 3 +++
1 file changed, 3 i
Add qspi memory map address to device tree.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
---
arch/arm/dts/am4372.dtsi | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/arm/dts/am4372.dtsi b/arch/arm/dts
enable spi driver model for am437x_sk_evm as ti_qspi supports
driver model
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Tom Rini <tr...@konsulko.com>
---
configs/am437x_sk_evm_defconfig | 3 +++
1 file changed, 3 i
Add qspi memory map address to device tree.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
---
arch/arm/dts/am4372.dtsi | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/arm/dts/am4372.dtsi b/arch/arm/dts
spi bus can support dual and quad wire data transfers for tx and
rx. So defining dual and quad modes for both tx and rx. Also add
support to parse bus width used for spi tx and rx transfers.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
drivers/spi/spi-uclass.
Prepare driver for DM conversion.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
drivers/spi/ti_qspi.c | 279 +++---
1 file changed, 153 insertions(+), 126 deletions(-)
diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c
index a
Add qspi memory map and control module register maps to device tree.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
---
arch/arm/dts/dra7.dtsi | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/arch/arm/dts/dra7
Add new api to get device address based on index.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
drivers/core/device.c | 31 +++
include/dm/device.h | 11 +++
2 files changed, 38 insertions(+), 4 deletions(-)
diff --git a/drivers/core/devi
In U-Boot most flashes uses "spi-flash" as compatible to bind the
device to flash driver, so adding "spi-flash" compatible to
m25p80 node.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
arch/arm/dts/am437x-sk-evm.dts | 2 +-
1 file changed, 1 insertion(+),
In U-Boot most flashes uses "spi-flash" as compatible to bind the
device to flash driver, so adding "spi-flash" compatible to
m25p80 node.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
arch/arm/dts/dra72-evm.dts | 2 +-
1 file changed, 1 insertion(+), 1 dele
add spi alias for qspi so that spi probes the device and driver
successfully.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
---
arch/arm/dts/dra7.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/dts/dra7.dtsi b/arch/
enable mmc driver model for dra72_evm as ti_qspi supports
driver model
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Tom Rini <tr...@konsulko.com>
---
configs/dra72_evm_defconfig | 2 ++
1 file changed, 2 inserti
Prepare driver for DM conversion.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
drivers/spi/ti_qspi.c | 279 +++---
1 file changed, 153 insertions(+), 126 deletions(-)
diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c
index a
spi bus can support dual and quad wire data transfers for tx and
rx. So defining dual and quad modes for both tx and rx. Also add
support to parse bus width used for spi tx and rx transfers.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
drivers/spi/spi-uclass.
Add new api to get device address based on index.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
drivers/core/device.c | 31 +++
include/dm/device.h | 11 +++
2 files changed, 38 insertions(+), 4 deletions(-)
diff --git a/drivers/core/devi
add spi alias for qspi so that spi probes the device and driver
successfully.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
---
arch/arm/dts/dra7.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/dts/dra7.dtsi b/arch/
adopt ti_qspi driver to device driver model
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Tom Rini <tr...@konsulko.com>
---
drivers/spi/ti_qspi.c | 187 ++
1
Since OMAP's spl doesn't support DM currently, do not define DM_SPI and
DM_SPI_FLASH for spl build.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
---
include/configs/dra7xx_evm.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/configs/dra7xx_evm.h b/include/c
r DM conversion" for easier review
* added memory map mode to the driver
* Fixed the cosmetic reviews from Simon
* Modified the dev_get_addr_index to adopt OF_TRANSULATE as well
and also removed code duplicate.
* Added compatibles for spi flashed found in DRA7xx and AM437x SK
Mugunthan V N (
Changing the ti_qspi_priv structure and its instance names from
to priv for driver mode conversion.
Signed-off-by: Mugunthan V N <mugunthan...@ti.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Tom Rini <tr...@konsulko.com>
Reviewed-by: Jagan Teki <jt...@opene
601 - 700 of 1799 matches
Mail list logo