Hi Stefan,
On Thu, 2015-11-26 at 07:12 +0100, Stefan Roese wrote:
> On 26.11.2015 03:32, Chin Liang See wrote:
> > Adding new environment qspiload which will load zImage and
> > Linux DTB from serial NOR flash. The default flash offset for
> > the images as below and they are configurable during
On Friday, November 27, 2015 at 02:24:49 AM, Chin Liang See wrote:
> Hi Pavel,
>
> On Thu, 2015-11-26 at 15:43 +0100, Pavel Machek wrote:
> > Hi!
> >
> > > Adding new environment qspiload which will load zImage and
> > > Linux DTB from serial NOR flash. The default flash offset for
> > > the
Hi Pavel,
On Thu, 2015-11-26 at 15:43 +0100, Pavel Machek wrote:
> Hi!
>
> > Adding new environment qspiload which will load zImage and
> > Linux DTB from serial NOR flash. The default flash offset for
> > the images as below and they are configurable during run time.
> >
> > - zImage located
Hi Marek,
On Thu, 2015-11-26 at 12:04 +0100, Marek Vasut wrote:
> On Thursday, November 26, 2015 at 07:14:56 AM, Stefan Roese wrote:
> > On 26.11.2015 04:17, Chin Liang See wrote:
> > > Adding new environment usbload which will load zImage and
> > > Linux DTB from USB mass storage through FAT
Hi Stefan,
On Thu, 2015-11-26 at 07:14 +0100, Stefan Roese wrote:
> On 26.11.2015 04:17, Chin Liang See wrote:
> > Adding new environment usbload which will load zImage and
> > Linux DTB from USB mass storage through FAT file system.
> >
> > Signed-off-by: Chin Liang See
> >
Hi Jagan,
On Thu, Nov 26, 2015 at 8:03 PM, Jagan Teki wrote:
> This series is combination of mtd and sf tunning stuff in previous
> version patches.[1][2]
>
> This is whole patch series for add mtd support to spi-flash
> framework and related stuff.
>
> The idea is to
Adding new environment usbload which will load zImage and
Linux DTB from USB mass storage through FAT file system.
Signed-off-by: Chin Liang See
Cc: Dinh Nguyen
Cc: Dinh Nguyen
Cc: Pavel Machek
Cc: Marek
Hi Stephen,
On 24 November 2015 at 13:28, Stephen Warren wrote:
> On 11/24/2015 12:04 PM, Simon Glass wrote:
>>
>> Hi Stephen,
>>
>> On 23 November 2015 at 21:44, Stephen Warren
>> wrote:
>>>
>>> On 11/23/2015 06:45 PM, Simon Glass wrote:
This file should not be used with driver model as it has lots of legacy/
compatibility functions. Rename it to make this clear.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3: None
Changes in v2: None
drivers/pci/Makefile
Hi Peng,
On 25 November 2015 at 01:16, Peng Fan wrote:
> "enable" is unsigned char type and its value will not be
> negative, so discard "enable < 0".
>
> Signed-off-by: Peng Fan
> Cc: Diego Santa Cruz
> Cc: Pantelis
On 26 November 2015 at 18:12, Peng Fan wrote:
> Need to free memory avoid memory leak, when error.
>
> Signed-off-by: Peng Fan
> Reviewed-by: Simon Glass
> Cc: Simon Glass
> Cc: Tom Rini
On 25 November 2015 at 08:56, Albert ARIBAUD wrote:
> As of gcc 5.2.1 for Thumb-1, it is not possible any
> more to assign gd from C code, as gd is mapped to r9,
> and r9 may now be saved in the prolog sequence, and
> restored in the epilog sequence, of any C functions.
On 23 November 2015 at 01:50, Sjoerd Simons
wrote:
> On Sun, 2015-11-22 at 09:11 -0700, Simon Glass wrote:
>> On 22 November 2015 at 00:21, Sjoerd Simons
>> wrote:
>> > Now that u-boot relocates the malloc area in SPL to SDRAM, with
On 19 November 2015 at 22:58, Lin Huang wrote:
> enable this config so we use common uart function in SPL stage
>
> Signed-off-by: Lin Huang
> ---
> arch/arm/mach-rockchip/rk3036-board-spl.c | 6 ++
> configs/evb-rk3036_defconfig | 5
On 22 November 2015 at 08:11, Simon Glass wrote:
> On 22 November 2015 at 00:21, Sjoerd Simons
> wrote:
>> This patch was merged shortly before the v2015.10 as a minimal fix for
>> booting on rockchip. Now that the patch series from Hans to do
Hi Lin,
On 26 November 2015 at 19:35, Simon Glass wrote:
> Hi Lin,
>
> On 19 November 2015 at 22:58, Lin Huang wrote:
>> we can use this config to disable rockchip serial driver in SPL stage,
>> since some rockchip soc sram size is small(rk3036 etc), so
At present in do_pci(), bdf can either mean a bus number or a PCI bus number.
Use separate variables instead to reduce confusion.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3: None
Changes in v2: None
common/cmd_pci.c | 6 +++---
1
With driver mode, struct pci_controller is stored as uclass-private data.
Add a comment to that effect.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3: None
Changes in v2: None
include/pci.h | 2 ++
1 file changed, 2 insertions(+)
Hi Jagan,
On 26 November 2015 at 10:54, Jagan Teki wrote:
> Hi Simon,
>
> Some how I'm unclear about your comments in previous series probably I
> my misunderstanding or something. let me explain about my plan on
> spi-nor development.
>
> The entire spi-flash code is generic
Before converting this to driver model, reorder the code to avoid forward
function declarations.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3: None
Changes in v2: None
common/cmd_pci.c | 216
Hi Albert,
On 25 November 2015 at 08:56, Albert ARIBAUD wrote:
> board_init_f_mem() alters the C runtime environment's
> stack it is actually already using. This is not a valid
> behaviour within a C runtime environment.
>
> Split board_init_f_mem into C functions
Some functions will be used by driver model and legacy PCI code. To avoid
duplication, put these in a separate, shared file.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3: None
Changes in v2:
- Fix 'autoconfiguration' typo
- Fix merge
In the 'pci' command, add a separate variable to hold the PCI device. When
this code is converted to driver model, this variable will be used to hold a
struct udevice instead.
Signed-off-by: Simon Glass
---
Changes in v3:
- Fix 'switch (cmd)' merge error
Changes in v2:
-
We want to share this code with the driver model version, so put it in a
separate function.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3: None
Changes in v2: None
common/cmd_pci.c | 17 +++--
1 file changed, 11
Hi Marek,
On Fri, 2015-11-27 at 02:27 +0100, Marek Vasut wrote:
> On Friday, November 27, 2015 at 02:24:49 AM, Chin Liang See wrote:
> > Hi Pavel,
> >
> > On Thu, 2015-11-26 at 15:43 +0100, Pavel Machek wrote:
> > > Hi!
> > >
> > > > Adding new environment qspiload which will load zImage and
>
We need to access reg stp_rep9, but not stp_rep[(9 - 1) / 2].
If using "__raw_writel(0, DI_STP_REP(disp, 9))", this will exceeds
the size of stp_rep array.
Signed-off-by: Peng Fan
Acked-by: Liu Ying
Cc: Stefano Babic
Cc: Anatolij
Need to free memory avoid memory leak, when error.
Signed-off-by: Peng Fan
Reviewed-by: Simon Glass
Cc: Simon Glass
Cc: Tom Rini
---
Changes V2:
Take Simon's comments, fix another memory leak when child->argv
Hi Simon,
On Thu, Nov 26, 2015 at 09:49:38AM -0800, Simon Glass wrote:
>Hi Peng,
>
>On 25 November 2015 at 02:16, Peng Fan wrote:
>> Need to free memory avoid memory leak, when error.
>>
>> Signed-off-by: Peng Fan
>> Cc: Simon Glass
Remove fsloadcmd / ext2load as we are using load command
which use the corresponding latest file system command.
Signed-off-by: Chin Liang See
Cc: Dinh Nguyen
Cc: Dinh Nguyen
Cc: Pavel Machek
Cc: Marek
On 27.11.2015 03:27, Chin Liang See wrote:
Remove fsloadcmd / ext2load as we are using load command
which use the corresponding latest file system command.
Signed-off-by: Chin Liang See
Cc: Dinh Nguyen
Cc: Dinh Nguyen
On 27.11.2015 03:36, Chin Liang See wrote:
Adding new environment usbload which will load zImage and
Linux DTB from USB mass storage through FAT file system.
Signed-off-by: Chin Liang See
Cc: Dinh Nguyen
Cc: Dinh Nguyen
Hi Jagan,
On Fri, Nov 27, 2015 at 2:54 AM, Jagan Teki wrote:
> Hi Simon,
>
> Some how I'm unclear about your comments in previous series probably I
> my misunderstanding or something. let me explain about my plan on
> spi-nor development.
>
> The entire spi-flash code is
The function comments use an old style and some are incorrect. Update them.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3:
- Use 'Show' instead of 'Shows' in the the pci_header_show() function comment
Changes in v2:
- Add a new patch
We eventually need to drop the compatibility functions for driver model. As
a first step, create a configuration option to enable them and hide them
when the option is disabled.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3: None
Currently we use switch() and access PCI configuration via several
functions, one for each data size. Adjust the code to use generic functions,
where the data size is a parameter.
Signed-off-by: Simon Glass
---
Changes in v3:
- Fix mix-up between PCI_SIZE_xx and byte size
This function uses macros to output data. It seems better to use a table of
registers rather than macro-based code generation. It also reduces the
code/data size by 2KB on ARM.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Tested-by: Bin Meng
Adjust this command to use the correct PCI functions, instead of the
compatibility layer.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Tested-by: Bin Meng
---
Changes in v3: None
Changes in v2:
- Make pciinfo() static
At present driver model supports PCI, but most of the code in U-Boot still
uses the old API.
This series changes the 'pci' command so that the new API is used. The old
API is placed behind a 'compatibility' option. The overall goal is to
deprecate the old API and remove all use of it. The
Adjust the commands to return from the same place.
Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v3: None
Changes in v2: None
common/cmd_pci.c | 19 +--
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git
Hi Lin,
On 19 November 2015 at 22:58, Lin Huang wrote:
> we can use this config to disable rockchip serial driver in SPL stage,
> since some rockchip soc sram size is small(rk3036 etc), so we don't
> want rockchip serial driver build in SPL, but we still want use common
>
Hi Jeffy,
On 26 November 2015 at 16:43, Jeffy Chen wrote:
> Our chips may have different spl size and spl header, so
> use imagename(passed by "mkimage -n") to select them now.
>
> Signed-off-by: Jeffy Chen
> ---
>
> tools/rkcommon.c | 69
On 26 November 2015 at 16:43, Jeffy Chen wrote:
> We now using imagename to select rockchip's spl hdr & spl size.
>
> Signed-off-by: Jeffy Chen
> ---
>
> doc/README.rockchip | 8
> 1 file changed, 4 insertions(+), 4 deletions(-)
Hello Tom,
please pull from u-boot-i2c master:
The following changes since commit 71cbed31f4f123708b8b3397cb166155c4a71f66:
am33xx: Remove serial_init in s_init for QSPI/NOR XIP boot (2015-11-23
11:01:53 -0500)
are available in the git repository at:
git://git.denx.de/u-boot-i2c.git
Our chips may have different spl size and spl header, so
use imagename(passed by "mkimage -n") to select them now.
Signed-off-by: Jeffy Chen
---
tools/rkcommon.c | 69 ++--
tools/rkcommon.h | 32
This reverts commit 10b4615f9d7e177ec7fe644fbb2616e0e0956f6e
Conflicts:
tools/rkcommon.h
Signed-off-by: Jeffy Chen
---
arch/arm/mach-rockchip/Kconfig| 15 ---
arch/arm/mach-rockchip/rk3036/Kconfig | 6 --
This series patch fix rockchip spl loader mkimage flow, use
imagename to select spl loader size & tag for different chip.
Jeffy Chen (3):
Revert "rockchip: Add max spl size & spl header configs"
rockchip: mkimage: use imagename to select spl hdr & spl size
rockchip: doc: add imagename
We now using imagename to select rockchip's spl hdr & spl size.
Signed-off-by: Jeffy Chen
---
doc/README.rockchip | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/README.rockchip b/doc/README.rockchip
index 874441c..b455f6f 100644
---
Hi Simon,
On Thu, Nov 26, 2015 at 06:51:58PM -0800, Simon Glass wrote:
>Hi Peng,
>
>On 25 November 2015 at 01:16, Peng Fan wrote:
>> "enable" is unsigned char type and its value will not be
>> negative, so discard "enable < 0".
>>
>> Signed-off-by: Peng Fan
Hello Simon,
Am 26.11.2015 um 18:49 schrieb Simon Glass:
On 25 November 2015 at 01:46, Heiko Schocher wrote:
since:
commit: f05ad9ba "Add a way to skip relocation"
tqm5200s board fails to boot. Reason is that
board_init_f has a function parameter bootflag,
which is not setup in
hello,
The ps7_init_gpl.c is some output from the xilinix vivado tool as
hardware handoff.
We compile this into our SPL.
My question is how to deal with "scripts/checkpatch.pl" on this file.
The scripts throughs a lot of errors.
# scripts/checkpatch.pl -f
Our chips may have different spl size and spl header, so
use imagename(passed by "mkimage -n") to select them now.
Signed-off-by: Jeffy Chen
---
Changes in v2: None
tools/rkcommon.c | 72 ++--
tools/rkcommon.h | 32
This reverts commit 10b4615f9d7e177ec7fe644fbb2616e0e0956f6e
Conflicts:
tools/rkcommon.h
Signed-off-by: Jeffy Chen
---
Changes in v2:
- Fix some coding style
arch/arm/mach-rockchip/Kconfig| 15 ---
arch/arm/mach-rockchip/rk3036/Kconfig
This series patch fix rockchip spl loader mkimage flow, use
imagename to select spl loader size & tag for different chip.
Changes in v2:
- Fix some coding style
Jeffy Chen (3):
Revert "rockchip: Add max spl size & spl header configs"
rockchip: mkimage: use imagename to select spl hdr & spl
We now using imagename to select rockchip's spl hdr & spl size.
Signed-off-by: Jeffy Chen
Acked-by: Simon Glass
---
Changes in v2: None
doc/README.rockchip | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
Hi Simon,
On 26.11.2015 19:22, Simon Glass wrote:
Hi Stefan,
On 26 November 2015 at 10:12, Stefan Roese wrote:
Hi Simon,
On 26.11.2015 18:55, Simon Glass wrote:
Hi Stefan,
On 26 November 2015 at 09:47, Stefan Roese wrote:
Hi Simon,
On 26.11.2015 17:48, Simon
Hi Simon,
On 27.11.2015 05:01, Stefan Roese wrote:
Hi Simon,
On 26.11.2015 19:22, Simon Glass wrote:
Hi Stefan,
On 26 November 2015 at 10:12, Stefan Roese wrote:
Hi Simon,
On 26.11.2015 18:55, Simon Glass wrote:
Hi Stefan,
On 26 November 2015 at 09:47, Stefan Roese
Enable the IP feature's snoop signal to support
hardware snoop for cache coherence.
SNPCNFGCR contains the bits to drive snoop signal
for various masters.
Signed-off-by: Yuan Yao
---
arch/arm/cpu/armv7/ls102xa/soc.c | 8
This is a workaround for hardware erratum.
Write the value of 63b2_0042h to EDDRTQCFG will optimal the
memory controller performance.
The value: 63b2_0042h comes from the hardware team.
Signed-off-by: Yuan Yao
---
Changed in v2:
squash both of the two patches into one
Signed-off-by: Yuan Yao
---
arch/arm/cpu/armv7/ls102xa/soc.c | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/arch/arm/cpu/armv7/ls102xa/soc.c b/arch/arm/cpu/armv7/ls102xa/soc.c
index 6036473..97ba6d5 100644
--- a/arch/arm/cpu/armv7/ls102xa/soc.c
Both of the erratum:A008336 and A008514 are not apply to all the
soc like:LS1021A, LS1043A.
So it seems better to move those erratum codes form the general ddr
file to the private soc file.
Signed-off-by: Yuan Yao
---
arch/arm/cpu/armv8/fsl-layerscape/soc.c | 37
Create a soc.c file to put the code for soc special settings.
Signed-off-by: Yuan Yao
---
arch/arm/cpu/armv7/ls102xa/Makefile | 1 +
arch/arm/cpu/armv7/ls102xa/soc.c| 66 +
With the commit 'c7b9686d5d48 ("ns16550: unify serial_omap")' all
TI platforms are broken with DM/DT boot as ns16550 driver expects
reg-shift from DT which is not populated for TI platforms.
Earlier it worked as it was hard coded to 2 in serial-omap
driver. So adding the reg-shift to serial nodes
Enable to break waiting loop at any time.
Signed-off-by: Michal Simek
---
drivers/net/zynq_gem.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c
index 858093f0d7e2..ee4169107e5b 100644
---
From: Siva Durga Prasad Paladugu
Calculate the minimum sd clock based on max clock. This will
be done by add_sdhci() if we pass minimum clock as zero.
It also does based on SD host contoller version.
Signed-off-by: Siva Durga Prasad Paladugu
From: Siva Durga Prasad Paladugu
Done relocate fdt incase of CONFIG_OF EMBED as the fdt is
already embedded with u-boot image. Also update the fdt_blob
correctly in this case
Signed-off-by: Siva Durga Prasad Paladugu
Signed-off-by: Michal
Hi,
for everybody's information:
On Wednesday, November 18, 2015 11:01:03 AM Marek Vasut wrote:
> On Wednesday, November 18, 2015 at 10:57:13 AM, Florian Achleitner wrote:
> > On Wednesday, November 18, 2015 09:55:12 AM Marek Vasut wrote:
> > [..]
> > Anyways, I currently suspect the cst tool
Remove configuration options from board file.
Signed-off-by: Michal Simek
---
configs/xilinx_zynqmp_ep_defconfig | 2 ++
include/configs/xilinx_zynqmp.h| 3 ---
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/configs/xilinx_zynqmp_ep_defconfig
Remove unused macros when driver was moved to DM.
Signed-off-by: Michal Simek
---
arch/arm/include/asm/arch-zynqmp/hardware.h | 3 ---
arch/arm/mach-zynq/include/mach/hardware.h | 2 --
2 files changed, 5 deletions(-)
diff --git
In it's current state paramter parsing is quite hard to
understand since it happens in two places. One is using getopt
at the beginning of main, the second is using adhoc parsing
where the order of arguments is important.
This patch will parse arguments only in one place using getopt
and store
passing argv/argc can produce off-by-one errors
Signed-off-by: Andreas Fenkart
---
common/env_flags.c | 14 +++---
include/env_flags.h | 2 +-
tools/env/fw_env.c | 11 +++
3 files changed, 15 insertions(+), 12 deletions(-)
diff --git
goal is to use getopt for all argument parsing instead of adhoc
parsing in fw_getenv/fw_setenv functions
Signed-off-by: Andreas Fenkart
---
tools/env/fw_env.h | 9
tools/env/fw_env_main.c | 113
2
Signed-off-by: Andreas Fenkart
---
tools/env/fw_env.c | 54 ++---
tools/env/fw_env_main.c | 4
2 files changed, 15 insertions(+), 43 deletions(-)
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
disabled original parsing, but not yet removed since the
argument indexing needs to be fixed
Signed-off-by: Andreas Fenkart
---
tools/env/fw_env.c | 64 ++---
tools/env/fw_env.h | 13 ++
Signed-off-by: Andreas Fenkart
---
tools/env/fw_env.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index 22507f6..5b76b74 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@
Signed-off-by: Andreas Fenkart
---
tools/env/fw_env_main.c | 63 +
1 file changed, 38 insertions(+), 25 deletions(-)
diff --git a/tools/env/fw_env_main.c b/tools/env/fw_env_main.c
index daf4688..e7ba95e 100644
Signed-off-by: Andreas Fenkart
---
tools/env/fw_env_main.c | 117 +++-
1 file changed, 75 insertions(+), 42 deletions(-)
diff --git a/tools/env/fw_env_main.c b/tools/env/fw_env_main.c
index e7ba95e..79273ce 100644
Hi Michal,
On Thu, 2015-11-26 at 10:54 +0100, Michal Simek wrote:
> From: Siva Durga Prasad Paladugu
>
> Done relocate fdt incase of CONFIG_OF EMBED as the fdt is
Probably it was meant to be something like:
--->8---
__Don't__
Hi,
On 26-11-15 01:38, Stefan Bruens wrote:
On Wednesday 25 November 2015 16:55:54 Sumeet Jauhar wrote:
Hello All,
I am new to Rpi and for a project I need to install Uboot for Rpi. For
starters I installed Raspbian-jessie to the pi and it worked fine. Now I am
attempting to use uboot but I
On Thursday, November 26, 2015 at 10:24:50 AM, Florian Achleitner wrote:
> Hi,
Hi,
> for everybody's information:
>
> On Wednesday, November 18, 2015 11:01:03 AM Marek Vasut wrote:
> > On Wednesday, November 18, 2015 at 10:57:13 AM, Florian Achleitner wrote:
> > > On Wednesday, November 18,
On Thursday, November 26, 2015 at 07:14:56 AM, Stefan Roese wrote:
> On 26.11.2015 04:17, Chin Liang See wrote:
> > Adding new environment usbload which will load zImage and
> > Linux DTB from USB mass storage through FAT file system.
> >
> > Signed-off-by: Chin Liang See
> >
Introduce chosen node and specify uart0 to be used as serial console.
Signed-off-by: Mugunthan V N
---
arch/arm/dts/dra7-evm.dts | 4
1 file changed, 4 insertions(+)
diff --git a/arch/arm/dts/dra7-evm.dts b/arch/arm/dts/dra7-evm.dts
index 096f68b..e4daa99 100644
---
DM_SERIAL is not enabled for dra74x evm, enabling it and tested
on dra74x evm. Logs [1].
[1] - http://pastebin.ubuntu.com/13513965/
Mugunthan V N (2):
arm: dts: dra7-evm: add chosen node to specify serial console device
defconfig: dra74_evm: enable serial driver model
Enable serial driver model for dra74_evm as ns16550 supports
driver model.
Signed-off-by: Mugunthan V N
---
configs/dra74_evm_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/dra74_evm_defconfig b/configs/dra74_evm_defconfig
index 7bff294..394edbe
This series is combination of mtd and sf tunning stuff in previous
version patches.[1][2]
This is whole patch series for add mtd support to spi-flash
framework and related stuff.
The idea is to introduce the spi-nor flash framework which
similar to Linux with driver-model support.
Detail
read_id code is related to spi_flash stuff
hence moved to sf_ops.
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_internal.h | 3 +--
drivers/mtd/spi/sf_ops.c | 21 ++---
drivers/mtd/spi/sf_probe.c| 15 +--
3 files changed, 20
Intension is that sf_ops should deals all spi_flash
related stuff and sf_probe (which should renamed future)
should be an interface layer for spi_flash versus spi drivers.
sf_ops => spi_flash interface
sf_probe => interface layer vs spi_flash(sf_probe) to spi drivers
Signed-off-by: Jagan Teki
Use static for file-scope functions and removed
them from header files.
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_internal.h | 18 --
drivers/mtd/spi/sf_ops.c | 11 ++-
2 files changed, 6 insertions(+), 23 deletions(-)
diff --git
Rename spi_flash_validate_params to spi_flash_scan
as this code not only deals with params setup but
also configure all spi_flash attributes.
And also moved all flash related code into
spi_flash_scan for future functionality addition.
Signed-off-by: Jagan Teki
---
- Move bar read code below the bar write hance both
at once place, hence it easy for #ifdef macro only
once and readable.
- Move read_cmd_array at top
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_ops.c | 80 +++-
1 file
Most of the register access function are static,
so used simple name to represent each.
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_ops.c | 52
1 file changed, 26 insertions(+), 26 deletions(-)
diff --git
This patch removes unneeded ifdef and fixed accordingly.
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/Makefile | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/mtd/spi/Makefile b/drivers/mtd/spi/Makefile
index cf4e7e1..a24f761 100644
---
flash operations are defined as static and reuse them
with function-pointers so call them with generic
function pounters instead of calling like normal functions.
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_ops.c | 2 --
drivers/mtd/spi/sf_probe.c | 15
Use static for file-scope functions and removed
them from header files.
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_internal.h | 21 -
drivers/mtd/spi/sf_ops.c | 11 ++-
2 files changed, 6 insertions(+), 26 deletions(-)
diff --git
Using macro's for flash power up read-only access code
leads wrong behaviour hence use idcode0 for runtime
detection, hence the flash which require this functionality
gets detected at runtime.
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_internal.h | 1 +
Removed unneeded header includes in sf_ops and sf_probe
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_ops.c | 2 --
drivers/mtd/spi/sf_probe.c | 3 ---
2 files changed, 5 deletions(-)
diff --git a/drivers/mtd/spi/sf_ops.c b/drivers/mtd/spi/sf_ops.c
index
This patch add support to use spi_flash_scan in
dm-spi-flash probe, so-that it can access
the spi_flash functionalities same as non-dm sf probe.
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_probe.c | 28 +---
1 file changed, 25 insertions(+), 3
Add SPL_MTD_SUPPORT to ZYNQ_QSPI SPL.
Cc: Michal Simek
Signed-off-by: Jagan Teki
---
include/configs/zynq-common.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
index
spi_flash_probe_tail code looks not in proper shape
to add more functionalities. hence refactorized
so-that it's more readable and hence we may extend
more functionalies to it.
Cc: Bin Meng
Cc: Troy Kisky
Signed-off-by: Jagan Teki
Since MTD support is added in spi_flash layer, this patch uses
mtd_info operations instead of legacy spi_flash operations.
Reviewed-by: Heiko Schocher
Signed-off-by: Jagan Teki
---
drivers/mtd/spi/sf_ops.c | 75 +-
spi_flash_probe_tail code looks not in proper shape
to add more functionalities. hence refactorized
so-that it's more readable and hence we may extend
more functionalies to it.
Cc: Bin Meng
Cc: Troy Kisky
Signed-off-by: Jagan Teki
1 - 100 of 188 matches
Mail list logo