Re: [U-Boot] [PATCH] Fix GCC format-security errors.

2015-12-29 Thread Wolfgang Denk
Dear Ben, In message <1451399667-32519-1-git-send-email-ben.whit...@gmail.com> you wrote: > From: Ben Whitten > > With format-security errors turned on, GCC picks up the use of sprintf without > a format parameter. Thanks for detecting this, but... > -

Re: [U-Boot] [PATCH v5 1/5] mips: implement to access the KSEG0/1 memory range in map_physmem

2015-12-29 Thread Daniel Schwierzeck
Am 29.12.2015 um 12:17 schrieb Wills Wang: > U-boot just use the no MMU virtual address segment(KSEG0/1), this > patch enable access the uncached memory range(KSEG1) by flag > "MAP_NOCACHE", other flag for KSEG0 access. > > Signed-off-by: Wills Wang > --- > > Changes in

[U-Boot] [PATCH 1/2] arm: Replace test for CONFIG_ARMV7 with CONFIG_CPU_V7

2015-12-29 Thread Marek Vasut
The arch/arm/lib/cache-cp15.c checks for CONFIG_ARMV7 and if this macro is set, it configures TTBR0 register. This register must be configured for the cache on ARMv7 to operate correctly. The problem is that noone actually sets the CONFIG_ARMV7 macro and thus the TTBR0 is not configured at all.

[U-Boot] [PATCH 2/2] arm: Remove S bit from MMU section entry

2015-12-29 Thread Marek Vasut
Restore the old behavior of the MMU section entries configuration, which is without the S-bit. Signed-off-by: Marek Vasut Cc: Tom Rini Cc: Albert Aribaud Cc: Simon Glass --- arch/arm/include/asm/system.h | 3 +--

Re: [U-Boot] [PATCH v5 2/5] mips: add support for QCA/Atheros ath79 SOCs

2015-12-29 Thread Daniel Schwierzeck
Am 29.12.2015 um 12:17 schrieb Wills Wang: > This patch enable work for ar933x SOC, tested on ar9331 board. > > Signed-off-by: Wills Wang > --- > > Changes in v5: > - Add independent Kconfig > - Use SRAM for initial stack > - Move DDR initialization into

Re: [U-Boot] [PATCH V2] arm: novena: Switch novena to config_distro_bootcmd

2015-12-29 Thread Marek Vasut
On Tuesday, December 22, 2015 at 02:19:10 AM, Marek Vasut wrote: > On Monday, December 14, 2015 at 12:24:33 PM, Stefano Babic wrote: > > Hi Vagrant, > > > > On 13/12/2015 00:16, Vagrant Cascadian wrote: > > > On 2015-11-24, Marek Vasut wrote: > > >> From: Vagrant Cascadian

Re: [U-Boot] [PATCH v5 4/5] mips: ath79: add spi driver

2015-12-29 Thread Marek Vasut
On Wednesday, December 30, 2015 at 02:35:01 AM, Wills Wang wrote: > On 12/29/2015 09:25 PM, Marek Vasut wrote: > > On Tuesday, December 29, 2015 at 02:00:27 PM, Thomas Chou wrote: > >> Hi Wills, > >> > >> On 2015年12月29日 19:17, Wills Wang wrote: > >>> diff --git a/arch/mips/mach-ath79/Kconfig >

Re: [U-Boot] [PATCH v5 4/5] mips: ath79: add spi driver

2015-12-29 Thread Thomas Chou
Hi Marek, On 2015年12月29日 21:25, Marek Vasut wrote: On Tuesday, December 29, 2015 at 02:00:27 PM, Thomas Chou wrote: Hi Wills, On 2015年12月29日 19:17, Wills Wang wrote: diff --git a/arch/mips/mach-ath79/Kconfig b/arch/mips/mach-ath79/Kconfig index 1d92a5b..b5668e9 100644 ---

Re: [U-Boot] [PATCH v5 4/5] mips: ath79: add spi driver

2015-12-29 Thread Marek Vasut
On Wednesday, December 30, 2015 at 12:46:23 AM, Thomas Chou wrote: > Hi Marek, > > On 2015年12月29日 21:25, Marek Vasut wrote: > > On Tuesday, December 29, 2015 at 02:00:27 PM, Thomas Chou wrote: > >> Hi Wills, > >> > >> On 2015年12月29日 19:17, Wills Wang wrote: > >>> diff --git

Re: [U-Boot] [PATCH v5 1/5] mips: implement to access the KSEG0/1 memory range in map_physmem

2015-12-29 Thread Wills Wang
On 12/29/2015 08:49 PM, Antony Pavlov wrote: On Tue, 29 Dec 2015 19:17:09 +0800 Wills Wang wrote: U-boot just use the no MMU virtual address segment(KSEG0/1), this patch enable access the uncached memory range(KSEG1) by flag "MAP_NOCACHE", other flag for KSEG0 access.

Re: [U-Boot] [PATCH v5 3/5] mips: ath79: add serial driver for ar933x SOC

2015-12-29 Thread Wills Wang
On 12/29/2015 08:26 PM, Thomas Chou wrote: Hi Wills, On 2015年12月29日 19:17, Wills Wang wrote: > +DECLARE_GLOBAL_DATA_PTR; The gd is not used in this patch. It can be removed. +static int ar933x_serial_putc(struct udevice *dev, const char c) +{ +u32 data; + +do { +data =

Re: [U-Boot] [PATCH v5 4/5] mips: ath79: add spi driver

2015-12-29 Thread Wills Wang
On 12/29/2015 09:00 PM, Thomas Chou wrote: Hi Wills, On 2015年12月29日 19:17, Wills Wang wrote: diff --git a/arch/mips/mach-ath79/Kconfig b/arch/mips/mach-ath79/Kconfig index 1d92a5b..b5668e9 100644 --- a/arch/mips/mach-ath79/Kconfig +++ b/arch/mips/mach-ath79/Kconfig @@ -15,6 +15,7 @@ config

[U-Boot] [PATCH] igep00x0: cleanup ethernet support

2015-12-29 Thread Ladislav Michl
Move chip reset to separate function, use CONFIG_SMC911X_BASE instead of hardcoded value, remove unneeded local variable from board_eth_init. Signed-off-by: Ladislav Michl --- board/isee/igep00x0/igep00x0.c | 33 +++-- 1 file changed, 19

[U-Boot] [PATCH] SPL: Lightweight UBI and UBI fastmap support

2015-12-29 Thread Ladislav Michl
From: Thomas Gleixner This is an update of Thomas's patch: https://patchwork.ozlabs.org/patch/367306/ patch still depends on spl_nand_simple implementation: https://patchwork.ozlabs.org/patch/367305/ Changes from original version: - fixes ubi_calc_fm_size to include also

Re: [U-Boot] [PATCH v5 4/5] mips: ath79: add spi driver

2015-12-29 Thread Wills Wang
On 12/29/2015 09:25 PM, Marek Vasut wrote: On Tuesday, December 29, 2015 at 02:00:27 PM, Thomas Chou wrote: Hi Wills, On 2015年12月29日 19:17, Wills Wang wrote: diff --git a/arch/mips/mach-ath79/Kconfig b/arch/mips/mach-ath79/Kconfig index 1d92a5b..b5668e9 100644 ---

[U-Boot] [PATCH] Fix compile error when CONFIG_UBI_SILENCE_MSG defined

2015-12-29 Thread Ladislav Michl
Signed-off-by: Ladislav Michl --- drivers/mtd/ubi/io.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/ubi/io.c b/drivers/mtd/ubi/io.c index d1bdec3..0be9c5a 100644 --- a/drivers/mtd/ubi/io.c +++ b/drivers/mtd/ubi/io.c @@ -1351,7 +1351,6 @@ static int

[U-Boot] [PATCH] igep00x0: Do not include config_distro_defaults.h directly

2015-12-29 Thread Ladislav Michl
File is already included: omap3_igep00x0.h -> ti_omap3_common.h -> ti_armv7_omap.h -> ti_armv7_common.h -> config_distro_defaults.h Signed-off-by: Ladislav Michl --- include/configs/omap3_igep00x0.h | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff

[U-Boot] [PATCH] ti_omap3_common: Do not define CONFIG_SPL_NAND_SUPPORT

2015-12-29 Thread Ladislav Michl
Symbol is already defined in ti_armv7_common.h which is included via ti_armv7_omap.h Signed-off-by: Ladislav Michl --- include/configs/ti_omap3_common.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/ti_omap3_common.h

[U-Boot] [RFC] igep00x0: UBI everywhere but SPL

2015-12-29 Thread Ladislav Michl
This patch converts IGEP board to use UBI volumes for environment, u-boot, kernel... With exception of first four sectors with SPL loaded by SoC boot ROM whole NAND is UBI managed. I misused BOOT_DEVICE_BOARD, which is probably not briliant idea, but works well enough. Also code it too big, so I

Re: [U-Boot] [PATCH 1/6] arm: socfpga: cyclone5-socdk: Enabling mtd partitioning layout

2015-12-29 Thread Chin Liang See
On Mon, 2015-12-28 at 13:39 +0100, Marek Vasut wrote: > On Monday, December 28, 2015 at 09:51:44 AM, Chin Liang See wrote: > > On Thu, 2015-12-24 at 02:30 +0100, Marek Vasut wrote: > > > On Thursday, December 24, 2015 at 12:36:45 AM, Chin Liang See > > > wrote: > > > > On Thu, 2015-12-24 at 00:16

Re: [U-Boot] [PATCH] ddr: altera: Init the rule ID in debug code

2015-12-29 Thread Chin Liang See
On Tue, 2015-12-29 at 09:38 +0100, Marek Vasut wrote: > Init the rule ID, otherwise the debug code will always dump the > protection settings entry 0. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc:

Re: [U-Boot] [PATCH v5 5/5] mips: ath79: add AP121 reference board

2015-12-29 Thread Daniel Schwierzeck
Am 29.12.2015 um 12:17 schrieb Wills Wang: > Signed-off-by: Wills Wang > --- > > Changes in v5: > - Move CONFIG_SYS_TEXT_BASE into ap121.h, and remove config.mk > - Remove useless README file > - Remove useless checkboard function > > Changes in v4: None > Changes in v3:

Re: [U-Boot] [PATCH 1/6] arm: socfpga: cyclone5-socdk: Enabling mtd partitioning layout

2015-12-29 Thread Marek Vasut
On Tuesday, December 29, 2015 at 10:06:06 PM, Chin Liang See wrote: > On Mon, 2015-12-28 at 13:39 +0100, Marek Vasut wrote: > > On Monday, December 28, 2015 at 09:51:44 AM, Chin Liang See wrote: > > > On Thu, 2015-12-24 at 02:30 +0100, Marek Vasut wrote: > > > > On Thursday, December 24, 2015 at

Re: [U-Boot] [PATCH] ddr: altera: Init the rule ID in debug code

2015-12-29 Thread Marek Vasut
On Tuesday, December 29, 2015 at 10:04:55 PM, Chin Liang See wrote: > On Tue, 2015-12-29 at 09:38 +0100, Marek Vasut wrote: > > Init the rule ID, otherwise the debug code will always dump the > > protection settings entry 0. > > > > Signed-off-by: Marek Vasut > > Cc: Chin Liang

Re: [U-Boot] [PATCH v3 1/8] x86: qemu: add fw_cfg support

2015-12-29 Thread Bin Meng
Hi Miao, On Tue, Dec 29, 2015 at 6:35 PM, Miao Yan wrote: > The QEMU fw_cfg interface allows the guest to retrieve various > data information from QEMU. For example, APCI/SMBios tables, number > of online cpus, kernel data and command line, etc. > > This patch adds support

Re: [U-Boot] [PATCH v3 2/8] x86: qemu: add a cpu uclass driver for qemu target

2015-12-29 Thread Bin Meng
On Tue, Dec 29, 2015 at 6:35 PM, Miao Yan wrote: > Add a cpu uclass driver for qemu. Previously, the qemu > target gets cpu number from board dts files, which are > manually created at compile time. This does not scale > when more cpus are assigned to guest as the dts files

Re: [U-Boot] [PATCH 1/2] spl: dm: Add SPL_DM_SEQ_ALIAS config option

2015-12-29 Thread Nathan Rossi
On Mon, Dec 14, 2015 at 5:29 PM, Michal Simek wrote: > On 14.12.2015 07:26, Stefan Roese wrote: >> On 12.12.2015 15:08, Nathan Rossi wrote: >>> On Sat, Dec 12, 2015 at 10:05 PM, Stefan Roese wrote: On 11.12.2015 18:32, Marek Vasut wrote: > > On

Re: [U-Boot] [PATCH v5 2/5] mips: add support for QCA/Atheros ath79 SOCs

2015-12-29 Thread Wills Wang
On 12/30/2015 03:09 AM, Daniel Schwierzeck wrote: diff --git a/arch/mips/include/asm/global_data.h b/arch/mips/include/asm/global_data.h index 2d9a0c9..3799e98 100644 --- a/arch/mips/include/asm/global_data.h +++ b/arch/mips/include/asm/global_data.h @@ -20,6 +20,12 @@ struct arch_global_data

[U-Boot] [PATCH] mmc: fsl_esdhc: increase data transaction timeout to 500ms

2015-12-29 Thread Yangbo Lu
The MMC spec says "It is strongly recommended for hosts to implement more than 500ms timeout value even if the card indicates the 250ms maximum busy length." Even the previous value of 300ms is known to be insufficient for some cards. So, increase the timeout to 500ms. Signed-off-by: Yangbo Lu

Re: [U-Boot] [PATCH v5 4/5] mips: ath79: add spi driver

2015-12-29 Thread Thomas Chou
Hi Marek and Wills, On 2015年12月30日 08:51, Marek Vasut wrote: Just skimming through the code, it seems like bitbanging the SPI using the generic soft-spi driver might be easier ;-/ I read the data sheet and Linux driver. Now I have clearer picture of this device. In serial flash mode, it

Re: [U-Boot] [PATCH v2 0/8] sf: Add flash_ids inside Core

2015-12-29 Thread Bin Meng
Hi Jagan, On Tue, Dec 29, 2015 at 5:49 PM, Jagan Teki wrote: > This series handle flash_ids stuff inside spi_flash core. > > Changes for v2: > - Remove SECT_4K flag for s25fl128s > > Jagan Teki (8): > sf: Add spi_flash_ids local to core > sf: Rename SST_WR to

Re: [U-Boot] [PATCH re-send v6 05/17] spi: Add support for dual and quad mode

2015-12-29 Thread Mugunthan V N
On Monday 28 December 2015 08:19 PM, Jagan Teki wrote: > On 23 December 2015 at 20:39, Mugunthan V N wrote: >> spi bus can support dual and quad wire data transfers for tx and >> rx. So defining dual and quad modes for both tx and rx. Also add >> support to parse bus width

Re: [U-Boot] [PATCH v3 7/8] x86: reserve more spaces for dtb

2015-12-29 Thread Bin Meng
Hi Miao, On Tue, Dec 29, 2015 at 6:35 PM, Miao Yan wrote: > Reserve more spaces for x86 dtb files. Otherwise when booting > on qemu targets, fixing 'cpu' node may fail due to lack > of space left in dtb. > > Signed-off-by: Miao Yan > --- >

Re: [U-Boot] [PATCH v3 3/8] x86: fix a typo in function name

2015-12-29 Thread Bin Meng
On Tue, Dec 29, 2015 at 6:35 PM, Miao Yan wrote: > Rename 'find_cpu_by_apid_id' to 'find_cpu_by_apic_id'. This > should be a typo. > > Signed-off-by: Miao Yan > --- > arch/x86/cpu/mp_init.c | 6 +++--- > 1 file changed, 3 insertions(+), 3

Re: [U-Boot] [PATCH v3 8/8] x86: qemu: add documentaion for the fw_cfg interface

2015-12-29 Thread Bin Meng
Hi Miao, On Tue, Dec 29, 2015 at 6:35 PM, Miao Yan wrote: > Document the usage of 'fw' command > > Signed-off-by: Miao Yan > --- > Changes in v2: > - various cleanup > > doc/README.x86 | 36 +--- > 1 file changed,

Re: [U-Boot] [PATCH v3 5/8] x86: qemu: add qemu_fwcfg_fdt_fixup()

2015-12-29 Thread Bin Meng
On Tue, Dec 29, 2015 at 6:35 PM, Miao Yan wrote: > Add a function to fixup 'cpus' node in dts files for qemu target. > > Signed-off-by: Miao Yan > --- > Changes in v2: > - various cleanups > > arch/x86/cpu/qemu/fw_cfg.c | 65 >

Re: [U-Boot] [PATCH v3 4/8] x86: use actual CPU number for allocating memory

2015-12-29 Thread Bin Meng
On Tue, Dec 29, 2015 at 6:35 PM, Miao Yan wrote: > Use actual CPU number, instead of maximum cpu configured, > to allocate stack memory in 'load_sipi_vector' > > Signed-off-by: Miao Yan > --- > Changes in v2: > - fix commit message > >

Re: [U-Boot] [PATCH v3 6/8] x86: qemu: fix up cpu node in device tree

2015-12-29 Thread Bin Meng
On Tue, Dec 29, 2015 at 6:35 PM, Miao Yan wrote: > Remove 'cpus' node in dts files for QEMU targets, > retrieve cpu number through 'fw_cfg' interface and > fix up device tree blob at runtime. > > Signed-off-by: Miao Yan > --- > Changes in v2: > -

Re: [U-Boot] [PATCH v3 5/8] x86: qemu: add qemu_fwcfg_fdt_fixup()

2015-12-29 Thread Bin Meng
On Tue, Dec 29, 2015 at 6:35 PM, Miao Yan wrote: > Add a function to fixup 'cpus' node in dts files for qemu target. > fixup -> fix up > Signed-off-by: Miao Yan > --- > Changes in v2: > - various cleanups > > arch/x86/cpu/qemu/fw_cfg.c | 65 >

Re: [U-Boot] [PATCH v7] spi: Add support for dual and quad mode

2015-12-29 Thread Mugunthan V N
On Monday 28 December 2015 11:08 PM, Jagan Teki wrote: > From: Mugunthan V N > > spi bus can support dual and quad wire data transfers for tx and > rx. So defining dual and quad modes for both tx and rx. Also add > support to parse bus width used for spi tx and rx transfers.

Re: [U-Boot] [PATCH v5 5/5] mips: ath79: add AP121 reference board

2015-12-29 Thread Wills Wang
On 12/30/2015 03:27 AM, Daniel Schwierzeck wrote: diff --git a/include/configs/ap121.h b/include/configs/ap121.h new file mode 100644 index 000..21fb04e --- /dev/null +++ b/include/configs/ap121.h @@ -0,0 +1,86 @@ +#ifndef __CONFIG_H +#define __CONFIG_H + +#include + +#define

Re: [U-Boot] [RFC PATCH 1/2] common: Add new clk command

2015-12-29 Thread Michal Simek
Hi Simon, On 22.12.2015 05:21, Simon Glass wrote: > Hi Michal, > > On 22 January 2014 at 04:02, Michal Simek wrote: >> Command provides just dump subcommand for showing clock >> frequencies in a soc. >> >> Signed-off-by: Michal Simek >> --- >>

Re: [U-Boot] [PATCH] net: gem: Build warning fixes for 64-bit

2015-12-29 Thread Michal Simek
On 22.12.2015 03:10, Joe Hershberger wrote: > Hi Michal, > > On Fri, Oct 30, 2015 at 10:00 AM, Michal Simek > wrote: >> Cast pointers to unsigned long instead of a sized 32-bit type to avoid >> pointer to integer cast size mismatch warnings. >> >> Signed-off-by: Michal

[U-Boot] [PATCH] ddr: altera: Init the rule ID in debug code

2015-12-29 Thread Marek Vasut
Init the rule ID, otherwise the debug code will always dump the protection settings entry 0. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Dinh Nguyen --- drivers/ddr/altera/sdram.c | 1

Re: [U-Boot] [PATCH 0/3] dm: add dev_get_reg() for getting device node's reg

2015-12-29 Thread Przemyslaw Marczak
Hello Stephen, On 12/16/2015 07:53 PM, Stephen Warren wrote: On 12/15/2015 09:32 AM, Przemyslaw Marczak wrote: commit: dm: core: Enable optional use of fdt_translate_address() enables device's bus/child address translation method, depending on bus 'ranges' property and including child 'reg'

Re: [U-Boot] [PATCH 0/3] dm: add dev_get_reg() for getting device node's reg

2015-12-29 Thread Przemyslaw Marczak
Hello Stephen, On 12/16/2015 08:07 PM, Stephen Warren wrote: On 12/16/2015 11:53 AM, Stephen Warren wrote: On 12/15/2015 09:32 AM, Przemyslaw Marczak wrote: commit: dm: core: Enable optional use of fdt_translate_address() enables device's bus/child address translation method, depending on

[U-Boot] [PATCH v2 0/8] x86: qemu: add fw_cfg interface support for qemu-x86 targets

2015-12-29 Thread Miao Yan
The fw_cfg interface provided by QEMU allow guests to retrieve various information about the system, e.g. cpu number, variaous firmware data, kernel setup, etc. The fw_cfg interface can be accessed through 3 IO ports (on x86), using x86 in/out instructions. - 0x510: select configuration items

[U-Boot] [PATCH v2 2/8] x86: qemu: add a cpu uclass driver for qemu target

2015-12-29 Thread Miao Yan
Add a cpu uclass driver for qemu. Previously, the qemu target gets cpu number from board dts files, which are manually created at compile time. This does not scale when more cpus are assigned to guest as the dts files must be modified as well. This patch adds a cpu uclass driver for qemu targets

[U-Boot] [PATCH v2 7/8] x86: reserve more spaces for dtb

2015-12-29 Thread Miao Yan
Reserve more spaces for x86 dtb files. Otherwise when booting on qemu targets, fixing 'cpu' node may fail due to lack of space left in dtb. Signed-off-by: Miao Yan --- arch/x86/dts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v2 1/8] x86: qemu: add fw_cfg support

2015-12-29 Thread Miao Yan
The QEMU fw_cfg interface allows the guest to retrieve various data information from QEMU. For example, APCI/SMBios tables, number of online cpus, kernel data and command line, etc. This patch adds support for QEMU fw_cfg interface. Signed-off-by: Miao Yan --- Changes in

[U-Boot] [PATCH v2 5/8] x86: qemu: add qemu_fwcfg_fdt_fixup()

2015-12-29 Thread Miao Yan
Add a function to fixup 'cpus' node in dts files for qemu target. Signed-off-by: Miao Yan --- Changes in v2: - various cleanups arch/x86/cpu/qemu/fw_cfg.c | 65 ++ arch/x86/cpu/qemu/fw_cfg.h | 11 2 files changed, 76

[U-Boot] [PATCH v2 6/8] x86: qemu: fix up cpu node in device tree

2015-12-29 Thread Miao Yan
Remove 'cpus' node in dts files for QEMU targets, retrieve cpu number through 'fw_cfg' interface and fix up device tree blob at runtime. Signed-off-by: Miao Yan --- Changes in v2: - rebase to u-boot-x86/next arch/x86/cpu/qemu/qemu.c | 4

[U-Boot] [PATCH v2 4/8] x86: use actual CPU number for allocating memory

2015-12-29 Thread Miao Yan
Use actual CPU number, instead of maximum cpu configured, to allocate stack memory in 'load_sipi_vector' Signed-off-by: Miao Yan --- Changes in v2: - fix commit message arch/x86/cpu/mp_init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH v2 8/8] x86: qemu: add documentaion for the fw_cfg interface

2015-12-29 Thread Miao Yan
Document the usage of 'fw' command Signed-off-by: Miao Yan --- Changes in v2: - various cleanup doc/README.x86 | 36 +--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/doc/README.x86 b/doc/README.x86 index

[U-Boot] [PATCH v2 3/8] x86: fix a typo in function name

2015-12-29 Thread Miao Yan
Rename 'find_cpu_by_apid_id' to 'find_cpu_by_apic_id'. This should be a typo. Signed-off-by: Miao Yan --- arch/x86/cpu/mp_init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c index

[U-Boot] [PATCH v2 0/8] sf: Add flash_ids inside Core

2015-12-29 Thread Jagan Teki
This series handle flash_ids stuff inside spi_flash core. Changes for v2: - Remove SECT_4K flag for s25fl128s Jagan Teki (8): sf: Add spi_flash_ids local to core sf: Rename SST_WR to SST_WRITE sf: Remove SPI_NOR_DUAL|QUAD_READ sf: Use sf_params in sandbox sf: Remove SECT_32K

[U-Boot] [PATCH v2 3/8] sf: Remove SPI_NOR_DUAL|QUAD_READ

2015-12-29 Thread Jagan Teki
Since flash_info hadle all read modes through e_rd_cmd there is no explicit flags for these, hence removed the same. Cc: Simon Glass Cc: Bin Meng CC: Mugunthan V N Cc: Michal Simek Cc: Siva Durga Prasad

[U-Boot] [PATCH v2 1/8] sf: Add spi_flash_ids local to core

2015-12-29 Thread Jagan Teki
This patch add's spi_flash_ids handling into core, instead of maintaining it into separate file like sf_params.c Code taken from the Linux spi-nor core and added missing part id's and also added extra flash_info member as e_rd_cmd for computing fastest read command. Cc: Simon Glass

[U-Boot] [PATCH v2 2/8] sf: Rename SST_WR to SST_WRITE

2015-12-29 Thread Jagan Teki
SST_WR => SST_WRITE 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 v2 4/8] sf: Use sf_params in sandbox

2015-12-29 Thread Jagan Teki
sandbox.c is using sf_params, so move sf_params.o to sandbox build. Cc: Simon Glass Cc: Bin Meng Signed-off-by: Jagan Teki --- drivers/mtd/spi/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v3 0/8] x86: qemu: add fw_cfg interface support for qemu-x86 targets

2015-12-29 Thread Miao Yan
The fw_cfg interface provided by QEMU allow guests to retrieve various information about the system, e.g. cpu number, variaous firmware data, kernel setup, etc. The fw_cfg interface can be accessed through 3 IO ports (on x86), using x86 in/out instructions. - 0x510: select configuration items

[U-Boot] [PATCH v3 3/8] x86: fix a typo in function name

2015-12-29 Thread Miao Yan
Rename 'find_cpu_by_apid_id' to 'find_cpu_by_apic_id'. This should be a typo. Signed-off-by: Miao Yan --- arch/x86/cpu/mp_init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c index

[U-Boot] [PATCH v3 2/8] x86: qemu: add a cpu uclass driver for qemu target

2015-12-29 Thread Miao Yan
Add a cpu uclass driver for qemu. Previously, the qemu target gets cpu number from board dts files, which are manually created at compile time. This does not scale when more cpus are assigned to guest as the dts files must be modified as well. This patch adds a cpu uclass driver for qemu targets

[U-Boot] [PATCH v3 1/8] x86: qemu: add fw_cfg support

2015-12-29 Thread Miao Yan
The QEMU fw_cfg interface allows the guest to retrieve various data information from QEMU. For example, APCI/SMBios tables, number of online cpus, kernel data and command line, etc. This patch adds support for QEMU fw_cfg interface. Signed-off-by: Miao Yan --- Changes in

[U-Boot] [PATCH v3 8/8] x86: qemu: add documentaion for the fw_cfg interface

2015-12-29 Thread Miao Yan
Document the usage of 'fw' command Signed-off-by: Miao Yan --- Changes in v2: - various cleanup doc/README.x86 | 36 +--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/doc/README.x86 b/doc/README.x86 index

[U-Boot] [PATCH v3 5/8] x86: qemu: add qemu_fwcfg_fdt_fixup()

2015-12-29 Thread Miao Yan
Add a function to fixup 'cpus' node in dts files for qemu target. Signed-off-by: Miao Yan --- Changes in v2: - various cleanups arch/x86/cpu/qemu/fw_cfg.c | 65 ++ arch/x86/cpu/qemu/fw_cfg.h | 11 2 files changed, 76

[U-Boot] [PATCH v3 4/8] x86: use actual CPU number for allocating memory

2015-12-29 Thread Miao Yan
Use actual CPU number, instead of maximum cpu configured, to allocate stack memory in 'load_sipi_vector' Signed-off-by: Miao Yan --- Changes in v2: - fix commit message arch/x86/cpu/mp_init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH v3 7/8] x86: reserve more spaces for dtb

2015-12-29 Thread Miao Yan
Reserve more spaces for x86 dtb files. Otherwise when booting on qemu targets, fixing 'cpu' node may fail due to lack of space left in dtb. Signed-off-by: Miao Yan --- arch/x86/dts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v5 2/5] mips: add support for QCA/Atheros ath79 SOCs

2015-12-29 Thread Wills Wang
This patch enable work for ar933x SOC, tested on ar9331 board. Signed-off-by: Wills Wang --- Changes in v5: - Add independent Kconfig - Use SRAM for initial stack - Move DDR initialization into board_early_init_f - Convert DDR tap tunning code to C - Save SOC's version into

[U-Boot] [PATCH v5 3/5] mips: ath79: add serial driver for ar933x SOC

2015-12-29 Thread Wills Wang
Signed-off-by: Wills Wang --- Changes in v5: - remove ar933x_serial_platdata - Import document "qca,ar9330-uart.txt" from kernel - Add support for debug UART Changes in v4: - Auto calculate baudrate for serial driver - Move pinctrl code in serial driver into

[U-Boot] [PATCH v5 5/5] mips: ath79: add AP121 reference board

2015-12-29 Thread Wills Wang
Signed-off-by: Wills Wang --- Changes in v5: - Move CONFIG_SYS_TEXT_BASE into ap121.h, and remove config.mk - Remove useless README file - Remove useless checkboard function Changes in v4: None Changes in v3: - Add support for device tree Changes in v2: - Add a reference

[U-Boot] [PATCH v5 4/5] mips: ath79: add spi driver

2015-12-29 Thread Wills Wang
Signed-off-by: Wills Wang --- Changes in v5: - remove ar933x_spi_platdata - Import document "spi-ath79.txt" from kernel - Add delay for bitbang operation Changes in v4: - Use get_bus_freq instead of hardcode in SPI driver Changes in v3: - Convert spi driver to driver model

Re: [U-Boot] [PATCH v5 3/5] mips: ath79: add serial driver for ar933x SOC

2015-12-29 Thread Thomas Chou
Hi Wills, On 2015年12月29日 19:17, Wills Wang wrote: > +DECLARE_GLOBAL_DATA_PTR; The gd is not used in this patch. It can be removed. +static int ar933x_serial_putc(struct udevice *dev, const char c) +{ + u32 data; + + do { + data = ar933x_serial_read(dev,

[U-Boot] [PATCH 09/10] malloc_simple: Display an error when memory is exhausted

2015-12-29 Thread Simon Glass
This is an uncommon but annoying case. Normal error handling will ensure it is reported, but it is useful to have a message which provides a little more detail. Signed-off-by: Simon Glass --- common/malloc_simple.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-)

[U-Boot] [PATCH 08/10] i2c: Correct command return values

2015-12-29 Thread Simon Glass
We should not return a -ve error code from command functions. Instead, return CMD_RET_FAILURE. This avoids the "exit not allowed from main input shell" error messages from the hush shell. Signed-off-by: Simon Glass --- common/cmd_i2c.c | 6 -- 1 file changed, 4

Re: [U-Boot] [PATCH v5 1/5] mips: implement to access the KSEG0/1 memory range in map_physmem

2015-12-29 Thread Antony Pavlov
On Tue, 29 Dec 2015 19:17:09 +0800 Wills Wang wrote: > U-boot just use the no MMU virtual address segment(KSEG0/1), this > patch enable access the uncached memory range(KSEG1) by flag > "MAP_NOCACHE", other flag for KSEG0 access. > > Signed-off-by: Wills Wang

[U-Boot] [PATCH 10/10] pinctrl: Avoid binding all pinconfig nodes before relocation

2015-12-29 Thread Simon Glass
This can create a large number of pinctrl devices. It chews up early malloc() memory and takes time. Only bind those which are marked as needed before relocation. Signed-off-by: Simon Glass --- drivers/pinctrl/pinctrl-uclass.c | 4 1 file changed, 4 insertions(+) diff

Re: [U-Boot] Pull request: u-boot-net

2015-12-29 Thread Tom Rini
On Mon, Dec 28, 2015 at 09:02:02PM -0600, Joe Hershberger wrote: > Hi Tom, > > On Wed, Dec 23, 2015 at 9:47 PM, Tom Rini wrote: > > On Tue, Dec 22, 2015 at 11:58:01AM -0600, Joe Hershberger wrote: > > > >> A few patches that came in during the merge window and appear

[U-Boot] [PATCH 05/10] dm: spi_flash: Allow the uclass to work without printf()

2015-12-29 Thread Simon Glass
For SPL we don't really need sprintf() and with tiny-printf this is not available. Allow this to be dropped in SPL when using tiny-printf. Signed-off-by: Simon Glass --- drivers/mtd/spi/sf-uclass.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 04/10] tiny-printf: Avoid printing NULL strings

2015-12-29 Thread Simon Glass
Add a check for NULL strings to avoid printing junk to the console. Signed-off-by: Simon Glass --- lib/tiny-printf.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/tiny-printf.c b/lib/tiny-printf.c index 403b134..efe5c25 100644 ---

[U-Boot] [PATCH 07/10] dm: mmc: Try to honour the sequence order

2015-12-29 Thread Simon Glass
At present we add driver-model MMC devices in the order we find them. The 'alias' order is not honoured. It is difficult to fix this for the case where we have holes in the sequence. But for the common case where the devices are numbered from 0 without any gaps, we can add the devices to the

[U-Boot] [PATCH 06/10] dm: gpio: Allow the uclass to work without printf()

2015-12-29 Thread Simon Glass
For SPL we don't really need sprintf() and with tiny-printf this is not available. Allow this to be dropped in SPL when using tiny-printf. Signed-off-by: Simon Glass --- drivers/gpio/gpio-uclass.c | 8 1 file changed, 8 insertions(+) diff --git

[U-Boot] [PATCH v2 8/8] sf: Fix few naming convension for read modes

2015-12-29 Thread Jagan Teki
spi_read_cmds => read_mode e_rd_cmd => flash_read spi_read_cmds_array => flash_read_cmd All these are flash specific notation used in spi_flash core hence renamed to proper naming convensions related to flash. Cc: Simon Glass Cc: Bin Meng CC: Mugunthan V

[U-Boot] [PATCH 01/10] rockchip: Enable generation of SPI images

2015-12-29 Thread Simon Glass
This feature was dropped at some point. Restore it. Signed-off-by: Simon Glass --- tools/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Makefile b/tools/Makefile index 9cfd80b..d49e40d 100644 --- a/tools/Makefile +++ b/tools/Makefile @@

Re: [U-Boot] [RFC PATCH 1/2] common: Add new clk command

2015-12-29 Thread Simon Glass
Hi Michal, On 29 December 2015 at 01:33, Michal Simek wrote: > Hi Simon, > > On 22.12.2015 05:21, Simon Glass wrote: >> Hi Michal, >> >> On 22 January 2014 at 04:02, Michal Simek wrote: >>> Command provides just dump subcommand for showing clock

[U-Boot] [PATCH 03/10] rockchip: Fix the configuration for chromebook_jerry

2015-12-29 Thread Simon Glass
Various updates did not make it through to this board. Also the instructions for building a SPI image are no-longer correct. Fix these so that Jerry can boot to a prompt again. Signed-off-by: Simon Glass --- configs/chromebook_jerry_defconfig | 4 doc/README.rockchip

[U-Boot] [PATCH 02/10] rockchip: Drop a debug message when outputing SPI images

2015-12-29 Thread Simon Glass
There is an unnecessary sector count displayed. Drop it. Signed-off-by: Simon Glass --- tools/rkspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/rkspi.c b/tools/rkspi.c index 800e235..a0b0051 100644 --- a/tools/rkspi.c +++ b/tools/rkspi.c @@

Re: [U-Boot] [RFC PATCH 1/2] common: Add new clk command

2015-12-29 Thread Wolfgang Denk
Dear Simon, In message you wrote: > > >>> create mode 100644 common/cmd_clk.c > >>> create mode 100644 include/clk.h ... > Sorry, I only just noticed it. I'll see if I can create a patch to get > the clock info from an API

Re: [U-Boot] [PATCH 04/10] tiny-printf: Avoid printing NULL strings

2015-12-29 Thread Stefan Roese
On 29.12.2015 13:22, Simon Glass wrote: Add a check for NULL strings to avoid printing junk to the console. Signed-off-by: Simon Glass --- lib/tiny-printf.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/tiny-printf.c b/lib/tiny-printf.c

[U-Boot] [PATCH v2 7/8] sf: Use CONFIG_SPI_FLASH_USE_4K_SECTORS

2015-12-29 Thread Jagan Teki
Used CONFIG_SPI_FLASH_USE_4K_SECTORS core itself for usage of 4K_SECTORS. Cc: Simon Glass Cc: Bin Meng CC: Mugunthan V N Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Signed-off-by:

[U-Boot] [PATCH v5 0/5] add support for atheros ath79 based SOCs

2015-12-29 Thread Wills Wang
These series of patch add support for atheros ath79 based SOCs in u-boot, at the present moment it's just available for ar933x chip. Changes in v5: - Add independent Kconfig - Use SRAM for initial stack - Move DDR initialization into board_early_init_f - Convert DDR tap tunning code to C - Save

[U-Boot] [PATCH v5 1/5] mips: implement to access the KSEG0/1 memory range in map_physmem

2015-12-29 Thread Wills Wang
U-boot just use the no MMU virtual address segment(KSEG0/1), this patch enable access the uncached memory range(KSEG1) by flag "MAP_NOCACHE", other flag for KSEG0 access. Signed-off-by: Wills Wang --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in

Re: [U-Boot] [PATCH v5 4/5] mips: ath79: add spi driver

2015-12-29 Thread Thomas Chou
Hi Wills, On 2015年12月29日 19:17, Wills Wang wrote: diff --git a/arch/mips/mach-ath79/Kconfig b/arch/mips/mach-ath79/Kconfig index 1d92a5b..b5668e9 100644 --- a/arch/mips/mach-ath79/Kconfig +++ b/arch/mips/mach-ath79/Kconfig @@ -15,6 +15,7 @@ config SOC_AR933X select

Re: [U-Boot] [PATCH v5 4/5] mips: ath79: add spi driver

2015-12-29 Thread Marek Vasut
On Tuesday, December 29, 2015 at 02:00:27 PM, Thomas Chou wrote: > Hi Wills, > > On 2015年12月29日 19:17, Wills Wang wrote: > > diff --git a/arch/mips/mach-ath79/Kconfig b/arch/mips/mach-ath79/Kconfig > > index 1d92a5b..b5668e9 100644 > > --- a/arch/mips/mach-ath79/Kconfig > > +++

[U-Boot] [PATCH] Fix GCC format-security errors.

2015-12-29 Thread ben . whitten
From: Ben Whitten With format-security errors turned on, GCC picks up the use of sprintf without a format parameter. Signed-off-by: Ben Whitten --- common/cmd_elf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v2 5/8] sf: Remove SECT_32K

2015-12-29 Thread Jagan Teki
None of the flash part is using SECT_32K in spi_flash_ids hence removed the same. Cc: Simon Glass Cc: Bin Meng CC: Mugunthan V N Cc: Michal Simek Cc: Siva Durga Prasad Paladugu

[U-Boot] [PATCH v2 6/8] sf: Add SECT_4K_PMC

2015-12-29 Thread Jagan Teki
Add SECT_4K_PMC for erase 4KiB block on PMC chips. Cc: Simon Glass Cc: Bin Meng CC: Mugunthan V N Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Signed-off-by: Jagan Teki

Re: [U-Boot] [PATCH v2 1/8] x86: qemu: add fw_cfg support

2015-12-29 Thread Miao Yan
2015-12-29 17:45 GMT+08:00 Miao Yan : > The QEMU fw_cfg interface allows the guest to retrieve various > data information from QEMU. For example, APCI/SMBios tables, number > of online cpus, kernel data and command line, etc. > > This patch adds support for QEMU fw_cfg

[U-Boot] [PATCH 00/10] rockchip: Tidy up SPL operation on jerry

2015-12-29 Thread Simon Glass
At present chromebook_jerry does not boot due to a configuration error and a missing Makefile piece. This series fixes that and also adds a few more adjustments mostly related to SPL and pinctrl. The first three patches could perhaps be applied for this release - the rest are for later. Simon

Re: [U-Boot] [PATCH 2/3] armv8/ls1043aqds: add QSPI support in SD boot

2015-12-29 Thread Qianyu Gong
> -Original Message- > From: Scott Wood [mailto:scottw...@freescale.com] > Sent: Tuesday, December 29, 2015 5:52 AM > To: Qianyu Gong ; u-boot@lists.denx.de > Cc: Mingkai Hu ; r58...@freescale.com; > b48...@freescale.com; shaohui@freescale.com;

  1   2   >