Re: [U-Boot] [PATCH V2] imx-common: consider mux_ctrl_ofs when setting mux_mode

2015-09-23 Thread Stefano Babic
Hi Peng, On 23/09/2015 05:13, Peng Fan wrote: > Some i.MXes use __NA_ or 0 to avoid setting mux_mode, but the following patch > only take i.MX6/7 into consideration. > > "c3c8a5748897b24f18618047804317167a531dd3 imx-common: fix iomux settings" > > Use is_soc_type(MXC_CPU_MX7) to avoid breaking o

[U-Boot] [PATCH] configs: ls1021atwr: Enable ID EEPROM for SD boot

2015-09-23 Thread Yuan Yao
I2C1 can work on ls102xa rev2.0 SD boot, so add ID EEPROM for SD boot. Signed-off-by: Yuan Yao --- include/configs/ls1021atwr.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h index 7dcb719..59e704e 100644 --- a/include/configs/ls1

Re: [U-Boot] [PATCH] dfu: dfu_sf: Take the start address into account

2015-09-23 Thread Lukasz Majewski
Hi Fabio, > From: Fabio Estevam > > The dfu_alt_info_spl variable allows passing a starting point > for the binary to be flashed in the SPI NOR. > > For example, if we have 'dfu_alt_info_spl=spl raw 0x400', this means > that we want to flash the binary starting at address 0x400. > > In order t

Re: [U-Boot] [PATCH v2 5/5] cgtqmx6eval: Protect the manufacturing information in SPI NOR

2015-09-23 Thread Jagan Teki
On 23 September 2015 at 01:27, Otavio Salvador wrote: > On Tue, Sep 22, 2015 at 4:11 PM, Jagan Teki wrote: >> On 12 September 2015 at 19:27, Otavio Salvador >> wrote: >>> +static void spinor_protect(void) >>> +{ >>> + struct spi_flash *spi; >>> + >>> + spi = spi_flash_probe(CONFIG_E

Re: [U-Boot] [PATCH] FIX: fat: Provide correct return code from disk_{read|write} to upper layers

2015-09-23 Thread Lukasz Majewski
Hi Stephen, > On 09/03/2015 08:18 AM, Lukasz Majewski wrote: > > Hi Lukasz, > > > >> Hi Tom, > >> > >>> On Thu, Sep 03, 2015 at 02:21:39PM +0200, Lukasz Majewski wrote: > >>> > It is very common that FAT code is using following pattern: > if (disk_{read|write}() < 0) > retu

Re: [U-Boot] [PATCH 1/4] exynos: Properly initialize host_caps in s5p_sdhci_core_init()

2015-09-23 Thread Lukasz Majewski
Hi Tobias, > The sdhci_host struct is allocated in s5p_sdhci_init() but the > fields are not initialized. > > Signed-off-by: Tobias Jakobi > --- > drivers/mmc/s5p_sdhci.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c > index 4db51d6.

Re: [U-Boot] [PATCH 2/4] exynos: Fix passing of errors in exynos_mmc_init()

2015-09-23 Thread Lukasz Majewski
Hi Tobias, > exynos_mmc_init() always returns zero, so for the caller > it looks like it never fails. > > Correct this by returning the error code of process_nodes(). > For process_nodes() do something similar and return early > when do_sdhci_init() fails. > > Signed-off-by: Tobias Jakobi > ---

Re: [U-Boot] [PATCH 3/4] exynos: be more verbose in process_nodes()

2015-09-23 Thread Lukasz Majewski
Hi Tobias, > + ret = sdhci_get_config(blob, node, host); > + if (ret) { > + printf("%s: failed to decode dev %d (%d)\n", > __func__, i, ret); return -1; My only commit here is regarding leaving return -1 as it is now. I think, that it would be better to

Re: [U-Boot] [PATCH 4/4] exynos: fix and cleanup do_sdhci_init()

2015-09-23 Thread Lukasz Majewski
Hi Tobias, > The CD check is currently inverted. dm_gpio_get_value() returns > one when a card is detected. All other values (zero when there > is no card, or negative values for the internal errors) indicate > failure. > > Signed-off-by: Tobias Jakobi > --- > drivers/mmc/s5p_sdhci.c | 20 +

Re: [U-Boot] [PATCH 4/4] exynos: fix and cleanup do_sdhci_init()

2015-09-23 Thread Lukasz Majewski
Hi Lukasz, > Hi Tobias, > > > The CD check is currently inverted. dm_gpio_get_value() returns > > one when a card is detected. All other values (zero when there > > is no card, or negative values for the internal errors) indicate > > failure. > > > > Signed-off-by: Tobias Jakobi > > --- > > dr

Re: [U-Boot] Regression in usb-storage in u-boot 2015.04 ???

2015-09-23 Thread Hans de Goede
Hi, On 14-08-15 01:16, Marek Vasut wrote: On Monday, April 27, 2015 at 10:40:18 AM, Hans de Goede wrote: Hi, Hi again! On 27-04-15 03:09, Marek Vasut wrote: On Friday, March 27, 2015 at 09:47:25 AM, Hans de Goede wrote: Hi, Hi! [...] scanning usb for storage devices... 1 St

Re: [U-Boot] [PATCH 2/4] exynos: Fix passing of errors in exynos_mmc_init()

2015-09-23 Thread Jaehoon Chung
Hi. On 09/23/2015 06:39 PM, Lukasz Majewski wrote: > Hi Tobias, > >> exynos_mmc_init() always returns zero, so for the caller >> it looks like it never fails. >> >> Correct this by returning the error code of process_nodes(). >> For process_nodes() do something similar and return early >> when do

Re: [U-Boot] Regression in usb-storage in u-boot 2015.04 ???

2015-09-23 Thread Marek Vasut
On Wednesday, September 23, 2015 at 11:50:07 AM, Hans de Goede wrote: > Hi, Hi! > On 14-08-15 01:16, Marek Vasut wrote: > > On Monday, April 27, 2015 at 10:40:18 AM, Hans de Goede wrote: > >> Hi, > > > > Hi again! > > > >> On 27-04-15 03:09, Marek Vasut wrote: > >>> On Friday, March 27, 2015 at

Re: [U-Boot] [PATCH 4/4] exynos: fix and cleanup do_sdhci_init()

2015-09-23 Thread Jaehoon Chung
Hi, On 09/23/2015 06:48 PM, Lukasz Majewski wrote: > Hi Lukasz, > >> Hi Tobias, >> >>> The CD check is currently inverted. dm_gpio_get_value() returns >>> one when a card is detected. All other values (zero when there >>> is no card, or negative values for the internal errors) indicate >>> failur

Re: [U-Boot] [PATCH v6 1/5] spi: cadence_qspi: move trigger base configuration in init

2015-09-23 Thread Jagan Teki
On 11 September 2015 at 23:58, Vikas Manocha wrote: > No need to configure indirect trigger address for every read/write. > > Signed-off-by: Vikas Manocha > --- > > Changes in v6: None > Changes in v5: fixed type cast compilation warnings. > Changes in v4: removed extra type casts. > Changes in v

Re: [U-Boot] [PATCH 4/4] exynos: fix and cleanup do_sdhci_init()

2015-09-23 Thread Lukasz Majewski
Hi Jaehoon, > Hi, > > On 09/23/2015 06:48 PM, Lukasz Majewski wrote: > > Hi Lukasz, > > > >> Hi Tobias, > >> > >>> The CD check is currently inverted. dm_gpio_get_value() returns > >>> one when a card is detected. All other values (zero when there > >>> is no card, or negative values for the int

Re: [U-Boot] [PATCH 4/4] exynos: fix and cleanup do_sdhci_init()

2015-09-23 Thread Minkyu Kang
On 23/09/15 18:59, Jaehoon Chung wrote: > Hi, > > On 09/23/2015 06:48 PM, Lukasz Majewski wrote: >> Hi Lukasz, >> >>> Hi Tobias, >>> The CD check is currently inverted. dm_gpio_get_value() returns one when a card is detected. All other values (zero when there is no card, or negative

Re: [U-Boot] [PATCH v6 2/5] spi: cadence_qspi: fix indirect read/write start address

2015-09-23 Thread Jagan Teki
On 11 September 2015 at 23:58, Vikas Manocha wrote: > Indirect read/write start addresses are flash start addresses for indirect > read > or write transfers. These should be absolute flash addresses instead of > offsets. > > Signed-off-by: Vikas Manocha Reviewed-by: Jagan Teki > --- > > Chang

Re: [U-Boot] [PATCH v6 2/5] spi: cadence_qspi: fix indirect read/write start address

2015-09-23 Thread Marek Vasut
On Wednesday, September 23, 2015 at 12:11:20 PM, Jagan Teki wrote: > On 11 September 2015 at 23:58, Vikas Manocha wrote: > > Indirect read/write start addresses are flash start addresses for > > indirect read or write transfers. These should be absolute flash > > addresses instead of offsets. > >

Re: [U-Boot] [PATCH 2/4] exynos: Fix passing of errors in exynos_mmc_init()

2015-09-23 Thread Minkyu Kang
On 23/09/15 18:54, Jaehoon Chung wrote: > Hi. > > On 09/23/2015 06:39 PM, Lukasz Majewski wrote: >> Hi Tobias, >> >>> exynos_mmc_init() always returns zero, so for the caller >>> it looks like it never fails. >>> >>> Correct this by returning the error code of process_nodes(). >>> For process_node

Re: [U-Boot] [PATCH v6 3/5] spi: cadence_qspi: fix base trigger address & transfer start address

2015-09-23 Thread Jagan Teki
On 11 September 2015 at 23:58, Vikas Manocha wrote: > This patch is to separate the base trigger from the read/write transfer start > addresses. > > Base trigger register address (0x1c register) corresponds to the address which > should be put on AHB bus to handle indirect transfer triggered befor

Re: [U-Boot] [PATCH v6 4/5] spi: cadence_qspi: rename ahbbase to flashbase for clarity

2015-09-23 Thread Jagan Teki
On 11 September 2015 at 23:58, Vikas Manocha wrote: > plat->ahbbase renamed to plat->flashbase for better clarity. Can you give short description about this rename. > > Signed-off-by: Vikas Manocha > --- > > Changes in v6: none > Changes in v5: none > Changes in v4: new > > drivers/spi/cadence

Re: [U-Boot] [PATCH v6 2/5] spi: cadence_qspi: fix indirect read/write start address

2015-09-23 Thread Jagan Teki
On 23 September 2015 at 15:43, Marek Vasut wrote: > On Wednesday, September 23, 2015 at 12:11:20 PM, Jagan Teki wrote: >> On 11 September 2015 at 23:58, Vikas Manocha wrote: >> > Indirect read/write start addresses are flash start addresses for >> > indirect read or write transfers. These should

Re: [U-Boot] [PATCH v6 2/5] spi: cadence_qspi: fix indirect read/write start address

2015-09-23 Thread Marek Vasut
On Wednesday, September 23, 2015 at 12:30:34 PM, Jagan Teki wrote: > On 23 September 2015 at 15:43, Marek Vasut wrote: > > On Wednesday, September 23, 2015 at 12:11:20 PM, Jagan Teki wrote: > >> On 11 September 2015 at 23:58, Vikas Manocha wrote: > >> > Indirect read/write start addresses are fla

Re: [U-Boot] [PATCH v6 5/5] spi: cadence_qspi: get fifo width from device tree

2015-09-23 Thread Jagan Teki
Hi Vikas, On 11 September 2015 at 23:58, Vikas Manocha wrote: > Fifo width could be different on different socs, e.g. stv0991 & altera soc > have different fifo width. > > Signed-off-by: Vikas Manocha Reviewed-by: Jagan Teki > --- > > Changes in v6: none > Changes in v5: none > Changes in v4:

Re: [U-Boot] [PATCH v2 5/5] cgtqmx6eval: Protect the manufacturing information in SPI NOR

2015-09-23 Thread Otavio Salvador
On Wed, Sep 23, 2015 at 5:15 AM, Jagan Teki wrote: > Sorry, I didn't understand why protection range or bits are specific > to board, is it different in Congetc because the flash area being > protected by means of sector range which is obviously the flash > offset. The protection range is board

Re: [U-Boot] [PATCH v2 00/18] ARM: uniphier: use pinctrl drivers and some cleanups

2015-09-23 Thread Masahiro Yamada
2015-09-11 20:17 GMT+09:00 Masahiro Yamada : > > > > Masahiro Yamada (18): > pinctrl: uniphier: add UniPhier pinctrl core support > pinctrl: uniphier: add UniPhier PH1-LD4 pinctrl driver > pinctrl: uniphier: add UniPhier PH1-Pro4 pinctrl driver > pinctrl: uniphier: add UniPhier PH1-sLD8 pin

Re: [U-Boot] [PATCH v2 00/14] ARM: uniphier: clean-up, refactor, and then new SoCs support

2015-09-23 Thread Masahiro Yamada
2015-09-22 0:27 GMT+09:00 Masahiro Yamada : > > > > Masahiro Yamada (14): > ARM: uniphier: remove unused header file > ARM: uniphier: remove useless wrapper functions > ARM: uniphier: refactor LED function > ARM: uniphier: move CONFIG_SUPPORT_CARD_* macros to local file > ARM: uniphier: a

[U-Boot] Pull request: u-boot-uniphier/master

2015-09-23 Thread Masahiro Yamada
Hi Tom, Here is a pretty big series for UniPhier SoC changes. pinctrl drivers, various fixes, refactoring, new SoC/board support, etc. The following changes since commit 8a5f6129d1450f5ff92a55cfcfd7b96ee019e303: pinctrl: move dm_scan_fdt_node() out of pinctrl uclass (2015-09-19 15:42:15 -06

Re: [U-Boot] [PATCH 3/3] arm: socfpga: Enable saveenv for SD/MMC

2015-09-23 Thread Dinh Nguyen
On Tue, Sep 22, 2015 at 8:57 PM, Marek Vasut wrote: > On Wednesday, September 23, 2015 at 12:01:34 AM, > dingu...@opensource.altera.com > wrote: >> From: Dinh Nguyen >> >> Enable the able to save the environment variables when SD/MMC is used. >> >> Signed-off-by: Dinh Nguyen >> --- >> v2: Move

Re: [U-Boot] [PATCH] dfu: dfu_sf: Take the start address into account

2015-09-23 Thread Stephen Warren
On 09/22/2015 09:50 PM, Fabio Estevam wrote: From: Fabio Estevam The dfu_alt_info_spl variable allows passing a starting point for the binary to be flashed in the SPI NOR. For example, if we have 'dfu_alt_info_spl=spl raw 0x400', this means that we want to flash the binary starting at address

Re: [U-Boot] [PATCH] dfu: dfu_sf: Take the start address into account

2015-09-23 Thread Fabio Estevam
On Wed, Sep 23, 2015 at 12:22 PM, Stephen Warren wrote: > This feels wrong. The entries in the DFU list must already be > sector-aligned, so there's no need for the code to round them. If the > entries are not already aligned, then the aligned erase operations will > erase other data, which will

Re: [U-Boot] [PATCH v3 5/5] common: Enable fdt_support in SPL build

2015-09-23 Thread Simon Glass
Hi, On 22 September 2015 at 21:10, Chin Liang See wrote: > > Hi, > > > From: ma...@denx.de > > Sent: Friday, September 11, 2015 8:45 AM > > To: Simon Glass > > Cc: Chin Liang See; ZY - u-boot; Dinh Nguyen; Dinh Nguyen; ZY - sr; Vikas > > Manocha; Jagannadh Teki; ZY - pavel > > Subject: Re: [PATC

Re: [U-Boot] [PATCH] dfu: dfu_sf: Take the start address into account

2015-09-23 Thread Fabio Estevam
On Wed, Sep 23, 2015 at 12:36 PM, Fabio Estevam wrote: > On Wed, Sep 23, 2015 at 12:22 PM, Stephen Warren > wrote: > >> This feels wrong. The entries in the DFU list must already be >> sector-aligned, so there's no need for the code to round them. If the >> entries are not already aligned, then

Re: [U-Boot] [PATCH v2 5/5] cgtqmx6eval: Protect the manufacturing information in SPI NOR

2015-09-23 Thread Jagan Teki
On 23 September 2015 at 19:06, Otavio Salvador wrote: > On Wed, Sep 23, 2015 at 5:15 AM, Jagan Teki wrote: > >> Sorry, I didn't understand why protection range or bits are specific >> to board, is it different in Congetc because the flash area being >> protected by means of sector range which is

Re: [U-Boot] [PATCH] dfu: dfu_sf: Take the start address into account

2015-09-23 Thread Stephen Warren
On 09/23/2015 09:44 AM, Fabio Estevam wrote: On Wed, Sep 23, 2015 at 12:36 PM, Fabio Estevam wrote: On Wed, Sep 23, 2015 at 12:22 PM, Stephen Warren wrote: This feels wrong. The entries in the DFU list must already be sector-aligned, so there's no need for the code to round them. If the entr

Re: [U-Boot] [PATCH v2 5/5] cgtqmx6eval: Protect the manufacturing information in SPI NOR

2015-09-23 Thread Otavio Salvador
Hello Jagan, On Wed, Sep 23, 2015 at 12:56 PM, Jagan Teki wrote: > All looks fine as per your patches, but probing flash from board files > isn't a good approach if one more board add similar approach. > > I have an idea similar to "cfi_flash" approach. > > "sf protect on off len" then based on

Re: [U-Boot] [PATCH 2/3] net: phy: Change to print all phys that are not found

2015-09-23 Thread Joe Hershberger
Hi Bin, On Fri, Sep 4, 2015 at 6:56 AM, Bin Meng wrote: > In get_phy_device_by_mask(), when no phy is found, currently we only > print a message to show the first phy address that is not found. But > this is not always the case as multiple phys can be specified by > phy_mask. Change to print all

Re: [U-Boot] [PATCH 3/3] net: phy: Test previous phydev->dev against new mac dev

2015-09-23 Thread Joe Hershberger
Hi Bin, On Fri, Sep 4, 2015 at 6:56 AM, Bin Meng wrote: > In phy_connect_dev(), if the phy device has an accociated mac device > before, a warning message will be printed. But we should test the > old device against the new one, if they are actually the same one, > don't print the warning message

Re: [U-Boot] [PATCH v2 5/5] cgtqmx6eval: Protect the manufacturing information in SPI NOR

2015-09-23 Thread Jagan Teki
On 23 September 2015 at 22:21, Otavio Salvador wrote: > Hello Jagan, > > On Wed, Sep 23, 2015 at 12:56 PM, Jagan Teki wrote: >> All looks fine as per your patches, but probing flash from board files >> isn't a good approach if one more board add similar approach. >> >> I have an idea similar to

Re: [U-Boot] [PATCH v2 5/5] cgtqmx6eval: Protect the manufacturing information in SPI NOR

2015-09-23 Thread Otavio Salvador
On Wed, Sep 23, 2015 at 2:15 PM, Jagan Teki wrote: > On 23 September 2015 at 22:21, Otavio Salvador > wrote: >> Hello Jagan, >> >> On Wed, Sep 23, 2015 at 12:56 PM, Jagan Teki wrote: >>> All looks fine as per your patches, but probing flash from board files >>> isn't a good approach if one more

[U-Boot] [PATCH 00/11] vexpress64 FVP and Juno configuration updates

2015-09-23 Thread Ryan Harkin
This patch series updates the default configuration of the vexpress64 FVP and Juno platforms to allow it to work on a variety of setups without modification by the user. [PATCH 01/11] vexpress64: fix checkpatch warnings [PATCH 02/11] vexpress64: Kconfig: tidy up [PATCH 03/11] Kconfig: add CONFIG_S

[U-Boot] [PATCH 01/11] vexpress64: fix checkpatch warnings

2015-09-23 Thread Ryan Harkin
This patch fixes a couple of checkpatch warnings on the vexpress64 config. Signed-off-by: Ryan Harkin CC: David Feng CC: Bhupesh Sharma CC: Linus Walleij --- include/configs/vexpress_aemv8a.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/configs/vexpress_ae

[U-Boot] [PATCH 05/11] vexpress64: fvp dram: add DRAM configuration

2015-09-23 Thread Ryan Harkin
Create an additional FVP configuration to boot images pre-loaded into DRAM. Sometimes it's preferential to boot the model by loading the files directly into DRAM via model parameters, rather than using SemiHosting. An example of model parmaters that are used to pre-load the files into DRAM: -

[U-Boot] [PATCH 02/11] vexpress64: Kconfig: tidy up

2015-09-23 Thread Ryan Harkin
The FVP and Juno settings were identical, but duplicated, so I removed the duplication with this patch. Signed-off-by: Ryan Harkin Reviewed-by: Linus Walleij CC: David Feng CC: Bhupesh Sharma CC: Linus Walleij --- board/armltd/vexpress64/Kconfig | 17 - 1 file changed, 17 del

Re: [U-Boot] [PATCH] ARM: tegra: expand all SPL sizes to be consistent

2015-09-23 Thread Stephen Warren
On 09/22/2015 04:36 PM, Stephen Warren wrote: From: Stephen Warren The size allocation for SPL is increased in all cases to match the already-expanded value used on Tegra124. This is both for general consistency, and because the seaboard build trips over the limit already when using one of the

[U-Boot] [PATCH 03/11] Kconfig: add CONFIG_SYS_BOOTM_LEN

2015-09-23 Thread Ryan Harkin
As config migrates from board config files to Kconfig, when adding CONFIG_SYS_BOOTM_LEN to a platform, I decided to add Kconfig support for CONFIG_SYS_BOOTM_LEN. Signed-off-by: Ryan Harkin Reviewed-by: Linus Walleij CC: Masahiro Yamada CC: Simon Glass CC: Linus Walleij --- Kconfig | 7 ++

[U-Boot] [PATCH 10/11] vexpress64: juno: add alternate kernel and device tree filenames

2015-09-23 Thread Ryan Harkin
The default Juno firmware has renamed the kernel and device tree filenames to norkern and board.dtb. Rather than change the default configuration to use the new names, breaking those with the old firmware, attempt to load the existing filename first. If that fails, attempt to load the alternate f

[U-Boot] [PATCH 04/11] vexpress64: Kconfig: add CONFIG_SYS_BOOTM_LEN

2015-09-23 Thread Ryan Harkin
vexpress64 kernels are usually over 8 MBytes in length, so setting the max uImage length to 0x400 (64 Mbytes) should give us plenty of scope for expansion. I mostly chose this length to match other board configs that use "(64 << 20)", however, Kconfig doesn't allow arithmetic operations. Sign

[U-Boot] [PATCH 07/11] common/armflash: add command to check if image exists

2015-09-23 Thread Ryan Harkin
Add a command to the ARM flash support to check if an image exists or not. If the image is found, it will return CMD_RET_SUCCESS, else CMD_RET_FAILURE. This allows hush scripts to conditionally load images. A simple example: if afs exists ${kernel_name}; then echo found; else echo \ not found;

[U-Boot] [PATCH 06/11] vexpress64: juno: add androidboot.hardware=juno

2015-09-23 Thread Ryan Harkin
Linaro's Juno Android builds requires the androidboot.hardware parameter be set to a know board name. Non-Android kernels ignore this extra parameter because they don't contain code to parse it. Signed-off-by: Ryan Harkin Reviewed-by: Linus Walleij CC: David Feng CC: Bhupesh Sharma CC: Linus

[U-Boot] [PATCH 09/11] vexpress64: juno: add optional initrd

2015-09-23 Thread Ryan Harkin
Some OS images require an initrd on Juno. If the file ramdisk.img exists in NOR flash, then we load it and pass the address to the kernel. Otherwise, we pass the "-" parameter as before. Signed-off-by: Ryan Harkin Reviewed-by: Linus Walleij CC: David Feng CC: Bhupesh Sharma CC: Linus Walleij

[U-Boot] [PATCH 08/11] common/armflash: load_image returns success or failure

2015-09-23 Thread Ryan Harkin
Change the load_image so that it returns success or failure of the command (using CMD_RET_SUCCESS or CMD_RET_FAILURE). This way, hush scripts can optionally load different files depending upon the system configuration. A simple example: if afs load ${kernel_name} ${kernel_addr}; then echo loaded

[U-Boot] [PATCH 11/11] vexpress64: juno: use /dev/sda2

2015-09-23 Thread Ryan Harkin
This patch changes the default "root=" parameter to "/dev/sda2". Many linux based distros use /dev/sda1 for their boot partition; this is often not a rootfs that can be used by the "root=" parameter. Linaro images use /dev/sda1 as a boot partition, although this of a different nature to a distro

Re: [U-Boot] [PATCH 00/11] vexpress64 FVP and Juno configuration updates

2015-09-23 Thread Ryan Harkin
[+CC Linus] On 23 September 2015 at 18:25, Ryan Harkin wrote: > This patch series updates the default configuration of the vexpress64 FVP > and Juno platforms to allow it to work on a variety of setups without > modification by the user. > > [PATCH 01/11] vexpress64: fix checkpatch warnings > [P

Re: [U-Boot] [PATCH v6 4/5] spi: cadence_qspi: rename ahbbase to flashbase for clarity

2015-09-23 Thread Vikas MANOCHA
Hi Jagan, > -Original Message- > From: Jagan Teki [mailto:jt...@openedev.com] > Sent: Wednesday, September 23, 2015 3:15 AM > To: Vikas MANOCHA > Cc: u-boot@lists.denx.de; Stefan Roese; Graham Moore; Marek Vašut > Subject: Re: [U-Boot] [PATCH v6 4/5] spi: cadence_qspi: rename ahbbase to >

Re: [U-Boot] [PATCH v6 2/5] spi: cadence_qspi: fix indirect read/write start address

2015-09-23 Thread Jagan Teki
Hi Vikas, On 23 September 2015 at 16:12, Marek Vasut wrote: > On Wednesday, September 23, 2015 at 12:30:34 PM, Jagan Teki wrote: >> On 23 September 2015 at 15:43, Marek Vasut wrote: >> > On Wednesday, September 23, 2015 at 12:11:20 PM, Jagan Teki wrote: >> >> On 11 September 2015 at 23:58, Vikas

Re: [U-Boot] [PATCH v6 5/5] spi: cadence_qspi: get fifo width from device tree

2015-09-23 Thread Vikas MANOCHA
Thanks Jagan, > -Original Message- > From: Jagan Teki [mailto:jt...@openedev.com] > Sent: Wednesday, September 23, 2015 4:00 AM > To: Vikas MANOCHA > Cc: u-boot@lists.denx.de; Stefan Roese; Graham Moore; Marek Vašut > Subject: Re: [U-Boot] [PATCH v6 5/5] spi: cadence_qspi: get fifo width f

[U-Boot] [PATCH 2/2] ARM: tegra: don't enable GPIOs until direction is set

2015-09-23 Thread Stephen Warren
From: Stephen Warren Tegra's GPIO driver currently enables pins as GPIO as soon as they're requested. This is not safe, since the desired direction and output value are not yet known. This could cause a glitch on the output pins between gpio_request() and gpio_direction_*(), depending on what val

[U-Boot] [PATCH 1/2] ARM: tegra: fix GPIO init table programming

2015-09-23 Thread Stephen Warren
From: Stephen Warren Tegra's gpio_config_table() currently uses common GPIO APIs. These used to work without requesting the GPIO, but since commit 2fccd2d96bad "tegra: Convert tegra GPIO driver to use driver model" no longer do so. This prevents any of the GPIO initialization table from being app

[U-Boot] [PATCH V2] ARM: tegra: expand all SPL sizes to be consistent

2015-09-23 Thread Stephen Warren
From: Stephen Warren The size allocation for SPL is increased in all cases to match the already-expanded value used on Tegra124. This is both for general consistency, and because the seaboard build trips over the limit already when using one of the ARM compilers packaged with 14.04. For the recor

[U-Boot] [PATCHv3] arm: socfpga: Enable saveenv for SD/MMC

2015-09-23 Thread dinguyen
From: Dinh Nguyen Enable the able to save the environment variables when SD/MMC is used. Signed-off-by: Dinh Nguyen --- v3: Only define ENV_IS_NOWHERE if env is not in MMC, NAND, FAT, and SPI_FLASH v2: Move this option to be on a per-board basis Add config for socfpga_cyclone5 and socfpga_a

[U-Boot] How do I tell buildman to use a /specific/ toolchain?

2015-09-23 Thread Stephen Warren
Simon, I have 3 different ARM toolchains installed into /usr/bin via distro packages. How do I tell buildman which of those to use? I had originally thought that ~/.buildman's [toolchain] section contained CROSS_COMPILE-like values, so I tried: [toolchain] root: / arm0-not-installed: arm-n

Re: [U-Boot] [PATCH 3/3] arm: socfpga: Enable saveenv for SD/MMC

2015-09-23 Thread Marek Vasut
On Wednesday, September 23, 2015 at 05:07:28 PM, Dinh Nguyen wrote: > On Tue, Sep 22, 2015 at 8:57 PM, Marek Vasut wrote: > > On Wednesday, September 23, 2015 at 12:01:34 AM, > > dingu...@opensource.altera.com > > > > wrote: > >> From: Dinh Nguyen > >> > >> Enable the able to save the environme

Re: [U-Boot] [PATCHv3] arm: socfpga: Enable saveenv for SD/MMC

2015-09-23 Thread Marek Vasut
On Wednesday, September 23, 2015 at 09:21:48 PM, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Enable the able to save the environment variables when SD/MMC is used. > > Signed-off-by: Dinh Nguyen > --- > v3: Only define ENV_IS_NOWHERE if env is not in MMC, NAND, FAT, and > SPI

[U-Boot] [PATCH] sunxi: mmc: Fix clk-delay settings

2015-09-23 Thread Hans de Goede
In recent allwinner kernel sources the mmc clk-delay settings have been slightly tweaked, and for sun9i they are completely different then what we are using. This commit brings us in sync with what allwinner does, fixing problems accessing sdcards on some A33 devices (and likely others). For pre

[U-Boot] [PATCHv4] arm: socfpga: Enable saveenv for SD/MMC

2015-09-23 Thread dinguyen
From: Dinh Nguyen Enable the able to save the environment variables when SD/MMC is used. Signed-off-by: Dinh Nguyen --- v4: Move ENV_IS_NOWHERE to the mcvevk board config file v3: Only define ENV_IS_NOWHERE if env is not in MMC, NAND, FAT, and SPI_FLASH v2: Move this option to be on a per-board

Re: [U-Boot] [PATCH V2] imx-common: consider mux_ctrl_ofs when setting mux_mode

2015-09-23 Thread Benoît Thébaudeau
Hi Peng, On Wed, Sep 23, 2015 at 5:13 AM, Peng Fan wrote: > Some i.MXes use __NA_ or 0 to avoid setting mux_mode, but the following patch > only take i.MX6/7 into consideration. Small typo that I missed to report in v1: "takes". This can probably be fixed when applying. > > "c3c8a5748897b24f186

Re: [U-Boot] ## Application terminated, rc = 0x1

2015-09-23 Thread Nable
Hi, > i want to boot a little kernel on ARM Cortex a9. > But the kernel crushes pretty early with the following u-boot output: > > ## Starting application at 0x0100 ... > ## Application terminated, rc = 0x1 What board do you use? This address may be used by something different than applicatio

[U-Boot] [PATCH v7 3/6] spi: cadence_qspi: fix base trigger address & transfer start address

2015-09-23 Thread Vikas Manocha
This patch is to separate the base trigger from the read/write transfer start addresses. Base trigger register address (0x1c register) corresponds to the address which should be put on AHB bus to handle indirect transfer triggered before. To handle indirect transfer we need to issue addresses fro

[U-Boot] [PATCH v7 2/6] spi: cadence_qspi: fix indirect read/write start address

2015-09-23 Thread Vikas Manocha
Indirect read/write start addresses are flash start addresses for indirect read or write transfers. These should be absolute flash addresses instead of offsets. Signed-off-by: Vikas Manocha --- Changes in v7: none Changes in v6: none Changes in v5: fixed type cast compilation warnings. Changes i

[U-Boot] [PATCH v7 5/6] spi: cadence_qspi: remove unused macro

2015-09-23 Thread Vikas Manocha
This macro is not being used anywhere in the code. Signed-off-by: Vikas Manocha --- Changes in v7: new. drivers/spi/cadence_qspi_apb.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/spi/cadence_qspi_apb.c b/drivers/spi/cadence_qspi_apb.c index 2638f00..c0116e3 100644 --- a/dr

[U-Boot] [PATCH v7 1/6] spi: cadence_qspi: move trigger base configuration in init

2015-09-23 Thread Vikas Manocha
No need to configure indirect trigger address for every read/write. Signed-off-by: Vikas Manocha --- Changes in v7: None Changes in v6: None Changes in v5: fixed type cast compilation warnings. Changes in v4: removed extra type casts. Changes in v3: added commit message & removed extra bracket.

[U-Boot] [PATCH v7 6/6] spi: cadence_qspi: get fifo width from device tree

2015-09-23 Thread Vikas Manocha
Fifo width could be different on different socs, e.g. stv0991 & altera soc have different fifo width. Signed-off-by: Vikas Manocha --- Changes in v7: unused macro moved to separate patch. Changes in v6: none Changes in v5: none Changes in v4: alligned to linux device tree binding. Changes in v3:

[U-Boot] [PATCH v7 0/6] spi: cadence_qspi: optimize & fix indirect rd-writes

2015-09-23 Thread Vikas Manocha
This patchset: - fixes trigger base & transfer start address register programming. This fix superseeds the previous patch "spi: cadence_qspi: Fix the indirect ahb trigger address setting". - adds support to get fifo width from device tree Changes in v7: - added info for renaming the parameter from

[U-Boot] [PATCH v7 4/6] spi: cadence_qspi: rename ahbbase to flashbase for clarity

2015-09-23 Thread Vikas Manocha
plat->ahbbase renamed to plat->flashbase for better clarity. With ahbbase it was not clear which base address it is, flashbase makes it clear that it is mapped flash memory base address. Signed-off-by: Vikas Manocha --- Changes in v7: added info for renaming the parameter from ahbbase to flashba

Re: [U-Boot] buildman toolchains

2015-09-23 Thread Bin Meng
Thanks Simon. On Tue, Sep 22, 2015 at 10:48 PM, Simon Glass wrote: > +Masahiro, > > Hi, > > On 22 September 2015 at 08:01, Tom Rini wrote: >> On Tue, Sep 22, 2015 at 01:12:56PM +0800, Bin Meng wrote: >> >>> Hi, >>> >>> I was using buildman to get toolchains from kernel.org to build U-Boot >>> fo

Re: [U-Boot] buildman toolchains

2015-09-23 Thread Bin Meng
Hi Tom, On Tue, Sep 22, 2015 at 10:01 PM, Tom Rini wrote: > On Tue, Sep 22, 2015 at 01:12:56PM +0800, Bin Meng wrote: > >> Hi, >> >> I was using buildman to get toolchains from kernel.org to build U-Boot >> for as many boards as possible. But I still see some boards do not >> build. Are these bui

Re: [U-Boot] ## Application terminated, rc = 0x1

2015-09-23 Thread Wolfgang Denk
Dear ba_f, In message <5c515fb3b2f956768d10d2e2c2e94...@rbg.informatik.tu-darmstadt.de> you wrote: > > But the kernel crushes pretty early with the following u-boot output: > > ## Starting application at 0x0100 ... > ## Application terminated, rc = 0x1 This is NOT a crash. The program ter

[U-Boot] [PATCH] nios2: add clear and set bits macros

2015-09-23 Thread Thomas Chou
These macros can be used to clear and set multiple bits in a register using a single call. Signed-off-by: Thomas Chou --- arch/nios2/include/asm/io.h | 57 + 1 file changed, 57 insertions(+) diff --git a/arch/nios2/include/asm/io.h b/arch/nios2/includ

Re: [U-Boot] [PATCH v6] nios2: convert altera_jtag_uart to driver model

2015-09-23 Thread Thomas Chou
On 09/20/2015 04:36 PM, Thomas Chou wrote: Convert altera_jtag_uart to driver model. Signed-off-by: Thomas Chou Acked-by: Marek Vasut Reviewed-by: Simon Glass --- v2 add ioremap. make the change to dts compatible with linux. v3 use fdt address translation patch from Stefan Roese.

Re: [U-Boot] [PATCH v3] nios2: convert altera_uart to driver model

2015-09-23 Thread Thomas Chou
On 09/20/2015 07:41 PM, Thomas Chou wrote: Convert altera_uart to driver model. Signed-off-by: Thomas Chou Reviewed-by: Simon Glass Acked-by: Marek Vasut --- v2 fix coding style as Marek suggested. v3 add early debug uart. fix coding style as Simon suggested. arch/nios2/dts/3c1