Re: [U-Boot] [PATCH v3 12/13] x86: qemu: rename qemu/acpi_table.c

2016-05-22 Thread Bin Meng
On Mon, May 23, 2016 at 10:37 AM, Miao Yan wrote: > Rename qemu/acpi_table.c to qemu/e820.c, because ACPI stuff is moved > to qfw core, this file only contains code for installing e820 table. > > Signed-off-by: Miao Yan > Reviewed-by: Bin Meng > --- > Changes in v3: > - none > > arch/x86/cpu/q

Re: [U-Boot] [PATCH v3 10/13] cmd: qfw: do not depend on x86

2016-05-22 Thread Bin Meng
On Mon, May 23, 2016 at 10:37 AM, Miao Yan wrote: > The qfw command interface used to depend on X86, this patch removes > this restriction so it can be built for sandbox for testing. For normal > usage, it can only be used with CONFIG_QEMU. > > Signed-off-by: Miao Yan > Reviewed-by: Bin Meng > -

Re: [U-Boot] [PATCH v3 13/13] config: sandbox: enable qfw and cmd_qfw for testing

2016-05-22 Thread Bin Meng
On Mon, May 23, 2016 at 1:37 PM, Bin Meng wrote: > On Mon, May 23, 2016 at 10:37 AM, Miao Yan wrote: >> This patch enables qfw and cmd_qfw on sandbox for build coverage test >> >> Signed-off-by: Miao Yan >> --- >> Changes in v3: >> - fix config option order >> >> configs/sandbox_defconfig | 2

Re: [U-Boot] [PATCH v3 09/13] cmd: qfw: do not require default macros when building qfw command

2016-05-22 Thread Bin Meng
On Mon, May 23, 2016 at 10:37 AM, Miao Yan wrote: > The qfw command interface makes use of CONFIG_LOADADDR and > CONFIG_RAMDISKADDR to setup kernel. But not all boards have these macros, > which causes build problem on those platforms. > > This patch fixes this issue. > > Signed-off-by: Miao Yan

Re: [U-Boot] [PATCH v3 11/13] cmd: qfw: bring ACPI generation code into qfw core

2016-05-22 Thread Bin Meng
On Mon, May 23, 2016 at 10:37 AM, Miao Yan wrote: > Loading ACPI table from QEMU's fw_cfg interface is not x86 specific > (ARM64 may also make use of it). So move the code to common place. > > Signed-off-by: Miao Yan > Reviewed-by: Bin Meng > --- > Changes in v3: > - none > > arch/x86/cpu/qemu

Re: [U-Boot] [PATCH v3 08/13] cmd: qfw: rename qemu_fw_cfg.[c|h] to qfw.[c|h]

2016-05-22 Thread Bin Meng
On Mon, May 23, 2016 at 10:37 AM, Miao Yan wrote: > Make file names consistent with CONFIG_QFW and CONFIG_CMD_QFW > > Signed-off-by: Miao Yan > Reviewed-by: Bin Meng > --- > Changes in v3: > - squash with patch v2 #13 > > arch/x86/cpu/mp_init.c| 2 +- > arch/x86/cpu/qemu/acpi_t

Re: [U-Boot] [PATCH v3 07/13] x86: qemu: add comment about qfw register endianness

2016-05-22 Thread Bin Meng
On Mon, May 23, 2016 at 10:37 AM, Miao Yan wrote: > This patch adds some comments about qfw register endianness for clarity. > > Signed-off-by: Miao Yan > Reviewed-by: Bin Meng > --- > Changes in v3: > - none > > arch/x86/cpu/qemu/qemu.c | 9 - > 1 file changed, 8 insertions(+), 1 dele

Re: [U-Boot] [PATCH v3 05/13] x86: qemu: split qfw command interface and qfw core

2016-05-22 Thread Bin Meng
On Mon, May 23, 2016 at 10:37 AM, Miao Yan wrote: > This patch splits qfw command interface and qfw core function into two > files, and introduces a new Kconfig option (CONFIG_QFW) for qfw core. > > Now when qfw command interface is enabled, it will automatically select > qfw core. This patch also

Re: [U-Boot] [PATCH v3 06/13] x86: qemu: move x86 specific operations out of qfw core

2016-05-22 Thread Bin Meng
On Mon, May 23, 2016 at 10:37 AM, Miao Yan wrote: > The original implementation of qfw includes several x86 specific > operations, like directly calling outb/inb and using some inline > assembly code which prevents it being ported to other architectures. > > This patch adds callback functions and

Re: [U-Boot] [PATCH v3 02/13] cmd: qfw: add API to iterate firmware list

2016-05-22 Thread Bin Meng
On Mon, May 23, 2016 at 10:37 AM, Miao Yan wrote: > This patch is part of the refactor work of qfw. It adds 3 APIs to qfw > core to iterate firmware list. > > Signed-off-by: Miao Yan > Reviewed-by: Bin Meng > --- > Changes in v3: > - none > > cmd/qemu_fw_cfg.c | 25 ++--

Re: [U-Boot] [PATCH v3 04/13] cmd: qfw: make fwcfg_present and fwcfg_dma_present public

2016-05-22 Thread Bin Meng
On Mon, May 23, 2016 at 10:37 AM, Miao Yan wrote: > This patch is part of the qfw refactor work. This patch makes > qemu_fwcfg_present() and qemu_fwcfg_dma_present() public functions. > > Signed-off-by: Miao Yan > Reviewed-by: Bin Meng > --- > Changes in v3: > - none > > cmd/qemu_fw_cfg.c

Re: [U-Boot] [PATCH v3 03/13] cmd: qfw: remove qemu_fwcfg_free_files()

2016-05-22 Thread Bin Meng
On Mon, May 23, 2016 at 10:37 AM, Miao Yan wrote: > This patch is part of the qfw refactor work. > > The qemu_fwcfg_free_files() function is only used in error handling in > ACPI table generation, let's not make this a core function and move it > to the right place. > > Signed-off-by: Miao Yan >

Re: [U-Boot] [PATCH v3 01/13] x86: qemu: fix ACPI Kconfig options

2016-05-22 Thread Bin Meng
On Mon, May 23, 2016 at 10:37 AM, Miao Yan wrote: > CONFIG_GENENRATE_ACPI_TABLE controls the generation of ACPI table which > uses U-Boot's built-in methods and CONFIG_QEMU_ACPI_TABLE controls whether > to load ACPI table from QEMU's fw_cfg interface. > > But with commit "697ec431469ce0a4c2fc2c02d

Re: [U-Boot] [PATCH v3 13/13] config: sandbox: enable qfw and cmd_qfw for testing

2016-05-22 Thread Bin Meng
On Mon, May 23, 2016 at 10:37 AM, Miao Yan wrote: > This patch enables qfw and cmd_qfw on sandbox for build coverage test > > Signed-off-by: Miao Yan > --- > Changes in v3: > - fix config option order > > configs/sandbox_defconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/confi

Re: [U-Boot] [PATCH 05/15] x86: Use latest microcode for all BayTrail boards

2016-05-22 Thread Stefan Roese
On 22.05.2016 10:45, Bin Meng wrote: Update board device tree to include latest microcode. Signed-off-by: Bin Meng Reviewed-by: Stefan Roese Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v3 13/13] config: sandbox: enable qfw and cmd_qfw for testing

2016-05-22 Thread Miao Yan
This patch enables qfw and cmd_qfw on sandbox for build coverage test Signed-off-by: Miao Yan --- Changes in v3: - fix config option order configs/sandbox_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index afdf4a3..4cc3a1

[U-Boot] [PATCH v3 09/13] cmd: qfw: do not require default macros when building qfw command

2016-05-22 Thread Miao Yan
The qfw command interface makes use of CONFIG_LOADADDR and CONFIG_RAMDISKADDR to setup kernel. But not all boards have these macros, which causes build problem on those platforms. This patch fixes this issue. Signed-off-by: Miao Yan Reviewed-by: Bin Meng --- Changes in v3: - none cmd/qfw.c |

[U-Boot] [PATCH v3 10/13] cmd: qfw: do not depend on x86

2016-05-22 Thread Miao Yan
The qfw command interface used to depend on X86, this patch removes this restriction so it can be built for sandbox for testing. For normal usage, it can only be used with CONFIG_QEMU. Signed-off-by: Miao Yan Reviewed-by: Bin Meng --- Changes in v3: - none cmd/Kconfig | 1 - 1 file changed, 1

[U-Boot] [PATCH v3 11/13] cmd: qfw: bring ACPI generation code into qfw core

2016-05-22 Thread Miao Yan
Loading ACPI table from QEMU's fw_cfg interface is not x86 specific (ARM64 may also make use of it). So move the code to common place. Signed-off-by: Miao Yan Reviewed-by: Bin Meng --- Changes in v3: - none arch/x86/cpu/qemu/acpi_table.c | 209 - driver

[U-Boot] [PATCH v3 12/13] x86: qemu: rename qemu/acpi_table.c

2016-05-22 Thread Miao Yan
Rename qemu/acpi_table.c to qemu/e820.c, because ACPI stuff is moved to qfw core, this file only contains code for installing e820 table. Signed-off-by: Miao Yan Reviewed-by: Bin Meng --- Changes in v3: - none arch/x86/cpu/qemu/Makefile | 3 +-- arch/x86/cpu/qemu/{acpi_table.c

[U-Boot] [PATCH v3 06/13] x86: qemu: move x86 specific operations out of qfw core

2016-05-22 Thread Miao Yan
The original implementation of qfw includes several x86 specific operations, like directly calling outb/inb and using some inline assembly code which prevents it being ported to other architectures. This patch adds callback functions and moves those to arch/x86/ Signed-off-by: Miao Yan Reviewed-

[U-Boot] [PATCH v3 08/13] cmd: qfw: rename qemu_fw_cfg.[c|h] to qfw.[c|h]

2016-05-22 Thread Miao Yan
Make file names consistent with CONFIG_QFW and CONFIG_CMD_QFW Signed-off-by: Miao Yan Reviewed-by: Bin Meng --- Changes in v3: - squash with patch v2 #13 arch/x86/cpu/mp_init.c| 2 +- arch/x86/cpu/qemu/acpi_table.c| 2 +- arch/x86/cpu/qemu/cpu.c | 2 +- a

[U-Boot] [PATCH v3 05/13] x86: qemu: split qfw command interface and qfw core

2016-05-22 Thread Miao Yan
This patch splits qfw command interface and qfw core function into two files, and introduces a new Kconfig option (CONFIG_QFW) for qfw core. Now when qfw command interface is enabled, it will automatically select qfw core. This patch also makes the ACPI table generation select CONFIG_QFW. Signed-

[U-Boot] [PATCH v3 03/13] cmd: qfw: remove qemu_fwcfg_free_files()

2016-05-22 Thread Miao Yan
This patch is part of the qfw refactor work. The qemu_fwcfg_free_files() function is only used in error handling in ACPI table generation, let's not make this a core function and move it to the right place. Signed-off-by: Miao Yan Reviewed-by: Bin Meng --- Changes in v3: - none arch/x86/cpu/

[U-Boot] [PATCH v3 04/13] cmd: qfw: make fwcfg_present and fwcfg_dma_present public

2016-05-22 Thread Miao Yan
This patch is part of the qfw refactor work. This patch makes qemu_fwcfg_present() and qemu_fwcfg_dma_present() public functions. Signed-off-by: Miao Yan Reviewed-by: Bin Meng --- Changes in v3: - none cmd/qemu_fw_cfg.c | 37 - include/qemu_fw_cfg.h |

[U-Boot] [PATCH v3 07/13] x86: qemu: add comment about qfw register endianness

2016-05-22 Thread Miao Yan
This patch adds some comments about qfw register endianness for clarity. Signed-off-by: Miao Yan Reviewed-by: Bin Meng --- Changes in v3: - none arch/x86/cpu/qemu/qemu.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/x86/cpu/qemu/qemu.c b/arch/x86/cpu/qemu/qe

[U-Boot] [PATCH v3 01/13] x86: qemu: fix ACPI Kconfig options

2016-05-22 Thread Miao Yan
CONFIG_GENENRATE_ACPI_TABLE controls the generation of ACPI table which uses U-Boot's built-in methods and CONFIG_QEMU_ACPI_TABLE controls whether to load ACPI table from QEMU's fw_cfg interface. But with commit "697ec431469ce0a4c2fc2c02d8685d907491af84 x86: qemu: Drop our own ACPI implementation"

[U-Boot] [PATCH v3 02/13] cmd: qfw: add API to iterate firmware list

2016-05-22 Thread Miao Yan
This patch is part of the refactor work of qfw. It adds 3 APIs to qfw core to iterate firmware list. Signed-off-by: Miao Yan Reviewed-by: Bin Meng --- Changes in v3: - none cmd/qemu_fw_cfg.c | 25 ++--- include/qemu_fw_cfg.h | 9 + 2 files changed, 31 insertio

[U-Boot] [PATCH v3 00/13] cleanup QEMU fw_cfg code

2016-05-22 Thread Miao Yan
This patchset cleans the QEMU fw_cfg code: *) split qfw core and qfw command interface *) split x86 specific operations from qfw core *) move x86 ACPI generation code into qfw core as this can also be used by others like ARM64 *) various cleanups Changes in v2: *) make git format-

Re: [U-Boot] [PATCH 10/15] x86: quark: Assign a unique I/O APIC ID

2016-05-22 Thread Simon Glass
On 22 May 2016 at 02:45, Bin Meng wrote: > After power-on, both LAPIC and I/O APIC appear with the same APIC ID > zero, which creates an ID conflict. When generating MP table, U-Boot > reports zero as the LAPIC ID in the processor entry, and zero as the > I/O APIC ID in the I/O APIC as well as the

Re: [U-Boot] [PATCH 12/15] x86: galileo: Enable MP table generation

2016-05-22 Thread Simon Glass
On 22 May 2016 at 02:45, Bin Meng wrote: > Now that we have added CPU uclass driver and fixed the IOAPIC ID > conflict, enable MP table generation so that IOAPIC can be used > by the Linux kernel. > > Signed-off-by: Bin Meng > --- > > configs/galileo_defconfig | 1 + > 1 file changed, 1 insertio

Re: [U-Boot] [PATCH 15/15] x86: galileo: Override SMBIOS product name

2016-05-22 Thread Simon Glass
On 22 May 2016 at 02:45, Bin Meng wrote: > Override the default product name U-Boot reports in the SMBIOS > table, to be compatible with the Intel provided UEFI BIOS, as > Linux kernel drivers (drivers/mfd/intel_quark_i2c_gpio.c and > drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c) make use of >

Re: [U-Boot] [PATCH 14/15] x86: Switch to use SMBIOS Kconfig options when writing SMBIOS tables

2016-05-22 Thread Simon Glass
On 22 May 2016 at 02:45, Bin Meng wrote: > Make use of the newly added Kconfig options of board manufacturer > and product name to write SMBIOS tables. > > Signed-off-by: Bin Meng > --- > > arch/x86/lib/smbios.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) Reviewed-by: Sim

Re: [U-Boot] [PATCH 13/15] x86: kconfig: Add two options for SMBIOS manufacturer and product name

2016-05-22 Thread Simon Glass
On 22 May 2016 at 02:45, Bin Meng wrote: > This introduces two Kconfig options to be used by SMBIOS tables: > board manufacturer and product name. > > Signed-off-by: Bin Meng > --- > > arch/x86/Kconfig | 16 > 1 file changed, 16 insertions(+) Reviewed-by: Simon Glass _

Re: [U-Boot] [PATCH 11/15] x86: broadwell: Correct I/O APIC ID

2016-05-22 Thread Simon Glass
On 22 May 2016 at 02:45, Bin Meng wrote: > Currently ID 2 is assgined to broadwell I/O APIC, however per > chromebook_samus.dts 2 is the core#2 LAPIC ID. Now we change > I/O APIC ID to 4 to avoid conflict. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/broadwell/pch.c | 3 ++- > 1 file chang

Re: [U-Boot] [PATCH 08/15] x86: Remove SMP limitation in lapic_setup()

2016-05-22 Thread Simon Glass
On 22 May 2016 at 02:45, Bin Meng wrote: > At present LAPIC is enabled and configured as virtual wire mode > in lapic_setup() only when CONFIG_SMP is on. This limitation is > however not necessary as for uniprocessor this is still needed. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/lapic.

Re: [U-Boot] [PATCH 06/15] x86: galileo: Enable CPU driver

2016-05-22 Thread Simon Glass
On 22 May 2016 at 02:45, Bin Meng wrote: > Add a cpu node in the device tree and enable CPU driver. > > Signed-off-by: Bin Meng > --- > > arch/x86/dts/galileo.dts | 12 > configs/galileo_defconfig | 2 ++ > 2 files changed, 14 insertions(+) Reviewed-by: Simon Glass _

Re: [U-Boot] [PATCH 04/15] x86: baytrail: Update to latest microcode

2016-05-22 Thread Simon Glass
On 22 May 2016 at 02:45, Bin Meng wrote: > Update BayTrail microcde to rev 325 (for CPUID 30673), rev 907 > (for CPUID 30679). > > Signed-off-by: Bin Meng > --- > > arch/x86/dts/microcode/m0130673322.dtsi | 3284 > --- > arch/x86/dts/microcode/m0130673325.dtsi | 3284

Re: [U-Boot] [PATCH 07/15] x86: Don't touch IA32_APIC_BASE MSR on Intel Quark

2016-05-22 Thread Simon Glass
On 22 May 2016 at 02:45, Bin Meng wrote: > Intel Quark processor core provides an integrated Local APIC but > does not support the IA32_APIC_BASE MSR. As a result, the Local > APIC is always globally enabled and the Local APIC base address > is fixed at 0xfee0. Attempting to access the IA32_AP

Re: [U-Boot] [PATCH 01/15] acpi: Clean IASL generated intermediate files

2016-05-22 Thread Simon Glass
On 22 May 2016 at 02:45, Bin Meng wrote: > For boards that support ACPI, there are dsdt.aml, dsdt.asl.tmp and > dsdt.c in the board directory after a successful build. These are > intermediate files generated by IASL, and should be removed during > a 'make clean'. > > Signed-off-by: Bin Meng > --

Re: [U-Boot] [PATCH 03/15] x86: Add some notes for MRC cache with Intel FSP

2016-05-22 Thread Simon Glass
On 22 May 2016 at 02:45, Bin Meng wrote: > MRC cache relies on Intel FSP to produce a special GUID that > contains the MRC cache data. Add such information in the > CONFIG_ENABLE_MRC_CACHE help entry. > > Signed-off-by: Bin Meng > --- > > arch/x86/Kconfig | 7 +++ > 1 file changed, 7 inserti

Re: [U-Boot] [PATCH 05/15] x86: Use latest microcode for all BayTrail boards

2016-05-22 Thread Simon Glass
On 22 May 2016 at 02:45, Bin Meng wrote: > Update board device tree to include latest microcode. > > Signed-off-by: Bin Meng > --- > > arch/x86/dts/bayleybay.dts | 4 ++-- > arch/x86/dts/conga-qeval20-qa3-e3845.dts | 4 ++-- > arch/x86/dts/minnowmax.dts | 4 ++-- > 3

Re: [U-Boot] [PATCH 09/15] x86: Call lapic_setup() in interrupt_init()

2016-05-22 Thread Simon Glass
On 22 May 2016 at 02:45, Bin Meng wrote: > Let's configure LAPIC in a common place - interrupt_init(). > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/interrupts.c| 8 +--- > arch/x86/cpu/ivybridge/model_206ax.c | 2 -- > arch/x86/cpu/mp_init.c | 2 -- > 3 files

Re: [U-Boot] [PATCH 02/15] x86: crownbay: Disable boot stage support

2016-05-22 Thread Simon Glass
On 22 May 2016 at 02:45, Bin Meng wrote: > It is observed that when enabling boot stage support, occasionally > the board reboots during boot over and over again, and eventually > boots to shell. This was seen on my board, but not on Jian's board. > Debugging shows that the TSC timer calibration a

[U-Boot] can the last traces of "bcopy" be removed?

2016-05-22 Thread Robert P. J. Day
just noticed that this is all that's left of "bcopy": $ grep -rw bcopy * arch/powerpc/lib/ppcstring.S: .globl bcopy arch/powerpc/lib/ppcstring.S:bcopy: arch/microblaze/include/asm/string.h:extern void bcopy (const char *, char *, int); include/linux/string.h:char *bcopy(const char *src, cha

[U-Boot] a couple notes on kernel-doc in u-boot

2016-05-22 Thread Robert P. J. Day
first, what is the recommended location for kernel-doc -- the header files or the source files -- because i'm currently perusing lib/libfdt/*.c, and the kernel-doc seems to be scattered across both locations. does u-boot have a preference? next. some of the kernel-doc is incorrect or invalid.

Re: [U-Boot] how to buy the lwmon5 board ?

2016-05-22 Thread Wolfgang Denk
Dear 李 亮, In message you wrote: > > I want to test the u-boot for lwmon5 board,but I need this board,do you sell > it? The lwmon5 Board is integral part of a (big) machine manufactured and sold by one of our customers. You cannot buy this board. If you are looking for something similar, y

[U-Boot] how to buy the lwmon5 board ?

2016-05-22 Thread 李 亮
Dear: I want to test the u-boot for lwmon5 board,but I need this board,do you sell it? 发自我的 Windowsphone ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 0/9] sh: Convert generic board

2016-05-22 Thread Tom Rini
On Sun, May 22, 2016 at 02:26:28PM +0900, Yoshinori Sato wrote: > On Sat, 21 May 2016 10:28:42 +0900, > Tom Rini wrote: > > > > [1 ] > > On Thu, May 19, 2016 at 09:26:46PM +0900, Yoshinori Sato wrote: > > > > > Hello. > > > This patch series convert generic board for SH. > > > Tested on r2dplus

[U-Boot] [PATCH] kernel-doc: Adjust "/**" comment for non-kernel-doc content.

2016-05-22 Thread Robert P. J. Day
Don't use /** openings for non-kernel-doc content, as it breaks the processing of that file. Signed-off-by: Robert P. J. Day --- diff --git a/include/linker_lists.h b/include/linker_lists.h index 76898ab..731ec29 100644 --- a/include/linker_lists.h +++ b/include/linker_lists.h @@ -21,7 +21,7 @

[U-Boot] whoops, never mind that last kernel-doc patch

2016-05-22 Thread Robert P. J. Day
was unaware there was an official "Example:" section name. rday -- Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter:

[U-Boot] [PATCH] kernel-doc: Fix broken kernel-doc in linker_lists.h

2016-05-22 Thread Robert P. J. Day
Repair two types of erroneous kernel-doc content in this header file that prevents it from being processed. * Remove "/**" comment style from non-kernel-doc content. * Remove colons, which in kernel-doc define a new section. Signed-off-by: Robert P. J. Day --- i'll have more to say abou

Re: [U-Boot] [PATCH 5/7] mips: ath79: Unify DDR initialization entry for ar934x

2016-05-22 Thread Marek Vasut
On 05/22/2016 01:35 PM, Wills Wang wrote: > > > On 05/22/2016 07:13 PM, Marek Vasut wrote: >> On 05/22/2016 05:59 AM, Wills Wang wrote: >>> Use function "ddr_init" for ath79 platform DDR initialization, >>> and put it into mach/ddr.h >>> >>> Signed-off-by: Wills Wang >>> --- >>> >>> arch/mips/

Re: [U-Boot] [PATCH 5/7] mips: ath79: Unify DDR initialization entry for ar934x

2016-05-22 Thread Wills Wang
On 05/22/2016 07:13 PM, Marek Vasut wrote: On 05/22/2016 05:59 AM, Wills Wang wrote: Use function "ddr_init" for ath79 platform DDR initialization, and put it into mach/ddr.h Signed-off-by: Wills Wang --- arch/mips/mach-ath79/ar933x/ddr.c | 2 +- arch/mips/mach-ath79/ar934x/ddr.c

Re: [U-Boot] [PATCH 3/7] mips: ath79: Use uniform header for reset

2016-05-22 Thread Marek Vasut
On 05/22/2016 01:29 PM, Wills Wang wrote: > > > On 05/22/2016 07:08 PM, Marek Vasut wrote: >> On 05/22/2016 05:59 AM, Wills Wang wrote: >>> Collect all reset operation on platform and move them into a uniform >>> header >>> >>> Signed-off-by: Wills Wang >>> --- >>> >>> arch/mips/mach-ath79/inc

Re: [U-Boot] [PATCH 3/7] mips: ath79: Use uniform header for reset

2016-05-22 Thread Wills Wang
On 05/22/2016 07:08 PM, Marek Vasut wrote: On 05/22/2016 05:59 AM, Wills Wang wrote: Collect all reset operation on platform and move them into a uniform header Signed-off-by: Wills Wang --- arch/mips/mach-ath79/include/mach/ath79.h | 3 --- arch/mips/mach-ath79/include/mach/reset.h | 2

Re: [U-Boot] [PATCH V2 1/7] mips: ath79: ar933x: Avoid warning with gcc5

2016-05-22 Thread Wills Wang
On 05/22/2016 07:15 PM, Marek Vasut wrote: On 05/22/2016 05:59 AM, Wills Wang wrote: GCC 5.3 report a warning: 'upper' and 'lower' may be used uninitialized in this function [-Wmaybe-uninitialized]. Compiler might need explicit initializer. Signed-off-by: Wills Wang --- arch/mips/mach-ath

Re: [U-Boot] [PATCH V2 2/7] mips: ath79: ar933x: Fix ethernet PHY mismatch

2016-05-22 Thread Wills Wang
On 05/22/2016 07:05 PM, Marek Vasut wrote: On 05/22/2016 05:59 AM, Wills Wang wrote: We need reset the Ethernet Switch analog part before operation, or the build-in Ethernet PHY don't work. Signed-off-by: Wills Wang --- So what changed in V2 here ? I change commit message according to dani

Re: [U-Boot] [PATCH V2 1/7] mips: ath79: ar933x: Avoid warning with gcc5

2016-05-22 Thread Marek Vasut
On 05/22/2016 05:59 AM, Wills Wang wrote: > GCC 5.3 report a warning: 'upper' and 'lower' may be used > uninitialized in this function [-Wmaybe-uninitialized]. > Compiler might need explicit initializer. > > Signed-off-by: Wills Wang > --- > > arch/mips/mach-ath79/ar933x/ddr.c | 2 ++ > 1 file

Re: [U-Boot] [PATCH 3/7] mips: ath79: Use uniform header for reset

2016-05-22 Thread Marek Vasut
On 05/22/2016 05:59 AM, Wills Wang wrote: > Collect all reset operation on platform and move them into a uniform header > > Signed-off-by: Wills Wang > --- > > arch/mips/mach-ath79/include/mach/ath79.h | 3 --- > arch/mips/mach-ath79/include/mach/reset.h | 2 ++ > board/tplink/wdr4300/wdr4300.c

Re: [U-Boot] [PATCH 6/7] mips: ath79: Unify PLL initialization entry

2016-05-22 Thread Marek Vasut
On 05/22/2016 05:59 AM, Wills Wang wrote: > Use function "pll_init" for ath79 platform PLL initialization, > and put it into mach/clk.h > > Signed-off-by: Wills Wang > --- > > arch/mips/mach-ath79/ar934x/clk.c | 2 +- > arch/mips/mach-ath79/include/mach/ath79.h | 2 -- > arch/mips/mac

Re: [U-Boot] [PATCH 7/7] mips: ath79: ap121: Enable ethernet

2016-05-22 Thread Marek Vasut
On 05/22/2016 05:59 AM, Wills Wang wrote: > This patch enable network function for ap121 board, it's based on > the coming ethernet driver ag7xxx. > > Signed-off-by: Wills Wang > --- Acked-by: Marek Vasut > arch/mips/dts/ap121.dts | 5 + > arch/mips/dts/ar933x.dtsi | 4 ++-- > board/qca

Re: [U-Boot] [PATCH 4/7] mips: ath79: Rename get_bootstrap into ath79_get_bootstrap

2016-05-22 Thread Marek Vasut
On 05/22/2016 05:59 AM, Wills Wang wrote: > Add a platform prefix for function name in order to make more readable > > Signed-off-by: Wills Wang > --- > > arch/mips/mach-ath79/ar933x/clk.c | 2 +- > arch/mips/mach-ath79/ar933x/ddr.c | 2 +- > arch/mips/mach-ath79/ar934x/clk.c

Re: [U-Boot] [PATCH 5/7] mips: ath79: Unify DDR initialization entry for ar934x

2016-05-22 Thread Marek Vasut
On 05/22/2016 05:59 AM, Wills Wang wrote: > Use function "ddr_init" for ath79 platform DDR initialization, > and put it into mach/ddr.h > > Signed-off-by: Wills Wang > --- > > arch/mips/mach-ath79/ar933x/ddr.c | 2 +- > arch/mips/mach-ath79/ar934x/ddr.c | 2 +- > arch/mips/mach-

Re: [U-Boot] [PATCH V2 2/7] mips: ath79: ar933x: Fix ethernet PHY mismatch

2016-05-22 Thread Marek Vasut
On 05/22/2016 05:59 AM, Wills Wang wrote: > We need reset the Ethernet Switch analog part before operation, > or the build-in Ethernet PHY don't work. > > Signed-off-by: Wills Wang > --- So what changed in V2 here ? > arch/mips/mach-ath79/include/mach/ar71xx_regs.h | 1 + > arch/mips/mach-ath7

[U-Boot] [PATCH] tools: Add entry for generated tools/bin2header to tools/.gitignore

2016-05-22 Thread Robert P. J. Day
Signed-off-by: Robert P. J. Day --- diff --git a/tools/.gitignore b/tools/.gitignore index ff07680..cb1e722 100644 --- a/tools/.gitignore +++ b/tools/.gitignore @@ -1,4 +1,5 @@ /atmel_pmecc_params +/bin2header /bmp_logo /envcrc /fdtgrep --

[U-Boot] couple questions re: special processing in image_setup_libfdt() for keystone

2016-05-22 Thread Robert P. J. Day
i note that, at the bottom of the image_setup_libfdt() routine in common/image-fdt.c, there is some special processing for a particular SoC: #if defined(CONFIG_SOC_KEYSTONE) if (IMAGE_OF_BOARD_SETUP) ft_board_setup_ex(blob, gd->bd); #endif first, it seems kind of ..

[U-Boot] [PATCH 11/15] x86: broadwell: Correct I/O APIC ID

2016-05-22 Thread Bin Meng
Currently ID 2 is assgined to broadwell I/O APIC, however per chromebook_samus.dts 2 is the core#2 LAPIC ID. Now we change I/O APIC ID to 4 to avoid conflict. Signed-off-by: Bin Meng --- arch/x86/cpu/broadwell/pch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/

[U-Boot] [PATCH 13/15] x86: kconfig: Add two options for SMBIOS manufacturer and product name

2016-05-22 Thread Bin Meng
This introduces two Kconfig options to be used by SMBIOS tables: board manufacturer and product name. Signed-off-by: Bin Meng --- arch/x86/Kconfig | 16 1 file changed, 16 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index c57b99d..3c015c7 100644 --- a/arch/x

[U-Boot] [PATCH 08/15] x86: Remove SMP limitation in lapic_setup()

2016-05-22 Thread Bin Meng
At present LAPIC is enabled and configured as virtual wire mode in lapic_setup() only when CONFIG_SMP is on. This limitation is however not necessary as for uniprocessor this is still needed. Signed-off-by: Bin Meng --- arch/x86/cpu/lapic.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletio

[U-Boot] [PATCH 14/15] x86: Switch to use SMBIOS Kconfig options when writing SMBIOS tables

2016-05-22 Thread Bin Meng
Make use of the newly added Kconfig options of board manufacturer and product name to write SMBIOS tables. Signed-off-by: Bin Meng --- arch/x86/lib/smbios.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/lib/smbios.c b/arch/x86/lib/smbios.c index 441fca9

[U-Boot] [PATCH 15/15] x86: galileo: Override SMBIOS product name

2016-05-22 Thread Bin Meng
Override the default product name U-Boot reports in the SMBIOS table, to be compatible with the Intel provided UEFI BIOS, as Linux kernel drivers (drivers/mfd/intel_quark_i2c_gpio.c and drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c) make use of it to do different board level configuration. Sign

[U-Boot] [PATCH 12/15] x86: galileo: Enable MP table generation

2016-05-22 Thread Bin Meng
Now that we have added CPU uclass driver and fixed the IOAPIC ID conflict, enable MP table generation so that IOAPIC can be used by the Linux kernel. Signed-off-by: Bin Meng --- configs/galileo_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/galileo_defconfig b/configs/gal

[U-Boot] [PATCH 07/15] x86: Don't touch IA32_APIC_BASE MSR on Intel Quark

2016-05-22 Thread Bin Meng
Intel Quark processor core provides an integrated Local APIC but does not support the IA32_APIC_BASE MSR. As a result, the Local APIC is always globally enabled and the Local APIC base address is fixed at 0xfee0. Attempting to access the IA32_APIC_BASE MSR causes a general protection fault. Si

[U-Boot] [PATCH 10/15] x86: quark: Assign a unique I/O APIC ID

2016-05-22 Thread Bin Meng
After power-on, both LAPIC and I/O APIC appear with the same APIC ID zero, which creates an ID conflict. When generating MP table, U-Boot reports zero as the LAPIC ID in the processor entry, and zero as the I/O APIC ID in the I/O APIC as well as the I/O interrupt assignment entries. Such MP table c

[U-Boot] [PATCH 09/15] x86: Call lapic_setup() in interrupt_init()

2016-05-22 Thread Bin Meng
Let's configure LAPIC in a common place - interrupt_init(). Signed-off-by: Bin Meng --- arch/x86/cpu/interrupts.c| 8 +--- arch/x86/cpu/ivybridge/model_206ax.c | 2 -- arch/x86/cpu/mp_init.c | 2 -- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/arc

[U-Boot] [PATCH 06/15] x86: galileo: Enable CPU driver

2016-05-22 Thread Bin Meng
Add a cpu node in the device tree and enable CPU driver. Signed-off-by: Bin Meng --- arch/x86/dts/galileo.dts | 12 configs/galileo_defconfig | 2 ++ 2 files changed, 14 insertions(+) diff --git a/arch/x86/dts/galileo.dts b/arch/x86/dts/galileo.dts index f784c50..da3cbff 100644

[U-Boot] [PATCH 00/15] x86: Various updates and fixes

2016-05-22 Thread Bin Meng
This series include various updates and fixes to x86 support. A major update is Intel Quark support, that MP table generation is enabled and working well with Linux kernel. This series is available at u-boot-x86/misc-working for testing. Bin Meng (15): acpi: Clean IASL generated intermediate

[U-Boot] [PATCH 03/15] x86: Add some notes for MRC cache with Intel FSP

2016-05-22 Thread Bin Meng
MRC cache relies on Intel FSP to produce a special GUID that contains the MRC cache data. Add such information in the CONFIG_ENABLE_MRC_CACHE help entry. Signed-off-by: Bin Meng --- arch/x86/Kconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig i

[U-Boot] [PATCH 01/15] acpi: Clean IASL generated intermediate files

2016-05-22 Thread Bin Meng
For boards that support ACPI, there are dsdt.aml, dsdt.asl.tmp and dsdt.c in the board directory after a successful build. These are intermediate files generated by IASL, and should be removed during a 'make clean'. Signed-off-by: Bin Meng --- Makefile | 1 + 1 file changed, 1 insertion(+) dif

[U-Boot] [PATCH 05/15] x86: Use latest microcode for all BayTrail boards

2016-05-22 Thread Bin Meng
Update board device tree to include latest microcode. Signed-off-by: Bin Meng --- arch/x86/dts/bayleybay.dts | 4 ++-- arch/x86/dts/conga-qeval20-qa3-e3845.dts | 4 ++-- arch/x86/dts/minnowmax.dts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git

[U-Boot] [PATCH 02/15] x86: crownbay: Disable boot stage support

2016-05-22 Thread Bin Meng
It is observed that when enabling boot stage support, occasionally the board reboots during boot over and over again, and eventually boots to shell. This was seen on my board, but not on Jian's board. Debugging shows that the TSC timer calibration against PIT fails as boot stage APIs utilize timer