Re: [U-Boot] [PATCH] gpio: Correct handling of 'gpio status'

2016-02-14 Thread Soeren Moch
On 15.02.2016 00:28, Simon Glass wrote: > This is broken - we need to look at the first two characters to distinguish > 'gpio status' from 'gpio set'. > > Fixes: 0ffe6ab5 (gpio: Allow 's' as an abbreviation for 'status') > Reported-by: Soeren Moch > Signed-off-by: Simon Glass

[U-Boot] [PATCH] cmd/gpio: fix not working 'gpio set' command

2016-02-14 Thread Hannes Schmelzer
From: Hannes Schmelzer In commit 0ffe6ab521f900bcc765be8f2f31d2c2ba3f0a7e the abbreviation for the subcommand 'status' was introduced and breaks the 'gpio set' command. The change runs a test on the first character of the subcommand only, this method does not

Re: [U-Boot] [PATCH 1/6] net: gem: Add support for reading MAC from I2C EEPROM

2016-02-14 Thread Michal Simek
Hi Bin, On 14.2.2016 13:00, Bin Meng wrote: > Hi Michal, > > On Sun, Feb 14, 2016 at 6:03 PM, Michal Simek wrote: >> Hi Bin, >> >> 2016-02-14 3:25 GMT+01:00 Bin Meng : >>> >>> Hi Michal, >>> >>> On Sat, Feb 13, 2016 at 6:39 PM, Michal Simek

Re: [U-Boot] [PATCH] Revert "gpio: Allow 's' as an abbreviation for 'status'"

2016-02-14 Thread Masahiro Yamada
2016-02-15 16:10 GMT+09:00 Masahiro Yamada : > This reverts commit 0ffe6ab521f900bcc765be8f2f31d2c2ba3f0a7e. > > The GPIO command has five sub-commands: status, input, set, clear, > and toggle. Commit 0ffe6ab521f9 (" gpio: Allow 's' as an > abbreviation for

[U-Boot] [PATCH] Revert "gpio: Allow 's' as an abbreviation for 'status'"

2016-02-14 Thread Masahiro Yamada
This reverts commit 0ffe6ab521f900bcc765be8f2f31d2c2ba3f0a7e. The GPIO command has five sub-commands: status, input, set, clear, and toggle. Commit 0ffe6ab521f9 (" gpio: Allow 's' as an abbreviation for 'status'") made the "set" sub-command unreachable because the sub-command that starts with

Re: [U-Boot] How to boot bare board binary from U-Boot>

2016-02-14 Thread Michael Zimmermann
so you just want to boot a raw binary which is not a kernel and doesn't use the U-Boot API? Actually, this shouldn't change anything. Linux isn't anything more than a "self-contained" raw binary either. I don't see why bootm wouldn't work in you situation. Michael On Sun, Feb 14, 2016 at 8:24

[U-Boot] [PATCH] armv8/ls1043aqds: Add USB support for ls1043aqds

2016-02-14 Thread Gong Qianyu
Add USB XHCI support for ls1043qds board. Signed-off-by: Gong Qianyu --- board/freescale/ls1043aqds/ls1043aqds.c | 15 +++ include/configs/ls1043aqds.h| 13 + 2 files changed, 28 insertions(+) diff --git

Re: [U-Boot] [Patch V3 2/3] fm: fdt: Move fman ucode fixup to Fman driver code

2016-02-14 Thread Qianyu Gong
> -Original Message- > From: york sun > Sent: Friday, February 12, 2016 1:39 AM > To: Scott Wood ; Qianyu Gong ; u- > b...@lists.denx.de > Subject: Re: [U-Boot] [Patch V3 2/3] fm: fdt: Move fman ucode fixup to Fman > driver code > > On 02/08/2016

[U-Boot] [PATCH] Gracefully handle 64-bit Load Address and Entry Point Address mkimage parameters

2016-02-14 Thread William Cohen
From: no one Recent MIPS Linux kernels are using a 64-bit value for the load address (0x8001) for the Creator CI20 board kernel. When this argument was passed to the mkimage program running on a 32-bit machine such as the Creator CI20 board the load address was

Re: [U-Boot] i.MX286 U-Boot fails with code HTLLCL0x8050100b

2016-02-14 Thread Stuart Longland
On 11/02/16 15:34, Stuart Longland wrote: > I now > get the following error code displayed: > > HTLLCL0x8050100b > > The documentation I found here http://www.denx-cs.de/?q=blogm28mxssb > seemed to suggest the following meaning: > > > .--- Valid SB > |.-- SB tag >

Re: [U-Boot] [PATCH v2 3/7] drivers: block: disk-uclass: implement scsi_init()

2016-02-14 Thread Bin Meng
Hi Simon, On Sun, Feb 7, 2016 at 4:29 AM, Simon Glass wrote: > Hi Bin, > > On 3 February 2016 at 04:59, Mugunthan V N wrote: >> >> Implement scsi_init() api to probe driver model based sata >> devices. >> >> Signed-off-by: Mugunthan V N

Re: [U-Boot] [PATCH] ARM: tegra: enable USB device mode port on Dalmore

2016-02-14 Thread Stephen Warren
On 02/14/2016 06:18 PM, Simon Glass wrote: > Hi Stephen, > > On 11 February 2016 at 09:19, Stephen Warren wrote: >> From: Stephen Warren >> >> This allows U-Boot to expose UMS and DFU protocols on this port in device >> mode, or to act as a USB host on

[U-Boot] [PATCH 18/30] dm: block: Rename device number member dev to devnum

2016-02-14 Thread Simon Glass
This is a device number, and we want to use 'dev' to mean a driver model device. Rename the member. Signed-off-by: Simon Glass --- board/sunxi/board.c | 4 ++-- cmd/cbfs.c | 1 + cmd/disk.c | 2 +- cmd/fat.c

Re: [U-Boot] [PATCH] test/py: handle exceptions in console creation

2016-02-14 Thread Stephen Warren
On 02/14/2016 06:19 PM, Simon Glass wrote: > Hi Stephen, > > On 10 February 2016 at 16:54, Stephen Warren wrote: >> From: Stephen Warren >> >> u_boot_console.exec_attach.get_spawn() performs two steps: >> 1) Spawn a process to communicate with the

[U-Boot] [PATCH 15/30] dm: part: Rename some partition functions

2016-02-14 Thread Simon Glass
Rename three partition functions so that they start with part_. This makes it clear what they relate to. Signed-off-by: Simon Glass --- board/cm5200/fwupdate.c | 2 +- cmd/ide.c | 6 +++--- cmd/mmc.c | 2 +- cmd/part.c| 8

[U-Boot] [PATCH 19/30] dm: block: Adjust device calls to go through helpers function

2016-02-14 Thread Simon Glass
To ease conversion to driver model, add helper functions which deal with calling each block device method. With driver model we can reimplement these functions with the same arguments. Use inline functions to avoid increasing code size on some boards. Signed-off-by: Simon Glass

[U-Boot] [PATCH 11/30] dm: blk: Rename get_device_and_partition()

2016-02-14 Thread Simon Glass
Rename this function to blk_get_device_part_str(). This is a better name because it makes it clear that the function returns a block device and parses a string. Signed-off-by: Simon Glass --- cmd/disk.c | 2 +- cmd/fat.c| 4 ++-- cmd/part.c | 2 +-

[U-Boot] [PATCH 00/30] dm: Add driver-model support for block drivers

2016-02-14 Thread Simon Glass
Recent additions of the MMC and DISK uclasses have indicated that it is time to look at adding a uclass for block devices. This series does this and includes a few clean-ups to the partition code also. A block device is typically a child device of its storage parent. For example an MMC device

[U-Boot] [PATCH 01/30] dm: Drop the block_dev_desc_t typedef

2016-02-14 Thread Simon Glass
Use 'struct' instead of a typdef. Also since 'struct block_dev_desc' is long and causes 80-column violations, rename it to struct blk_desc. Signed-off-by: Simon Glass --- api/api.c | 2 +- api/api_storage.c | 14 ++--- board/cm5200/fwupdate.c

[U-Boot] [PATCH 25/30] dm: usb: Convert USB storage to use driver-model for block devs

2016-02-14 Thread Simon Glass
Update this code to support CONFIG_BLK. Each USB storage device can have one or more block devices as children, each one representing a LUN (logical unit) of the USB device. Signed-off-by: Simon Glass --- common/usb_storage.c | 141

[U-Boot] [PATCH 22/30] dm: blk: Add a block-device uclass

2016-02-14 Thread Simon Glass
Add a uclass for block devices. These provide block-oriented data access, supporting reading, writing and erasing of whole blocks. Signed-off-by: Simon Glass --- drivers/block/Kconfig | 11 +++ drivers/block/Makefile | 2 + drivers/block/blk-uclass.c | 175

[U-Boot] [PATCH 27/30] dm: sandbox: Switch over to use DM for block devices

2016-02-14 Thread Simon Glass
Now that the drivers used by sandbox support CONFIG_BLK, we can switch sandbox over to use driver model for block devices. Signed-off-by: Simon Glass --- configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox_defconfig

[U-Boot] [PATCH 23/30] dm: sandbox: Prepare block driver for driver-model conversion

2016-02-14 Thread Simon Glass
Make a few minor changes to make it easier to add driver-model support. Signed-off-by: Simon Glass --- drivers/block/sandbox.c | 30 ++ 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/drivers/block/sandbox.c

[U-Boot] [PATCH 28/30] dm: sandbox: Drop the pre-DM host implementation

2016-02-14 Thread Simon Glass
Driver model is used for host device block devices now, so we don't need the old code. Remove it. Signed-off-by: Simon Glass --- drivers/block/sandbox.c | 90 - 1 file changed, 90 deletions(-) diff --git

[U-Boot] [PATCH 30/30] dm: blk: Add tests for block devices

2016-02-14 Thread Simon Glass
Add some tests to check that block devices work as expected. Signed-off-by: Simon Glass --- test/dm/Makefile | 1 + test/dm/blk.c| 96 2 files changed, 97 insertions(+) create mode 100644 test/dm/blk.c diff

[U-Boot] [PATCH 29/30] dm: usb: Clean up USB after each test

2016-02-14 Thread Simon Glass
The USB subsystem has a few counters that need to be reset since they are stored in static variables rather than driver-model data. An example is usb_max_devs. Ultimately we should move this data into the USB uclass. For now, make sure that USB is reset after each test, so that the counters go

[U-Boot] [PATCH 17/30] dm: sandbox: Enable cbfs and cramfs

2016-02-14 Thread Simon Glass
Enable these two filesystems to provide better build coverage in sandbox. Signed-off-by: Simon Glass --- include/configs/sandbox.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index 0f02839..2268c4e 100644 ---

[U-Boot] [PATCH 21/30] dm: usb: Tidy up storage code ready for driver model conversion

2016-02-14 Thread Simon Glass
Adjust a few things so that the addition of driver-models support involved adding code rather than also changing it. This makes the patches easier to review. Signed-off-by: Simon Glass --- common/usb_storage.c | 117 +++ 1 file

[U-Boot] [PATCH 26/30] dm: usb: Unbind old block devices when shutting down USB

2016-02-14 Thread Simon Glass
We don't want old block devices hanging around since they can still appear visible in some way. Possibly we should unbind all devices which don't cause problems by being unbound. Most likely we can remove everything except USB controllers, hubs and emulators. We can consider that later.

[U-Boot] [PATCH 24/30] dm: sandbox: Add driver-model block-device support for sandbox

2016-02-14 Thread Simon Glass
Update the host driver to support driver model for block devices. A future commit will remove the old code, but for now it is useful to be able to use it both with and without CONFIG_BLK. Signed-off-by: Simon Glass --- cmd/host.c| 9 +++-

[U-Boot] [PATCH 13/30] dm: sandbox: Enable all partition types

2016-02-14 Thread Simon Glass
It is useful to have sandbox build as much code as possible to avoid having to build every board to detect build errors. Also we may add tests for some more partition types at some point. Enable all partition types in sandbox. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 20/30] dm: usb: Avoid exceeding available array size for storage devices

2016-02-14 Thread Simon Glass
The limit on storage devices is USB_MAX_STOR_DEV but we use one extra element while probing to see if a device is a storage device. Avoid this, since it causes memory corruption. Signed-off-by: Simon Glass --- common/usb_storage.c | 14 +++--- 1 file changed, 7

[U-Boot] [PATCH 16/30] dm: cbfs: Fix handling of invalid type

2016-02-14 Thread Simon Glass
The comment for file_cbfs_type() says that it returns 0 for an invalid type. The code appears to check for -1, except that it uses an unsigned variable to store the type. This results in a warning on 64-bit machines. Adjust it to make the meaning clearer. Continue to handle the -1 case since it

[U-Boot] [PATCH 14/30] dm: part: Convert partition API use to linker lists

2016-02-14 Thread Simon Glass
We can use linker lists instead of explicitly declaring each function. This makes the code shorter by avoiding switch() statements and lots of header file declarations. While this does clean up the code it introduces a few code issues with SPL. SPL never needs to print partition information since

[U-Boot] [PATCH 10/30] dm: blk: Rename get_device() to blk_get_device_str()

2016-02-14 Thread Simon Glass
The current name is too generic. The function returns a block device based on a provided string. Rename it to aid searching and make its purpose clearer. Also add a few comments. Signed-off-by: Simon Glass --- cmd/part.c | 6 +++--- cmd/unzip.c| 2

[U-Boot] [PATCH 08/30] dm: blk: Add comments to a few functions

2016-02-14 Thread Simon Glass
The block interface is not well documented in the code. Pick two important functions and add comments. Signed-off-by: Simon Glass --- include/part.h | 30 ++ 1 file changed, 30 insertions(+) diff --git a/include/part.h b/include/part.h index

[U-Boot] [PATCH 12/30] dm: part: Add a cast to avoid a compiler warning

2016-02-14 Thread Simon Glass
In part_amiga.c the name is unsigned by bcpl_strcpy() requires a signed pointer. Add a cast to fix the warning. Signed-off-by: Simon Glass --- disk/part_amiga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk/part_amiga.c b/disk/part_amiga.c index

[U-Boot] [PATCH 07/30] dm: blk: Convert interface type to an enum

2016-02-14 Thread Simon Glass
Since these are sequentially numbered it makes sense to use an enum. It avoids having to maintain the maximum value, and provides a type we can use if it useful. In fact the maximum value is not used. Rename it to COUNT, since MAX suggests it is the maximum valid value, but it is not.

[U-Boot] [PATCH 06/30] dm: Add a new header for block devices

2016-02-14 Thread Simon Glass
At present block devices are tied up with partitions. But not all block devices have partitions within them. They are in fact separate concepts. Create a separate blk.h header file for block devices. Signed-off-by: Simon Glass --- include/blk.h | 71

[U-Boot] [PATCH 03/30] dm: part: Correct a sandbox build warning

2016-02-14 Thread Simon Glass
Adjust the cast to avoid a warning when stdint.h is used. Signed-off-by: Simon Glass --- disk/part_efi.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/disk/part_efi.c b/disk/part_efi.c index db5e7ed..7bd840f 100644 --- a/disk/part_efi.c +++

[U-Boot] [PATCH 02/30] dm: pci: Break out the common region display code

2016-02-14 Thread Simon Glass
Each region is displayed in almost the same way. Break out this common code into its own function. Signed-off-by: Simon Glass --- drivers/pci/pci_auto_common.c | 51 +++ 1 file changed, 17 insertions(+), 34 deletions(-) diff --git

[U-Boot] [PATCH 05/30] dm: part: Drop the common.h header

2016-02-14 Thread Simon Glass
We should not include in header files. Each C file should include it if needed. Signed-off-by: Simon Glass --- include/part.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/part.h b/include/part.h index d1e9d0f..140c9b6 100644 --- a/include/part.h +++

[U-Boot] [PATCH 04/30] dm: fdtdec: Correct a sandbox build warning

2016-02-14 Thread Simon Glass
Adjust the cast to avoid a warning when stdint.h is used. Signed-off-by: Simon Glass --- lib/fdtdec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 1b1ca02..d23f187 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@

[U-Boot] [PATCH 00/16] image: Fix various test failures

2016-02-14 Thread Simon Glass
Recent changes have broken the FIT and vboot tests. Also the SPI tests have been wrong since before the last release and were disabled. This series collects together the required fixes. Note: The FIT and vboot tests are hard to run (in that each requires manual effort). At some point we should

[U-Boot] [PATCH 14/16] sandbox: spi: Remove an incorrect free()

2016-02-14 Thread Simon Glass
We must not free data that is managed by driver mode. Remove this line, which is a hangover from the pre-driver-model code. This fixes a problem where 'sf probe' crashes U-Boot if the backing file for the SPI flash cannot be found. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 15/16] spi: Correct two error return values

2016-02-14 Thread Simon Glass
When an error number is provided we should use it, not change it. This fixes the SPI and SPI flash tests. One of these is long-standing. The other seems to have been introduced by commit 1e90d9fd (sf: Move read_id code to sf_ops). Signed-off-by: Simon Glass Fixes: 1e90d9fd

[U-Boot] [PATCH 16/16] spi: Re-enable the SPI flash tests

2016-02-14 Thread Simon Glass
These are working correctly again, so re-enable them. Signed-off-by: Simon Glass --- test/dm/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/dm/Makefile b/test/dm/Makefile index d4f3f22..fd0198f 100644 --- a/test/dm/Makefile +++

[U-Boot] [PATCH 13/16] sandbox: spi: Add more debugging to SPI emulation

2016-02-14 Thread Simon Glass
Add a little more debugging to help when things go wrong. Signed-off-by: Simon Glass --- drivers/mtd/spi/sandbox.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/spi/sandbox.c b/drivers/mtd/spi/sandbox.c index 895604d..ec07be7

[U-Boot] [PATCH 08/16] timer: Provide an early timer

2016-02-14 Thread Simon Glass
In some cases the timer must be accessible before driver model is active. Examples include when using CONFIG_TRACE to trace U-Boot's execution before driver model is set up. Enable this option to use an early timer. These functions must be supported by your timer driver: timer_early_get_count()

[U-Boot] [PATCH 09/16] timer: Set up the real timer after driver model is available

2016-02-14 Thread Simon Glass
When using the early timer, we need to manually trigger setting up the real timer. This will not happen automatically. Do this immediately after starting driver model. Signed-off-by: Simon Glass --- common/board_f.c | 6 ++ common/board_r.c | 14 -- 2 files

[U-Boot] [PATCH 06/16] trace: Improve the trace test number recognition

2016-02-14 Thread Simon Glass
The awk tool can be confused by return character (ASCII 13) in its input since it thinks there is a separate field. These can appear if the terminal is in raw mode, perhaps due to a previous U-Boot crash with sandbox. This is very confusing. Remove these so that the trace test passes.

[U-Boot] [PATCH 11/16] sandbox: Correct ordering of defconfig

2016-02-14 Thread Simon Glass
This has got out of order: fix it. Signed-off-by: Simon Glass --- configs/sandbox_defconfig | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index b5b81ca..8b878e2 100644 ---

[U-Boot] [PATCH 12/16] sandbox: Enable the early timer

2016-02-14 Thread Simon Glass
Enable this so that tracing works with sandbox. Signed-off-by: Simon Glass --- configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 8b878e2..02534bf 100644 --- a/configs/sandbox_defconfig

[U-Boot] [PATCH 07/16] timer: Support tracing fully

2016-02-14 Thread Simon Glass
A few of the functions in the timer uclass are not marked with 'notrace'. Fix this so that tracing can be used with CONFIG_TRACE. Signed-off-by: Simon Glass --- drivers/timer/timer-uclass.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH 01/16] image: Correct the OS location code to work on sandbox

2016-02-14 Thread Simon Glass
A recent change broke the 'bootm' command on sandbox. The root cause is using a pointer as an address. Conversion from pointer to address needs to use map_to_sysmem() so that sandbox can do the right thing. The problem was pre-existing but uncovered by a recent commit. Fix this. Also move

[U-Boot] [PATCH 05/16] lib: Don't instrument the div64 function

2016-02-14 Thread Simon Glass
This function can be called from the timer code on instrumented functions. Mark it as 'notrace' so that it doesn't cause infinite recursion. Signed-off-by: Simon Glass --- lib/div64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/div64.c

[U-Boot] [PATCH 03/16] image: Fix FIT and vboot tests to exit sandbox correctly

2016-02-14 Thread Simon Glass
When used with a device tree, sandbox now requires a 'reset' controller. Add this to the device trees so that reset works and the tests can complete. Signed-off-by: Simon Glass Fixes: 5010d98f (sandbox: Use the reset driver to handle reset) --- test/image/test-fit.py

[U-Boot] [PATCH 04/16] trace: Fix compiler warnings in trace

2016-02-14 Thread Simon Glass
With min() we must use the same type for each parameter. Fix two problems in trace.c which produce compiler warnings. Signed-off-by: Simon Glass --- cmd/trace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/trace.c b/cmd/trace.c index

[U-Boot] [PATCH 02/16] Revert "image-fit: Fix signature checking"

2016-02-14 Thread Simon Glass
This reverts commit 84ca65aa4bd0d03867e9e49805201d0564d3ffb0. On signature verification failures fit_image_verify() should NOT exit with error. Only keys marked 'required' can cause image verification failure. This logic is already there and works correctly. Add a comment to make this clear.

Re: [U-Boot] [PATCH] test/py: put "Starting U-Boot" into separate log section

2016-02-14 Thread Simon Glass
On 11 February 2016 at 11:46, Stephen Warren wrote: > From: Stephen Warren > > The initial boot of U-Boot happens within the context of the first test > that needs to access the U-Boot console when there is no existing > connection. This keeps all

Re: [U-Boot] [PATCH] test/py: print summary in test order

2016-02-14 Thread Simon Glass
On 10 February 2016 at 13:47, Stephen Warren wrote: > From: Stephen Warren > > Use lists rather than sets to record the status of tests. This causes > the test summary in the HTML file to be generated in the same order as > the tests are (or would have

Re: [U-Boot] [PATCH] test/py: handle exceptions in console creation

2016-02-14 Thread Simon Glass
Hi Stephen, On 10 February 2016 at 16:54, Stephen Warren wrote: > From: Stephen Warren > > u_boot_console.exec_attach.get_spawn() performs two steps: > 1) Spawn a process to communicate with the serial console. > 2) Reset the board so that U-Boot

Re: [U-Boot] [PATCH V3] Makefile: remove BUILD_TAG from KBUILD_CFLAGS

2016-02-14 Thread Simon Glass
On 11 February 2016 at 00:59, Masahiro Yamada wrote: > 2016-02-11 7:16 GMT+09:00 Stephen Warren : >> From: Stephen Warren >> >> If BUILD_TAG is part of KBUILD_CFLAGS, then any time the value changes, >> all files get

Re: [U-Boot] [PATCH] test/py: fix CONFIG_SPL test

2016-02-14 Thread Simon Glass
On 10 February 2016 at 12:39, Stephen Warren wrote: > From: Stephen Warren > > The Python ini file parser that's used to parse .config converts all keys > to lower-case. Hence, all queries against the results must use lower-case. > Fix

Re: [U-Boot] [PATCH] ARM: tegra: enable USB device mode port on Dalmore

2016-02-14 Thread Simon Glass
Hi Stephen, On 11 February 2016 at 09:19, Stephen Warren wrote: > From: Stephen Warren > > This allows U-Boot to expose UMS and DFU protocols on this port in device > mode, or to act as a USB host on the port, using an "OTG" (micro-B to > female A

Re: [U-Boot] [PATCH 1/2] test/py: don't import pexpect

2016-02-14 Thread Simon Glass
On 8 February 2016 at 18:23, Stephen Warren wrote: > From: Stephen Warren > > The code replaced pexpect with custom code long ago. Don't import the > unused module so it doesn't need to be installed. > > Signed-off-by: Stephen Warren

Re: [U-Boot] [PATCH 2/2] Enable test/py for sandbox in Travis CI

2016-02-14 Thread Simon Glass
On 10 February 2016 at 22:41, Heiko Schocher wrote: > Hello Stephen, > > Am 09.02.2016 um 02:23 schrieb Stephen Warren: >> >> From: Stephen Warren >> >> This provides runtime test coverage in Travis, in addition to the existing >> build coverage. >> >>

Re: [U-Boot] [PATCH v2 00/23] dm: tegra: Convert tegra20 and tegra124 video drivers to driver model

2016-02-14 Thread Simon Glass
Hi, On 1 February 2016 at 17:00, Stephen Warren wrote: > > On 01/30/2016 04:37 PM, Simon Glass wrote: >> >> This series moves these two drivers over to use driver model for video. >> >> This involves the following steps: >> - Sync up some device tree files with Linux >> -

Re: [U-Boot] [PATCH] test/py: add docs for gdbserver and pytest options

2016-02-14 Thread Simon Glass
On 8 February 2016 at 14:49, Stephen Warren wrote: > From: Stephen Warren > > Add documentation describing the new --gdbserver feature, and some common > pytest options. > > Signed-off-by: Stephen Warren > --- > test/py/README.md |

Re: [U-Boot] How to boot bare board binary from U-Boot>

2016-02-14 Thread veerendranathj
thanks for the reply... I am aware of these options. Here problem is when I use go command my program has to use U-Boot service functions(I mean standalone binaries will run in U-Boot environment)... But I want to take complete control from U-Boot as my binary is self-contained binary like

Re: [U-Boot] [PATCH] openrisc: updating build tools naming convention

2016-02-14 Thread Guillaume REMBERT
Hi Bin, Le 06/02/2016 05:11, Bin Meng a écrit : > Hi Guillaume, > > On Fri, Feb 5, 2016 at 9:04 PM, Guillaume REMBERT > wrote: >> Hi Bin, >> >> Please use following repository with all needed software: linux / gcc / ... >> https://github.com/openrisc > Is

Re: [U-Boot] [PATCH 3/3] spi: omap3: Convert to driver model

2016-02-14 Thread Christophe Henri RICARD
Hi Jagan, Acked-by: Christophe Ricard Best Regards Christophe -Original Message- From: Jagan Teki [mailto:jt...@openedev.com] Sent: jeudi 11 février 2016 20:01 To: u-boot@lists.denx.de Cc: Jagan Teki; Tom Rini; Simon Glass; Christophe Henri RICARD Subject:

Re: [U-Boot] [PATCH 2/3] spi: omap3: Make local functions as static

2016-02-14 Thread Christophe Henri RICARD
Hi Jagan, Acked-by: Christophe Ricard Best Regards Christophe -Original Message- From: Jagan Teki [mailto:jt...@openedev.com] Sent: jeudi 11 février 2016 20:01 To: u-boot@lists.denx.de Cc: Jagan Teki; Tom Rini; Simon Glass; Christophe Henri RICARD Subject:

[U-Boot] how does board_init_f() -> board_init_r?

2016-02-14 Thread quantumlight
I am trying to modify the bootloader code for NVIDIA's jetson board. So I am looking at crt0.S. It seems that two builds happen, one with CONFIG_SPL_BUILD and one without. So you end up with two file, u-boot.bin and spl/u-boot-spl.bin. However, I am unable to find the code path that calls

Re: [U-Boot] [PATCH 1/3] spi: omap3: Move headers code inside the driver

2016-02-14 Thread Christophe Henri RICARD
Hi Jagan, Sorry for the delay. Acked-by: Christophe Ricard Best Regards Christophe -Original Message- From: Jagan Teki [mailto:jt...@openedev.com] Sent: jeudi 11 février 2016 20:01 To: u-boot@lists.denx.de Cc: Jagan Teki; Tom Rini; Simon Glass; Christophe

Re: [U-Boot] [PATCH 1/3] spi: omap3: Move headers code inside the driver

2016-02-14 Thread Jagan Teki
On 15 February 2016 at 01:27, Christophe Henri RICARD wrote: > Hi Jagan, > > Sorry for the delay. > > Acked-by: Christophe Ricard Can you please test these 3 and these are on top of your 1/4 and 2/4 patches. > > -Original Message-

[U-Boot] [PATCH v6 00/76] mtd: Add SPI-NOR core support

2016-02-14 Thread Jagan Teki
Compared to previous patch series this series adds spi-nor core with spi-nor controller drivers are of "mtd uclass" This is whole series for all spi-nor related changes, and while series tested on spansion spi-nor chip. Know issue: - arch/x86/lib/mrccache.c uses dm_spi_flash_ops, this need to

[U-Boot] [PATCH v6 01/76] mtd: Add m25p80 driver

2016-02-14 Thread Jagan Teki
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

[U-Boot] [PATCH v6 03/76] mtd: Add SPI-NOR core support

2016-02-14 Thread Jagan Teki
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

[U-Boot] [PATCH v6 09/76] mtd: spi-nor: Add dm spi-nor probing

2016-02-14 Thread Jagan Teki
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

[U-Boot] [PATCH v6 08/76] mtd: spi-nor: Add spi_nor support in m25p80

2016-02-14 Thread Jagan Teki
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:

[U-Boot] [PATCH v6 07/76] mtd: spi-nor: Add MTD support

2016-02-14 Thread Jagan Teki
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

[U-Boot] [PATCH v6 10/76] mtd: spi-nor: Add spi_flash_probe for mtd-dm-spi-nor

2016-02-14 Thread Jagan Teki
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

[U-Boot] [PATCH v6 12/76] mtd: spi-nor: m25p80: Add spi_nor support for non-dm

2016-02-14 Thread Jagan Teki
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

[U-Boot] [PATCH v6 14/76] sf: Use erasesize instead of sector_size

2016-02-14 Thread Jagan Teki
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

[U-Boot] [PATCH v6 13/76] sf: Rename erase_size to erasesize

2016-02-14 Thread Jagan Teki
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

[U-Boot] [PATCH v6 05/76] mtd: spi-nor: Add Kconfig entry for MTD_SPI_NOR

2016-02-14 Thread Jagan Teki
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 ---

[U-Boot] [PATCH v6 04/76] doc: device-tree-bindings: jedec, spi-nor

2016-02-14 Thread Jagan Teki
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

[U-Boot] [PATCH v6 06/76] mtd: spi-nor: Add kconfig for MTD_SPI_NOR_USE_4K_SECTORS

2016-02-14 Thread Jagan Teki
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

[U-Boot] [PATCH v6 15/76] sf: Use uint64_t for flash->size

2016-02-14 Thread Jagan Teki
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

[U-Boot] [PATCH v6 20/76] mtd: spi-nor: Rename SPI_FLASH_BAR to SPI_NOR_BAR

2016-02-14 Thread Jagan Teki
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 ---

[U-Boot] [PATCH v6 19/76] spi: Rename spi_read_then_write to spi_write_then_read

2016-02-14 Thread Jagan Teki
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:

[U-Boot] [PATCH v6 17/76] spi_flash: Use spi_flash_t instead of struct spi_flash

2016-02-14 Thread Jagan Teki
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

[U-Boot] [PATCH v6 16/76] spi_flash: Use mtd_info operation for SPI-NOR

2016-02-14 Thread Jagan Teki
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

[U-Boot] [PATCH v6 23/76] mtd: spi-nor: spl: Follow ascending order of include headers

2016-02-14 Thread Jagan Teki
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

[U-Boot] [PATCH v6 24/76] mtd: spi-nor: fsl_espi_spl: Use mtd_info

2016-02-14 Thread Jagan Teki
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 ---

[U-Boot] [PATCH v6 25/76] mtd: spi-nor: spi_spl_load: Use mtd_info

2016-02-14 Thread Jagan Teki
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 ---

[U-Boot] [PATCH v6 18/76] mtd: spi-nor: Move spi_read_then_write to spi layer

2016-02-14 Thread Jagan Teki
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

[U-Boot] [PATCH v6 21/76] mtd: spi-nor: Add Kconfig entry for SPI_NOR_BAR

2016-02-14 Thread Jagan Teki
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 ---

[U-Boot] [PATCH v6 28/76] arm: zynq: Kconfig: Drop DM_SPI_FLASH

2016-02-14 Thread Jagan Teki
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

  1   2   >