Re: [U-Boot] [PATCH 8/8] x86: Convert microcode format to device-tree-only

2014-12-15 Thread Bin Meng
Hi Simon, On Mon, Dec 15, 2014 at 8:15 AM, Simon Glass s...@chromium.org wrote: To avoid having two microcode formats, adjust the build system to support obtaining the microcode from the device tree, even in the case where it must be made available before the device tree can be accessed.

[U-Boot] [PATCH] powerpc/913x: Add config flag for bootdelay

2014-12-15 Thread Harninder Rai
Signed-off-by: Harninder Rai harninder@freescale.com --- include/configs/BSC9131RDB.h |1 + include/configs/BSC9132QDS.h |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/configs/BSC9131RDB.h b/include/configs/BSC9131RDB.h index adb8146..6f1022e 100644 ---

Re: [U-Boot] [PATCH 8/8] x86: Convert microcode format to device-tree-only

2014-12-15 Thread Bin Meng
Hi Simon, On Mon, Dec 15, 2014 at 4:01 PM, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Mon, Dec 15, 2014 at 8:15 AM, Simon Glass s...@chromium.org wrote: To avoid having two microcode formats, adjust the build system to support obtaining the microcode from the device tree, even in the

Re: [U-Boot] [PATCH] mmc: rmobile: Add SDHC support for Renesas rmobile ARM SoC

2014-12-15 Thread Nobuhiro Iwamatsu
Hi, Pantelis. Thanks for your review. 2014-12-13 3:25 GMT+09:00 Pantelis Antoniou pa...@antoniou-consulting.com: Hi Nobuhiro, Very good state, just a few niggles. On Nov 12, 2014, at 06:35 , Nobuhiro Iwamatsu nobuhiro.iwamatsu...@renesas.com wrote: This adds Renesas rmobile ARM SoC's

Re: [U-Boot] [PATCH] spl: if MMCSD_MODE_RAW fails, try MMCSD_MODE_FS, if available

2014-12-15 Thread Guillaume Gardet
Hi Robert, Le 12/12/2014 22:49, Robert Nelson a écrit : On Tue, Nov 18, 2014 at 3:44 AM, Guillaume GARDET guillaume.gar...@free.fr wrote: In SPL MMC, boot modes are exclusive. So, if MMCSD_MODE_RAW fails, the board hangs. This patch allows to try MMCSD_MODE_FS then, if available. It has

Re: [U-Boot] A23 u-boot with SPL / dram init available in my personal git repo

2014-12-15 Thread Ricky Xian
Hi, I'm trying to boot from usb fel mode on A23. I have rebuilt your sunxi-wip branch, and try to run on my A23 (q88?) board, but it's failed in fel mode in executing. I think the u-boot-spl.bin can be used as A20, this's the website I refer to:

Re: [U-Boot] [PATCH] mtd: nand: mxs: fix PIO_WORD number

2014-12-15 Thread Luca Ellero
Hi Marek, On 13/12/2014 14:12, Marek Vasut wrote: On Friday, December 12, 2014 at 04:03:14 PM, Luca Ellero wrote: Hi Marek, On 12/12/2014 13:58, Marek Vasut wrote: On Friday, December 12, 2014 at 01:43:22 PM, Stefan Roese wrote: Hi Luca, On 12.12.2014 13:40, Luca Ellero wrote: On

Re: [U-Boot] [PATCH] spl: if MMCSD_MODE_RAW fails, try MMCSD_MODE_FS, if available

2014-12-15 Thread Guillaume Gardet
Le 15/12/2014 09:43, Guillaume Gardet a écrit : Hi Robert, Le 12/12/2014 22:49, Robert Nelson a écrit : On Tue, Nov 18, 2014 at 3:44 AM, Guillaume GARDET guillaume.gar...@free.fr wrote: In SPL MMC, boot modes are exclusive. So, if MMCSD_MODE_RAW fails, the board hangs. This patch allows to

Re: [U-Boot] [PATCH 3/8] x86: ifdtool: Display filename when file errors are reported

2014-12-15 Thread Bin Meng
On Mon, Dec 15, 2014 at 8:15 AM, Simon Glass s...@chromium.org wrote: When a file is missing it helps to know which file. Update the error message to print this information. Signed-off-by: Simon Glass s...@chromium.org --- tools/ifdtool.c | 30 ++ 1 file

Re: [U-Boot] [PATCH 2/8] x86: ifdtool: Correct a debug() missing parameter

2014-12-15 Thread Bin Meng
On Mon, Dec 15, 2014 at 8:15 AM, Simon Glass s...@chromium.org wrote: This is missing a parameter. Fix it to avoid a warning when debug is enabled. Signed-off-by: Simon Glass s...@chromium.org --- tools/ifdtool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [U-Boot] [PATCH 4/8] x86: ifdtool: Use a structure for the file/address list

2014-12-15 Thread Bin Meng
On Mon, Dec 15, 2014 at 8:15 AM, Simon Glass s...@chromium.org wrote: Rather than two independent arrays, use a single array of a suitable structure. Also add a 'type' member since we will shortly add additional types. Signed-off-by: Simon Glass s...@chromium.org --- tools/ifdtool.c | 24

Re: [U-Boot] [linux-sunxi] Re: A23 u-boot with SPL / dram init available in my personal git repo

2014-12-15 Thread Siarhei Siamashka
On Sun, 14 Dec 2014 22:01:29 -0800 (PST) Ricky Xian szri...@gmail.com wrote: Hi, I'm trying to boot from usb fel mode on A23. I have rebuilt your sunxi-wip branch, and try to run on my A23 (q88?) board, but it's failed in fel mode in executing. I think the u-boot-spl.bin can be used as

[U-Boot] [PATCH v3 00/18] Support for eMMC partitioning and related fixes

2014-12-15 Thread Diego Santa Cruz
I have the need to hardware partition eMMC devices from U-Boot along with setting enhanced and reliable write attributes. This series of patches adds this support to U-Boot via a new mmc API, a few new members of struct mmc and a new mmc sub-command. It also features several fixes to the eMMC

[U-Boot] [PATCH v3 02/18] mmc: extend mmcinfo to show enhanced partition attribute

2014-12-15 Thread Diego Santa Cruz
This extends the mmcinfo command's output to show which eMMC partitions have the enhanced attribute set. Note that the eMMC spec says that if the enhanced attribute is supported then the boot and RPMB partitions are of the enhanced type. The output of mmcinfo becomes: Device: OMAP SD/MMC

[U-Boot] [PATCH v3 03/18] mmc: make eMMC general purpose partition numbering match spec

2014-12-15 Thread Diego Santa Cruz
The eMMC spec numbers general purpose partitions starting at 1, but the mmcinfo output follows the internal numbering which starts at 0. Make the mmcinfo command output number partitions as in the eMMC spec to avoid confusion. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com ---

[U-Boot] [PATCH v3 05/18] mmc: incomplete test to switch to high-capacity group size definitions

2014-12-15 Thread Diego Santa Cruz
The eMMC spec mandates that the high-capacity group size definitions should be enabled when the device is partitioned (by setting ERASE_GROUP_DEF in EXT_CSD). The current test to determine when this is required misses a few cases. In particular a device may have been partitioned without setting

[U-Boot] [PATCH v3 06/18] mmc: computation of eMMC GP partition size was missing 512 KiB factor

2014-12-15 Thread Diego Santa Cruz
Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 7f5614e..62b945c 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1023,6 +1023,7 @@

[U-Boot] [PATCH v3 07/18] mmc: read the size of eMMC enhanced user data area

2014-12-15 Thread Diego Santa Cruz
This modification reads the size of the eMMC enhanced user data area upon initialization of an mmc device, it will be used later by mmcinfo. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 15 +++ include/mmc.h |4 2 files changed,

[U-Boot] [PATCH v3 09/18] mmc: fix erase_grp_size computation with high-capacity size definition

2014-12-15 Thread Diego Santa Cruz
The erase_grp_size in struct mmc is to be a size in 512-byte sectors but the code used to compute it for eMMC when EXT_CSD_ERASE_GROUP_DEF is enabled computed it as bytes, leading to erase sizes and alignment much larger than what is actually required by the mmc device. Signed-off-by: Diego Santa

[U-Boot] [PATCH v3 08/18] mmc: display size and start of eMMC enhanced user data area in mmcinfo

2014-12-15 Thread Diego Santa Cruz
This adds output to show the eMMC enhanced user data area size and offset along with the partition sizes in mmcinfo's output. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH v3 10/18] mmc: read the high capacity WP group size for eMMC

2014-12-15 Thread Diego Santa Cruz
Read the eMMC high capacity write protect group size at mmc device initialization. This is useful to correctly partition an eMMC device, as partitions need to be aligned to this size. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c |6 ++ include/mmc.h

[U-Boot] [PATCH v3 11/18] mmc: show the erase group size and HC WP group size in mmcinfo output

2014-12-15 Thread Diego Santa Cruz
This adds the erase group size and high-capacity WP group size to mmcinfo's output. The erase group size is necessary to properly align erase requests on eMMC. The high-capacity WP group size is necessary to properly align partitions on eMMC. Signed-off-by: Diego Santa Cruz

[U-Boot] [PATCH v3 14/18] mmc: add API to do eMMC hardware partitioning

2014-12-15 Thread Diego Santa Cruz
This adds an API to do hardware partitioning on eMMC devices. The new mmc_hwpart_config() function does the partitioning in one go. As the different attributes and partitioning options on eMMC may be interdependent validation has to be done based on the complete partitioning configuration. The

[U-Boot] [PATCH v3 16/18] mmc: extend the mmc hardware partitioning API with write reliability

2014-12-15 Thread Diego Santa Cruz
The eMMC partition write reliability settings are to be set while partitioning a device, as per the eMMC spec, so changes to these attributes needs to be done in the hardware partitioning API. This commit adds such support. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com ---

[U-Boot] [PATCH v3 17/18] mmc: extend the mmc hwpartition sub-command to change write reliability

2014-12-15 Thread Diego Santa Cruz
This change extends the mmc hwpartition sub-command to change the per-partition write reliability settings. It also changes the syntax used for the enhanced user data area slightly to better accomodate the write reliability option. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com ---

[U-Boot] [PATCH v3 13/18] mmc: the ext_csd data may be used during init even if reading failed

2014-12-15 Thread Diego Santa Cruz
The mmc_startup() function uses the ext_csd data even if reading it from the mmc device failed. This bug was introduced in commit bc897b1d4d86597311430dbe7b3e6c807c8c53e5. We now bail out if reading it fails, this should not be a problem as ext_csd was introduced in MMC 4.0 and this code is

[U-Boot] [PATCH v3 12/18] mmc: eMMC partitioning data is not effective till partitioning completed

2014-12-15 Thread Diego Santa Cruz
The eMMC spec says that partitioning is only effective after the PARTITION_SETTING_COMPLETED is set in EXT_CSD (and a power cycle was done, but that we cannot know). Thus the partition sizes and attributes should be ignored when that bit is not set, otherwise the various capacities are not

[U-Boot] [PATCH v3 15/18] mmc: add mmc hwpartition sub-command to do eMMC hardware partitioning

2014-12-15 Thread Diego Santa Cruz
Adds the mmc hwpartition sub-command to perform eMMC hardware partitioning on an mmc device. The number of arguments can be large for a complex partitioning, but as the partitioning has to be done in one go it is difficult to make it simpler. Signed-off-by: Diego Santa Cruz

[U-Boot] [PATCH v3 18/18] mmc: extend mmcinfo output to show partition write reliability settings

2014-12-15 Thread Diego Santa Cruz
This extends the mmcinfo hardware partition info output to show partitions with write reliability enabled with the WRREL string. If the partition does not have write reliability enabled the WRREL string is omitted; this is analogous to the ehhanced attribute. Example output: Device: OMAP SD/MMC

[U-Boot] [PATCH v3 04/18] mmc: skip mmcinfo partition info processing for eMMC 4.41

2014-12-15 Thread Diego Santa Cruz
eMMC partitions are defined as of eMMC 4.41, but mmcinfo process partition info for eMMC = 4.0, change it to do it for = 4.41 Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[U-Boot] [PATCH v3 01/18] mmc: show hardware partition sizes in mmcinfo output

2014-12-15 Thread Diego Santa Cruz
There is currently no command that will provide an overview of the hardware partitions present on an eMMC device, one has to switch to every partition via mmc dev and run mmcinfo for each to get the partition's capacity. This commit adds a few lines of output to mmcinfo with the sizes of the

Re: [U-Boot] [PATCH 5/8] x86: ifdtool: Add support for early microcode access

2014-12-15 Thread Bin Meng
Hi Simon, On Mon, Dec 15, 2014 at 8:15 AM, Simon Glass s...@chromium.org wrote: Some Intel CPUs use an 'FSP' binary blob which provides an inflexible means of starting up the CPU. One result is that microcode updates can only be done before RAM is available and therefore parsing of the device

Re: [U-Boot] [PATCH v2 00/18] Support for eMMC partitioning and related fixes

2014-12-15 Thread Diego Santa Cruz
Hi Pantelis, -Original Message- From: Pantelis Antoniou [mailto:pa...@antoniou-consulting.com] Sent: Friday, December 12, 2014 8:21 PM To: Diego Santa Cruz Cc: u-boot@lists.denx.de Subject: Re: [PATCH v2 00/18] Support for eMMC partitioning and related fixes Hi Diego, [snip] I

Re: [U-Boot] [PATCH 6/8] x86: Move microcode updates into a separate directory

2014-12-15 Thread Bin Meng
On Mon, Dec 15, 2014 at 8:15 AM, Simon Glass s...@chromium.org wrote: We might end up with a few of these, so put them in their own directory. Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/dts/link.dts | 4 ++-- arch/x86/dts/{ =

[U-Boot] [Patch V2 2/3] gadget: f_thor: check pointers before use in download_tail()

2014-12-15 Thread Przemyslaw Marczak
Some pointers in function download_tail() were not checked before the use. This could possibly cause the data abort. To avoid this, check if the pointers are not null is added. Signed-off-by: Przemyslaw Marczak p.marc...@samsung.com --- Change v2: - download_tail(): change printf() to error() ---

[U-Boot] [Patch V2 1/3] dfu: mmc: check if mmc device exists in mmc_block_op()

2014-12-15 Thread Przemyslaw Marczak
The function mmc_block_op() is the last function before the physicall data write, but the mmc device pointer is not checked. If mmc device not exists, then data abort will occur. To avoid this, first the mmc device pointer is checked. Signed-off-by: Przemyslaw Marczak p.marc...@samsung.com ---

[U-Boot] [Patch V2 3/3] dfu: dfu_get_buf: check the value of env dfu_bufsiz before use

2014-12-15 Thread Przemyslaw Marczak
In function dfu_get_buf(), the size of allocated buffer could be defined by the env variable. The size from this variable was passed for memalign() without checking its value. And the the memalign will return non null pointer for size 0. This could possibly cause data abort, so now the value of

[U-Boot] [PATCH 1/3 v2] arm: semihosting: staticize internal functions

2014-12-15 Thread Linus Walleij
The semihosting code exposes internal file handle handling functions to read(), open(), close() and get the length of a certain file handle. However the code using it is only interested in either reading and entire named file into memory or getting the file length of a file referred by name. No

[U-Boot] [PATCH 2/3 v2] arm: semihosting: fix up compile bugs

2014-12-15 Thread Linus Walleij
There is currently a regression when using newer ARM64 compilers for semihosting: the way long types are inferred from context is no longer the same. The semihosting runtime uses long and size_t, so use this explicitly in the semihosting code and interface, and voila: the code now works again.

[U-Boot] [PATCH 3/3 v2] arm: semihosting: get rid of forward declarations

2014-12-15 Thread Linus Walleij
By rearranging the functions in the semihosting code we can avoid forward-declaration of the internal static functions. This puts the stuff in a logical order: read/open/close/len and then higher-order functions follow at the end. Cc: Darwin Rambo dra...@broadcom.com Cc: AKASHI Takahiro

[U-Boot] [PATCH] USB: gadget: atmel_usba_udc: fix transfer hang issue

2014-12-15 Thread Bo Shen
When receive data, the RXRDY in status register set by hardware after a new packet has been stored in the endpoint FIFO. After, we copy from FIFO, we clear it, make the FIFO can be accessed again. In the receive_data() function, this bit RXRDY has been cleared. So, after the receive_data()

Re: [U-Boot] [PATCH] mtd: nand: revive nand scrub command

2014-12-15 Thread Masahiro Yamada
On Fri, 12 Dec 2014 07:19:21 +0100 Heiko Schocher h...@denx.de wrote: Hello Scott, Am 11.12.2014 22:43, schrieb Scott Wood: On Thu, 2014-12-11 at 22:37 +0100, Marek Vasut wrote: On Thursday, December 11, 2014 at 09:37:10 PM, Scott Wood wrote: On Thu, 2014-12-11 at 19:49 +0900, Masahiro

Re: [U-Boot] [PATCH v3 0/6] ARM: kirkwood: mvebu_mmc: Speed up access time

2014-12-15 Thread Mario Schuknecht
2014-12-13 21:35 GMT+01:00 Gérald Kerma drea...@doukki.net: This serie of patches speed up access time of MVEBUMMC driver This is allowed by a fix in MVEBUMMC init status check inspired from linux MVSDIO driver. * Hardware weirdness. The FIFO_EMPTY bit of the HW_STATE *

[U-Boot] [PATCH 0/2] sun7i: PSCI enhancements

2014-12-15 Thread Jan Kiszka
This adds CPU offlining and PSCI v0.2 support. See patches for details. Jan Jan Kiszka (2): sun7i: Add support for taking CPUs offline via PSCI sun7i: Add PSCI v0.2 support arch/arm/cpu/armv7/psci.S | 35 - arch/arm/cpu/armv7/sunxi/psci.S | 287

[U-Boot] [PATCH 1/2] sun7i: Add support for taking CPUs offline via PSCI

2014-12-15 Thread Jan Kiszka
Based on the original version by Marc Zyngier. It adds a psci_cpu_off implementation for the A20 SoC. The mechanism works by first preparing the calling CPU to go offline (disable and flush cache, disable SMP), then requesting CPU 0 to pull the plug. The request is sent as FIQ on SGI15.

[U-Boot] [PATCH 2/2] sun7i: Add PSCI v0.2 support

2014-12-15 Thread Jan Kiszka
This extends the PSCI support for the A20 to a dual v0.2 and v0.1 interface. Recent OSes will prefer v0.2, olders will still find the original interface, just at v0.2 service IDs. In addition to the existing services, v0.2 requires us to implement both system off and reset. At least Linux will

Re: [U-Boot] [PATCH 2/2] sun7i: Add PSCI v0.2 support

2014-12-15 Thread Hans de Goede
Hi, On 15-12-14 12:37, Jan Kiszka wrote: This extends the PSCI support for the A20 to a dual v0.2 and v0.1 interface. Recent OSes will prefer v0.2, olders will still find the original interface, just at v0.2 service IDs. In addition to the existing services, v0.2 requires us to implement both

Re: [U-Boot] [PATCH] allow config_distro_bootcmd to pass uuid to extlinux.conf

2014-12-15 Thread Hans de Goede
Hi, On 15-12-14 03:09, Stephen Warren wrote: On 12/14/2014 02:35 PM, Iain Paton wrote: On 14/12/14 17:22, Stephen Warren wrote: On 12/14/2014 07:52 AM, Iain Paton wrote: Set ptuuid and fsuuid variables to the partition / filesystem where we found extlinux.conf which allows us to use a

Re: [U-Boot] [PATCH V3 00/12] cleanup and refactor lcd.c

2014-12-15 Thread Nikita Kiryanov
Gentle ping. On 12/08/2014 05:14 PM, Nikita Kiryanov wrote: This series is a first step towards an end goal of merging all CONFIG_LCD related functionality into CONFIG_VIDEO code. My plan is to start by refactoring lcd.c into something cleaner (less ifdefs) and more modular (split code into

Re: [U-Boot] [PATCH 8/8] x86: Convert microcode format to device-tree-only

2014-12-15 Thread Bin Meng
Hi Simon, On Mon, Dec 15, 2014 at 8:15 AM, Simon Glass s...@chromium.org wrote: To avoid having two microcode formats, adjust the build system to support obtaining the microcode from the device tree, even in the case where it must be made available before the device tree can be accessed.

Re: [U-Boot] [PATCH v3 0/9] sf: Update flash params for supported read commands and sector size

2014-12-15 Thread Bin Meng
Hi Jagan, On Thu, Dec 11, 2014 at 3:40 PM, Bin Meng bmeng...@gmail.com wrote: Hi Jagan, On Thu, Dec 11, 2014 at 3:26 PM, Jagan Teki jagannadh.t...@gmail.com wrote: Hi Bin, On 11 December 2014 at 08:34, Bin Meng bmeng...@gmail.com wrote: Hi Jagan, On Thu, Dec 11, 2014 at 2:41 AM, Jagan

[U-Boot] [PATCH 3/5] OMAP5+: sata/scsi: implement scsi_bus_reset()

2014-12-15 Thread Dmitry Lifshitz
Implement missing scsi_bus_reset() for SCSI subsystem commands on OMAP platforms. Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il --- arch/arm/cpu/armv7/omap-common/sata.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv7/omap-common/sata.c

[U-Boot] [PATCH 2/5] ahci-plat: provide a weak scsi_bus_reset() hook

2014-12-15 Thread Dmitry Lifshitz
This allow the platform to handle a custom reset sequence. Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il --- drivers/block/ahci.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c index 12ed5e3..37d2d2a 100644 ---

[U-Boot] [PATCH 4/5] arm: omap: reset sata on boot

2014-12-15 Thread Dmitry Lifshitz
On OMAP platforms (like OMAP5) Linux kernel fails to detect a SATA device if it is used by U-Boot. It happens because U-Boot does not reset SATA controller before boot. Reset the controller on OS boot so that Linux will have a clean state to work with. Signed-off-by: Dmitry Lifshitz

[U-Boot] [PATCH 1/5] ahci: introduce ahci_reset()

2014-12-15 Thread Dmitry Lifshitz
Extract controller reset code from ahci_host_init() into separate ahci_reset(). Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il --- drivers/block/ahci.c | 47 ++- include/ahci.h |1 + 2 files changed, 31 insertions(+), 17

[U-Boot] [PATCH 5/5] omap5: cm-t54: add sata support

2014-12-15 Thread Dmitry Lifshitz
Add configs required for SATA support on CM-T54 board. Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il --- include/configs/cm_t54.h | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/include/configs/cm_t54.h b/include/configs/cm_t54.h index

[U-Boot] [PATCH 0/5] arm: omap: reset sata on OS boot

2014-12-15 Thread Dmitry Lifshitz
This series adds a SATA controller reset mechanism for OMAP platforms. On OMAP platforms SATA support is provided via SCSI subsystem. Implement missing SCSI reset command. Use the new functionality to reset SATA on OS boot. Dmitry Lifshitz (5): ahci: introduce ahci_reset() ahci-plat:

[U-Boot] [PATCH 0/19] powerpc: Introduce device tree control and driver model

2014-12-15 Thread Simon Glass
This series does a small amount of tweaking to support device tree control (CONFIG_OF_CONTROL) on PowerPC platforms. It also adds support for driver model. In both cases the main effort is to set things up correctly before calling board_init_f(). A new generic function, board_init_f_mem() is

[U-Boot] [PATCH 01/19] Introduce board_init_f_mem() to handle early memory layout

2014-12-15 Thread Simon Glass
At present on some architectures we set up the following before calling board_init_f(): - global_data - stack - early malloc memory Adding the code to support early malloc and global data setup to every arch's assembler start-up is a pain. Also this code is not actually

[U-Boot] [PATCH 06/19] WIP: powerpc: ppc4xx: Somehow BSS is not cleared in RAMBOOT case

2014-12-15 Thread Simon Glass
From: Stefan Roese s...@denx.de (NOT TO APPLY) I'm really not sure why this doesn't work in the RAMBOOT case. But BSS is not cleared and because of this booting crashed / hangs at some stage later. Something with the GOT calculation / handling is incorrect. To get this going for now, just clear

[U-Boot] [PATCH 02/19] powerpc: Permit device tree control of U-Boot (CONFIG_OF_CONTROL)

2014-12-15 Thread Simon Glass
Enable this in the Kconfig so that PowerPC boards can use device tree to configure U-Boot. Signed-off-by: Simon Glass s...@chromium.org --- arch/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/Kconfig b/arch/Kconfig index f63cc5a..67e99e9 100644 --- a/arch/Kconfig +++

[U-Boot] [PATCH 13/19] ppc: amcc: Omit unneeded ns16550 CONFIG if using driver model

2014-12-15 Thread Simon Glass
This comes from the device tree or a call to get_uart_clock(). Signed-off-by: Simon Glass s...@chromium.org --- arch/powerpc/include/asm/ppc460ex_gt.h | 2 ++ include/configs/amcc-common.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/powerpc/include/asm/ppc460ex_gt.h

[U-Boot] [PATCH 05/19] powerpc: ppc4xx: Add ramboot config for glacier

2014-12-15 Thread Simon Glass
Add a new ramboot config for glacier so that it is possible to test U-Boot loaded over Ethernet instead of using JTAG. Signed-off-by: Simon Glass s...@chromium.org --- arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c | 8 board/amcc/canyonlands/MAINTAINERS | 1 +

[U-Boot] [PATCH 04/19] powerpc: ppc4xx: Move CANYONLANDS/GLACIER/ARCHES to Kconfig

2014-12-15 Thread Simon Glass
Move these options to Kconfig and remove them from the CONFIG files. Signed-off-by: Simon Glass s...@chromium.org --- board/amcc/canyonlands/Kconfig | 20 configs/arches_defconfig | 2 +- configs/canyonlands_defconfig | 2 +- configs/glacier_defconfig | 2 +-

[U-Boot] [PATCH 09/19] powerpc: ppc4xx: Call board_init_f_mem() for generic board

2014-12-15 Thread Simon Glass
Call this function to set up our early memory. Signed-off-by: Simon Glass s...@chromium.org --- arch/powerpc/cpu/ppc4xx/start.S | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/cpu/ppc4xx/start.S b/arch/powerpc/cpu/ppc4xx/start.S index

[U-Boot] [PATCH 03/19] powerpc: ppc4xx: canyonlands: config: Tidy up CONFIGs and config.mk

2014-12-15 Thread Simon Glass
Many CONFIG options have an unnecessary value of 1. CONFIG_440 is set in the various board config files. Also simplify the CONFIG_440 check in config.mk Signed-off-by: Simon Glass s...@chromium.org --- arch/powerpc/cpu/ppc4xx/config.mk | 5 + board/amcc/canyonlands/config.mk | 2 --

[U-Boot] [PATCH 08/19] powerpc: ppc4xx: dts: Bring in canyonlands device tree files

2014-12-15 Thread Simon Glass
The canyonlands.h config file works with canyonlands, glacier and arches boards. Bring in the device tree files for these from Linux 3.17. Signed-off-by: Simon Glass s...@chromium.org --- arch/powerpc/dts/Makefile| 11 + arch/powerpc/dts/arches.dts | 339 +++

[U-Boot] [PATCH 18/19] serial: ns16550: Support debug UART

2014-12-15 Thread Simon Glass
Add debug UART functions to permit ns16550 to provide an early debug UART. Try to avoid using the stack so that this can be called from assembler before a stack is set up (at least on ARM and PowerPC). Signed-off-by: Simon Glass s...@chromium.org --- drivers/serial/Kconfig | 13 +

[U-Boot] [PATCH 14/19] powerpc: Add serial driver for driver model

2014-12-15 Thread Simon Glass
This uses the ns16550 driver but sets up the clock at run-time. It does not seem to be available in the device tree. Signed-off-by: Simon Glass s...@chromium.org --- drivers/serial/Makefile | 1 + drivers/serial/serial_ppc.c | 40 2 files changed,

[U-Boot] [PATCH 11/19] powerpc: ppc4xx: Allow the end of u-boot.bin to be found

2014-12-15 Thread Simon Glass
Define an _end symbol indicating the end of u-boot.bin. Also add some dummy words into the link script to ensure that u-boot.bin will always extend that far. There may be a better way of doing this. Signed-off-by: Simon Glass s...@chromium.org --- arch/powerpc/cpu/ppc4xx/u-boot.lds | 8 ++--

[U-Boot] [PATCH 15/19] dm: powerpc: ppc4xx: Move glacier to use driver model for serial

2014-12-15 Thread Simon Glass
Adjust Kconfig to default to driver model for glacier, canyonlands and arches. Signed-off-by: Simon Glass s...@chromium.org --- board/amcc/canyonlands/Kconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/board/amcc/canyonlands/Kconfig b/board/amcc/canyonlands/Kconfig index

[U-Boot] [PATCH 17/19] serial: Support an early UART for debugging

2014-12-15 Thread Simon Glass
This came up in a discussion on the mailing list here: https://patchwork.ozlabs.org/patch/384613/ My concerns at the time were: - it doesn't need to be written in assembler - it doesn't need to be ARM-specific This patch provides a possible alternative. It works by allowing any serial driver to

[U-Boot] [PATCH 19/19] powerpc: ppc4xx: Provide early debug UART defaults

2014-12-15 Thread Simon Glass
Provide defaults so that the early debug UART can be enabled. Signed-off-by: Simon Glass s...@chromium.org --- board/amcc/canyonlands/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/board/amcc/canyonlands/Kconfig b/board/amcc/canyonlands/Kconfig index cbc5ff9..bfdf17a 100644

Re: [U-Boot] [PATCH v2] arm: build arch memset/memcpy in Thumb2 mode

2014-12-15 Thread Andreas Färber
Hi Stefan, Am 03.12.2014 um 18:04 schrieb Stefan Agner: Can this be fixed by the merger or should I create a new revision? It looks as if this was neither applied nor respun? I have some more patches to make CONFIG_USE_PRIVATE_LIBGCC build for Thumb that I would like to rebase on it. In

[U-Boot] [PATCH 10/19] powerpc: ppc4xx: Add a gpio.h header file

2014-12-15 Thread Simon Glass
This is required at present for device tree control. The ppc4xx does support GPIOs but does not seem to have a proper driver. So this file is empty. Signed-off-by: Simon Glass s...@chromium.org --- arch/powerpc/include/asm/arch-ppc4xx/gpio.h | 7 +++ 1 file changed, 7 insertions(+) create

[U-Boot] [PATCH 07/19] powerpc: ppc4xx: canyonlands: Move to generic board

2014-12-15 Thread Simon Glass
Switch to generic board so that this board will not be broken/removed. Signed-off-by: Simon Glass s...@chromium.org --- arch/powerpc/cpu/ppc4xx/cpu_init.c | 2 ++ include/configs/canyonlands.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/powerpc/cpu/ppc4xx/cpu_init.c

[U-Boot] [PATCH 12/19] powerpc: ppc4xx: Use CONFIG_OF_CONTROL for canyonlands boards

2014-12-15 Thread Simon Glass
Enable CONFIG_OF_CONTROL so that U-Boot on these three boards uses a device tree for its configuration. Signed-off-by: Simon Glass s...@chromium.org --- board/amcc/canyonlands/u-boot-ram.lds | 10 -- configs/arches_defconfig | 3 +++ configs/canyonlands_defconfig |

[U-Boot] [PATCH 16/19] powerpc: Add linkage.h file

2014-12-15 Thread Simon Glass
This permits us to use linux/linkage.h on PowerPC machines. Signed-off-by: Simon Glass s...@chromium.org --- arch/powerpc/include/asm/linkage.h | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 arch/powerpc/include/asm/linkage.h diff --git a/arch/powerpc/include/asm/linkage.h

[U-Boot] [PATCH 02/26] powerpc: manroland: remove uc100, uc101, mucmc52, hmi1001 support

2014-12-15 Thread Masahiro Yamada
These boards are still non-generic boards. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Heiko Schocher h...@denx.de Cc: Stefan Roese s...@denx.de --- arch/powerpc/cpu/mpc5xxx/Kconfig| 12 - arch/powerpc/cpu/mpc5xxx/ide.c | 8 - arch/powerpc/cpu/mpc8xx/Kconfig |

[U-Boot] [PATCH 03/26] mpc8xx: remove ELPT860 board support

2014-12-15 Thread Masahiro Yamada
This board is still a non-generic board. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: The LEOX team t...@leox.org --- arch/powerpc/cpu/mpc8xx/Kconfig | 4 - board/LEOX/elpt860/Kconfig | 12 - board/LEOX/elpt860/MAINTAINERS | 6 -

[U-Boot] [PATCH 04/26] mpc8xx: remove KUP4X, KUP4K board support

2014-12-15 Thread Masahiro Yamada
These boards are still non-generic boards. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Klaus Heydeck heyd...@kieback-peter.de --- arch/powerpc/cpu/mpc8xx/Kconfig| 8 - arch/powerpc/cpu/mpc8xx/cpu.c | 11 - board/kup/common/flash.c | 499

[U-Boot] [PATCH 05/26] mpc8xx: remove SPD823TS board support

2014-12-15 Thread Masahiro Yamada
This board is still a non-generic board. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Wolfgang Denk w...@denx.de --- arch/powerpc/cpu/mpc8xx/Kconfig| 4 - arch/powerpc/cpu/mpc8xx/cpu_init.c | 3 +- board/spd8xx/Kconfig | 9 - board/spd8xx/MAINTAINERS

[U-Boot] [PATCH 06/26] mpc8xx: remove RRvision board support

2014-12-15 Thread Masahiro Yamada
This board is still a non-generic board. Unused code in arch/powerpc/cpu/mpc8xx/video.c should be also deleted because CONFIG_VIDEO_ENCODER_AD7176, CONFIG_VIDEO_ENCODER_AD7177, CONFIG_VIDEO_ENCODER_AD7179 are not defined any more. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc:

[U-Boot] [PATCH 09/26] mpc8xx: remove lwmon board support

2014-12-15 Thread Masahiro Yamada
This board is still a non-generic board. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Wolfgang Denk w...@denx.de --- arch/powerpc/cpu/mpc8xx/Kconfig|4 - arch/powerpc/cpu/mpc8xx/cpu.c | 46 +- arch/powerpc/cpu/mpc8xx/cpu_init.c |1 -

[U-Boot] [PATCH 08/26] mpc8xx: remove NETVIA board support

2014-12-15 Thread Masahiro Yamada
This board is still a non-generic board. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Pantelis Antoniou pa...@intracom.gr --- arch/powerpc/cpu/mpc8xx/Kconfig | 4 - arch/powerpc/cpu/mpc8xx/scc.c | 20 -- board/netvia/Kconfig| 9 - board/netvia/MAINTAINERS

[U-Boot] [PATCH 07/26] mpc8xx: remove R360MPI board support

2014-12-15 Thread Masahiro Yamada
This board is still a non-generic board. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Wolfgang Denk w...@denx.de --- arch/powerpc/cpu/mpc8xx/Kconfig| 4 - arch/powerpc/cpu/mpc8xx/cpu_init.c | 1 - board/r360mpi/Kconfig | 9 - board/r360mpi/MAINTAINERS

[U-Boot] [PATCH 10/26] mpc8xx: remove IVMS8, IVML24 board support

2014-12-15 Thread Masahiro Yamada
This board is still a non-generic board. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Wolfgang Denk w...@denx.de --- arch/powerpc/cpu/mpc8xx/Kconfig| 7 - arch/powerpc/cpu/mpc8xx/cpu_init.c | 2 - board/ivm/Kconfig | 19 -- board/ivm/MAINTAINERS

[U-Boot] [PATCH 11/26] mpc8xx: remove IP860 board support

2014-12-15 Thread Masahiro Yamada
This board is still a non-generic board. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Wolfgang Denk w...@denx.de --- arch/powerpc/cpu/mpc8xx/Kconfig| 4 - arch/powerpc/cpu/mpc8xx/cpu_init.c | 10 - arch/powerpc/cpu/mpc8xx/serial.c | 7 +- board/ip860/Kconfig

[U-Boot] [PATCH 12/26] mpc8xx: remove ESTEEM192E board support

2014-12-15 Thread Masahiro Yamada
This board is still a non-generic board. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Conn Clark cl...@esteem.com --- arch/powerpc/cpu/mpc8xx/Kconfig |4 - board/esteem192e/Kconfig|9 - board/esteem192e/MAINTAINERS|6 - board/esteem192e/Makefile |

[U-Boot] [PATCH 15/26] mpc8260: remove ppmc8260 board support

2014-12-15 Thread Masahiro Yamada
This board is still a non-generic board. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Brad Kemp brad.k...@seranoa.com --- arch/powerpc/cpu/mpc8260/Kconfig | 4 - board/ppmc8260/Kconfig | 9 - board/ppmc8260/MAINTAINERS | 6 - board/ppmc8260/Makefile

[U-Boot] [PATCH 16/26] mpc8260: remove ep8260 board support

2014-12-15 Thread Masahiro Yamada
This board is still a non-generic board. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Frank Panno fpa...@delphintech.com --- arch/powerpc/cpu/mpc8260/Kconfig | 4 - board/ep8260/Kconfig | 9 - board/ep8260/MAINTAINERS | 6 - board/ep8260/Makefile

[U-Boot] [PATCH 17/26] mpc8260: remove VoVPN-GW board support

2014-12-15 Thread Masahiro Yamada
This board is still a non-generic board. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com --- arch/powerpc/cpu/mpc8260/Kconfig| 4 - board/funkwerk/vovpn-gw/Kconfig | 12 - board/funkwerk/vovpn-gw/MAINTAINERS | 6 - board/funkwerk/vovpn-gw/Makefile| 8 -

[U-Boot] [PATCH 18/26] mpc8260: remove MPC8266ADS board support

2014-12-15 Thread Masahiro Yamada
This board is still a non-generic board. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Rune Torgersen ru...@innovsys.com --- arch/powerpc/cpu/mpc8260/Kconfig| 4 - arch/powerpc/cpu/mpc8260/pci.c | 57 +--- board/freescale/mpc8266ads/Kconfig | 12 -

[U-Boot] [PATCH 19/26] mpc8260: remove PM825, PM826, PM828 board support

2014-12-15 Thread Masahiro Yamada
These boards are still non-generic boards. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Wolfgang Denk w...@denx.de --- arch/powerpc/cpu/mpc8260/Kconfig | 8 - arch/powerpc/cpu/mpc8260/pci.c | 11 - board/pm826/Kconfig | 9 -

[U-Boot] [PATCH 20/26] mpc8260: remove muas3001 board support

2014-12-15 Thread Masahiro Yamada
This board is still a non-generic board. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Heiko Schocher h...@denx.de --- arch/powerpc/cpu/mpc8260/Kconfig | 4 - board/muas3001/Kconfig | 9 - board/muas3001/MAINTAINERS | 7 - board/muas3001/Makefile |

[U-Boot] [PATCH 21/26] mpc8260: remove IPHASE4539 board support

2014-12-15 Thread Masahiro Yamada
This board is still a non-generic board. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Wolfgang Grandegger w...@denx.de --- arch/powerpc/cpu/mpc8260/Kconfig | 4 - board/iphase4539/Kconfig | 9 - board/iphase4539/MAINTAINERS | 6 - board/iphase4539/Makefile

[U-Boot] [PATCH 22/26] mpc8260: remove gw8260 board support

2014-12-15 Thread Masahiro Yamada
This board is still a non-generic board. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Oliver Brown obr...@adventnetworks.com --- arch/powerpc/cpu/mpc8260/Kconfig | 4 - board/gw8260/Kconfig | 9 - board/gw8260/MAINTAINERS | 6 - board/gw8260/Makefile

[U-Boot] [PATCH 23/26] mpc8260: remove ep82xxm board support

2014-12-15 Thread Masahiro Yamada
This board is still a non-generic board. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com --- arch/powerpc/cpu/mpc8260/Kconfig | 4 - board/ep82xxm/Kconfig| 9 - board/ep82xxm/MAINTAINERS| 6 - board/ep82xxm/Makefile | 8 - board/ep82xxm/ep82xxm.c

[U-Boot] [PATCH 25/26] mpc8260: remove atc board support

2014-12-15 Thread Masahiro Yamada
These boards are still non-generic boards. drivers/rtc/ds12887.c should also be removed because it can not be built without CONFIG_ATC. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Wolfgang Denk w...@denx.de --- arch/powerpc/cpu/mpc8260/Kconfig | 4 - board/atc/Kconfig

[U-Boot] [PATCH 0/26] Start removing non-generic boards

2014-12-15 Thread Masahiro Yamada
As doc/README.generic-board says, the dead line has already expired and we are supposed to remove all the non-generic boards by the end of this year. This series removes non-generic boards of mpc8xx, mpc8260, mpc824x platform. Masahiro Yamada (26): mpc8xx: remove FPS{850,860}L, NSCU, SM850,

  1   2   >