[U-Boot] [PATCH] powerpc/c29xpcie: Enable configs to use generic board code

2014-11-06 Thread Chunhe Lan
Add configs: o CONFIG_SYS_GENERIC_BOARD o CONFIG_DISPLAY_BOARDINFO in C29XPCIE config header file to use U-boot generic board code. Signed-off-by: Chunhe Lan --- include/configs/C29XPCIE.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/configs/C29XPCIE.h b/

[U-Boot] [PATCH] powerpc/p1023rdb: Enable configs to use generic board code

2014-11-06 Thread Chunhe Lan
Add configs: o CONFIG_SYS_GENERIC_BOARD o CONFIG_DISPLAY_BOARDINFO in P1023RDB config header file to use U-boot generic board code. Signed-off-by: Chunhe Lan --- include/configs/P1023RDB.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/configs/P1023RDB.h b

[U-Boot] [PATCH] mpc85xx/p1022ds: convert to generic board

2014-11-06 Thread Yuantian.Tang
From: Tang Yuantian Signed-off-by: Tang Yuantian --- include/configs/P1022DS.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/P1022DS.h b/include/configs/P1022DS.h index 54e2569..de0613f 100644 --- a/include/configs/P1022DS.h +++ b/include/configs/P1022DS.h @@ -11,6 +11,

[U-Boot] [PATCH v1] ZFS: Clean up cppcheck warnings where relevant, leaked memory etc

2014-11-06 Thread Jorgen Lundman
In a message from Wolfgang Denk highlighting warnings from cppcheck, the patch will address those that are correctly diagnosed. Some are false-positives: > [fs/zfs/zfs.c:937]: (error) Memory leak: l dmu_read() allocates "l" if successful, so error-case should not free it. > [fs/zfs/zfs.c:1141]: (e

Re: [U-Boot] [PATCH] MAINTAINERS: add me as a maintainer of MTD

2014-11-06 Thread Scott Wood
On Wed, 2014-11-05 at 08:08 +0100, Heiko Schocher wrote: > Hello Scott, > > Am 03.11.2014 22:34, schrieb Scott Wood: > > On Fri, 2014-10-31 at 11:26 +0100, Heiko Schocher wrote: > >> Add MAINTAINERS and doc/git-mailrc entry. > >> > >> Signed-off-by: Heiko Schocher > >> > >> --- > >> as discussed t

[U-Boot] [PATCH] deepsleep/qe: add qe deepsleep support

2014-11-06 Thread Zhao Qiang
IRAM will power off and microcode will lost when system go into deepsleep, so upload it when resume deepsleep. Signed-off-by: Zhao Qiang --- board/freescale/ls1021aqds/ls1021aqds.c | 4 +- drivers/qe/qe.c | 76 + drivers/qe/qe.h

Re: [U-Boot] [PATCH v5 2/2] Odroid-XU3: Add support for Odroid-XU3

2014-11-06 Thread Minkyu Kang
Hi, On 07/11/14 10:55, Hyungwon Hwang wrote: > This patch adds support for Odroid-XU3. > > Signed-off-by: Hyungwon Hwang > Cc: Minkyu Kang > Cc: Lukasz Majewski > --- > Changes for v3: > - Remove unnecessary node from DT file > - Remove unnecessary features from config file >

Re: [U-Boot] [drivers/mtd/ubi/eba.c:1275]: (error) Uninitialized variable: aeb

2014-11-06 Thread Heiko Schocher
Hello Wolfgang, Am 06.11.2014 16:10, schrieb Wolfgang Denk: Dear Heiko, In message<545b81d9.6070...@denx.de> you wrote: [drivers/mtd/ubi/eba.c:1275]: (error) Uninitialized variable: aeb can you please have a look? Thanks! I see in drivers/mtd/ubi/eba.c: 1267:ubi_rb_for_e

Re: [U-Boot] [PATCH 11/39] x86: Invalidate TLB as early as possible

2014-11-06 Thread Bin Meng
On Fri, Nov 7, 2014 at 4:20 AM, Simon Glass wrote: > We should invalidate the TLB right at the start to ensure that we don't get > false address translations even though paging is disabled. > > Signed-off-by: Simon Glass > --- > > arch/x86/cpu/start16.S | 3 +++ > 1 file changed, 3 insertions(+)

Re: [U-Boot] [PATCH 10/39] x86: Remove unused early_board_init() call

2014-11-06 Thread Bin Meng
On Fri, Nov 7, 2014 at 4:20 AM, Simon Glass wrote: > This allows early board init before board_init_f() is called. We already > have a standard U-Boot board call, and no boards use this, so drop it. > > Signed-off-by: Simon Glass > --- > > arch/x86/cpu/start.S | 5

[U-Boot] PHY support issues

2014-11-06 Thread Aaron Williams
Hi all, I am dealing with some phy devices made by Cortina and the current U-Boot PHY infrastructure is giving me some huge headaches. First of all, Cortina does not follow any of the standards for their phys. Their phys use clause 45 but use device 0 registers 0 and 1 for the PHY ID instead of t

Re: [U-Boot] [PATCH 09/39] x86: Remove board_init16() call which is not used

2014-11-06 Thread Bin Meng
On Fri, Nov 7, 2014 at 4:20 AM, Simon Glass wrote: > This allows a board to do very early init, but no boards need to do this. > We may as well drop this feature. > > Signed-off-by: Simon Glass > --- > > arch/x86/cpu/start16.S | 10 +- > 1 file changed, 1 insertion(+), 9 deletions(-) > >

Re: [U-Boot] [PATCH 08/39] x86: Remove REALMODE_BASE which is no longer used

2014-11-06 Thread Bin Meng
On Fri, Nov 7, 2014 at 4:20 AM, Simon Glass wrote: > This was missed when the real mode support was dropped. Remove it. > > Signed-off-by: Simon Glass > --- > > arch/x86/config.mk | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/x86/config.mk b/arch/x86/config.mk > index 3e7fedb..bb2

Re: [U-Boot] [PATCH 22/39] x86: Move Coreboot PCI into common cpu area

2014-11-06 Thread Simon Glass
Hi Bin, On 6 November 2014 19:12, Bin Meng wrote: > Hi Simon, > > On Fri, Nov 7, 2014 at 9:53 AM, Simon Glass wrote: >> Hi Bin, >> >> >> On 6 November 2014 18:39, Bin Meng wrote: >>> Hi Simon, >>> >>> On Fri, Nov 7, 2014 at 8:26 AM, Simon Glass wrote: Hi Bin, On 6 November

Re: [U-Boot] [PATCH 4/4] x86: Save TSC frequency in the global data

2014-11-06 Thread Simon Glass
On 4 November 2014 07:58, Bin Meng wrote: > Return the saved TSC frequency in get_tbclk_mhz(). > > Signed-off-by: Bin Meng Acked-by: Simon Glass Tested on link: Tested-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de

Re: [U-Boot] [PATCH 3/4] x86: Add quick TSC calibration via PIT

2014-11-06 Thread Simon Glass
On 4 November 2014 07:58, Bin Meng wrote: > Use the same way that Linux does for quick TSC calibration via PIT > when calibration via MSR fails. > > Signed-off-by: Bin Meng Acked-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de http://list

Re: [U-Boot] [PATCH 2/4] x86: Do TSC MSR calibration only for known/supported CPUs

2014-11-06 Thread Simon Glass
On 4 November 2014 07:58, Bin Meng wrote: > Using MSR_PLATFORM_INFO (0xCE) to calibrate TSR will cause #GP on > processors which do not have this MSR. Instead only doing the MSR > calibration for known/supported CPUs. > > Signed-off-by: Bin Meng Acked-by: Simon Glass Tested on link: Tested-by:

Re: [U-Boot] [PATCH 1/4] x86: Display more detailed CPU information on boot

2014-11-06 Thread Simon Glass
Hi Bin, On 6 November 2014 19:22, Simon Glass wrote: > Hi Bin, > > On 4 November 2014 07:58, Bin Meng wrote: >> Currently only basic CPU information (x86 or x86_64) is displayed >> on boot. This commit adds more detailed information output including >> CPU vendor name, device id, family, model a

Re: [U-Boot] [PATCH 1/4] x86: Display more detailed CPU information on boot

2014-11-06 Thread Simon Glass
Hi Bin, On 4 November 2014 07:58, Bin Meng wrote: > Currently only basic CPU information (x86 or x86_64) is displayed > on boot. This commit adds more detailed information output including > CPU vendor name, device id, family, model and stepping as well as > the CPU brand string, all of which are

Re: [U-Boot] [PATCH 22/39] x86: Move Coreboot PCI into common cpu area

2014-11-06 Thread Bin Meng
Hi Simon, On Fri, Nov 7, 2014 at 9:53 AM, Simon Glass wrote: > Hi Bin, > > > On 6 November 2014 18:39, Bin Meng wrote: >> Hi Simon, >> >> On Fri, Nov 7, 2014 at 8:26 AM, Simon Glass wrote: >>> Hi Bin, >>> >>> >>> On 6 November 2014 17:07, Bin Meng wrote: Hi Simon, > -static struc

[U-Boot] [PATCH v5 2/2] Odroid-XU3: Add support for Odroid-XU3

2014-11-06 Thread Hyungwon Hwang
This patch adds support for Odroid-XU3. Signed-off-by: Hyungwon Hwang Cc: Minkyu Kang Cc: Lukasz Majewski --- Changes for v3: - Remove unnecessary node from DT file - Remove unnecessary features from config file - Remove unnecessary macros from board-specific header file

[U-Boot] [PATCH v5 0/2] Adds support for Exynos5422 odroid xu3 board

2014-11-06 Thread Hyungwon Hwang
This is v5 of the patchset adding support Odroud XU3 board. link to the previous version: v2: https://www.mail-archive.com/u-boot@lists.denx.de/msg152275.html v3: https://www.mail-archive.com/u-boot%40lists.denx.de/msg152677.html v4: https://patchwork.ozlabs.org/patch/407411/ This patchset fixes

[U-Boot] [PATCH v5 1/2] exynos5: fix GPIO information of exynos5420

2014-11-06 Thread Hyungwon Hwang
This patch fixes wrong GPIO information such as GPIO bank, table which is used to convert GPIO name to index, bank base address, and etc. Signed-off-by: Hyungwon Hwang Cc: Minkyu Kang Cc: Lukasz Majewski --- Changes for v4: - None Changes for v5: - None arch/arm/include/asm/arc

Re: [U-Boot] [PATCH 22/39] x86: Move Coreboot PCI into common cpu area

2014-11-06 Thread Simon Glass
Hi Bin, On 6 November 2014 18:39, Bin Meng wrote: > Hi Simon, > > On Fri, Nov 7, 2014 at 8:26 AM, Simon Glass wrote: >> Hi Bin, >> >> >> On 6 November 2014 17:07, Bin Meng wrote: >>> Hi Simon, >>> -static struct pci_config_table pci_coreboot_config_table[] = { +static struct pci_conf

Re: [U-Boot] [PATCH 22/39] x86: Move Coreboot PCI into common cpu area

2014-11-06 Thread Bin Meng
Hi Simon, On Fri, Nov 7, 2014 at 8:26 AM, Simon Glass wrote: > Hi Bin, > > > On 6 November 2014 17:07, Bin Meng wrote: >> Hi Simon, >> >>> -static struct pci_config_table pci_coreboot_config_table[] = { >>> +static struct pci_config_table pci_x86_config_table[] = { >>> /* vendor, device,

Re: [U-Boot] [PATCH v2 1/3] usb:ehci-mx6 add board_ehci_usb_mode function

2014-11-06 Thread Peng Fan
在 11/7/2014 4:20 AM, Marek Vasut 写道: On Wednesday, November 05, 2014 at 10:18:25 AM, Peng Fan wrote: 在 11/5/2014 5:03 PM, Marek Vasut 写道: On Wednesday, November 05, 2014 at 07:00:32 AM, Peng Fan wrote: 在 11/5/2014 1:33 AM, Marek Vasut 写道: On Tuesday, November 04, 2014 at 02:29:56 PM, Peng F

[U-Boot] [PATCH v3 1/3] usb:ehci-mx6 add board_usb_phy_mode function

2014-11-06 Thread Peng Fan
Include a weak function board_usb_phy_mode. usb_phy_enable decide whether the controller in device mode or in host mode by '*phy_ctrl & USBPHY_CTRL_OTG_ID'. There are two usb port on mx6sxsabresd and also mx6slevk. 1. OTG port 2. HOST port There are connected to SOC USB controller OTG1 core and O

[U-Boot] [PATCH v3 0/3] Add board level usb supporrt for mxsxsabresd and mx6slevk

2014-11-06 Thread Peng Fan
This patch set is mainly to add board level usb support for mx6sxsabresd and mx6slevk. Add pin mux settings and implement board_ehci_hcd_init and board_usb _phy_mode. Also in order to make the host port work for these two boards. A new weak function is introduced. Detailed info about this is in th

[U-Boot] [PATCH v3 3/3] imx:mx6slevk add board level support for usb

2014-11-06 Thread Peng Fan
Add pinmux settings, implement board_ehci_hcd_init, board_usb_phy_mode There are two usb port on mx6slevk board: 1. otg port 2. host port The following are the connection between usb controller and board usb interface, host port has not ID pin set: otg1 core <---> board otg port otg2 core <---> bo

[U-Boot] [PATCH v3 2/3] imx:mx6sxsabresd add board level support for usb

2014-11-06 Thread Peng Fan
Add pinmux settings, implement board_ehci_hcd_init, board_usb_phy_mode There are two usb port on mx6sxsabresd board: 1. otg port 2. host port The following are the connection between usb controller and board usb interface, host port has not ID pin set: otg1 core <---> board otg port otg2 core <---

Re: [U-Boot] [PATCH v1 6/6] mpc83xx: Add gdsys hrcon board

2014-11-06 Thread Kim Phillips
On Wed, 29 Oct 2014 16:03:57 +0100 wrote: > From: Dirk Eibach > > The gdsys hrcon board is based on a Freescale MPC8308 SOC. > It boots from NOR-Flash, kernel and rootfs are stored on > SD-Card. > > On board peripherals include: > - 1x GbE (optional) > - Lattice ECP3 FPGA connected via eLBC an

Re: [U-Boot] [PATCH v1 0/6] Update gdsys board support

2014-11-06 Thread Kim Phillips
On Thu, 6 Nov 2014 10:25:58 -0800 York Sun wrote: > On 11/05/2014 10:29 PM, Dirk Eibach wrote: > > Hi Stefan, > > > >>> Is Kim still active? Last message from him on the list I found was from > >>> may. > >> > >> Not sure. Lets wait and see if Kim responds... > > > > looks not so good. > > I pu

Re: [U-Boot] [PATCH 07/39] x86: Add processor functions for cpuid and stack pointer

2014-11-06 Thread Simon Glass
Hi Bin, On 6 November 2014 17:14, Bin Meng wrote: > Hi Simon, > > On Fri, Nov 7, 2014 at 4:19 AM, Simon Glass wrote: >> Add some functions to access cpuid from C in various useful ways. Also >> add a function to get the stack pointer and another to halt the CPU. >> >> Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH 22/39] x86: Move Coreboot PCI into common cpu area

2014-11-06 Thread Simon Glass
Hi Bin, On 6 November 2014 17:07, Bin Meng wrote: > Hi Simon, > > On Fri, Nov 7, 2014 at 4:20 AM, Simon Glass wrote: >> This code is not really Coreboot-specific, so move it into the common area >> and rename it. > > OK, but current coreboot pci codes are broken, thus need to be fixed > before

Re: [U-Boot] socfpga: mainline cannot boot linux

2014-11-06 Thread Dinh Nguyen
On 11/06/2014 05:40 PM, Anatolij Gustschin wrote: > Hi Dinh, > > On Thu, 6 Nov 2014 17:03:48 -0600 > Dinh Nguyen wrote: > >> Hi Marek, >> >> Have you been able to successfully boot Linux using the mainline uboot? >> I cannot seem to be able to boot linux on the C5 SocDK. >> >> It starts to boot

Re: [U-Boot] [PATCH 07/39] x86: Add processor functions for cpuid and stack pointer

2014-11-06 Thread Bin Meng
Hi Simon, On Fri, Nov 7, 2014 at 4:19 AM, Simon Glass wrote: > Add some functions to access cpuid from C in various useful ways. Also > add a function to get the stack pointer and another to halt the CPU. > > Signed-off-by: Simon Glass > --- > > arch/x86/include/asm/processor.h | 121 > +++

[U-Boot] [PATCH] socfpga_cyclone5.h: fix kernel console argument in default environment

2014-11-06 Thread Anatolij Gustschin
With fresh environment the kernel gets wrong console argument and boots without console output. Fix it. Reported-by: Dinh Nguyen Signed-off-by: Anatolij Gustschin Cc: Chin Liang See Cc: Dinh Nguyen Cc: Marek Vasut --- include/configs/socfpga_cyclone5.h |2 +- 1 file changed, 1 insertion(

Re: [U-Boot] [PATCH 22/39] x86: Move Coreboot PCI into common cpu area

2014-11-06 Thread Bin Meng
Hi Simon, On Fri, Nov 7, 2014 at 4:20 AM, Simon Glass wrote: > This code is not really Coreboot-specific, so move it into the common area > and rename it. OK, but current coreboot pci codes are broken, thus need to be fixed before making it common. > Signed-off-by: Simon Glass > --- > > arch/

Re: [U-Boot] socfpga: mainline cannot boot linux

2014-11-06 Thread Anatolij Gustschin
Hi Dinh, On Thu, 6 Nov 2014 17:03:48 -0600 Dinh Nguyen wrote: > Hi Marek, > > Have you been able to successfully boot Linux using the mainline uboot? > I cannot seem to be able to boot linux on the C5 SocDK. > > It starts to boot linux, but then reboots after a bit back into u-boot. > So I com

Re: [U-Boot] MPC85xx: Uninitialized variables and other problems

2014-11-06 Thread York Sun
On 11/06/2014 03:54 AM, Wolfgang Denk wrote: > Hello, > > cppcheck reports: > > [arch/powerpc/cpu/mpc85xx/cmd_errata.c:62]: (error) Uninitialized variable: > x108 > > [board/freescale/common/cds_pci_ft.c:36]: (error) Possible null pointer > dereference: map > [board/freescale/common/cds_pci_ft

[U-Boot] socfpga: mainline cannot boot linux

2014-11-06 Thread Dinh Nguyen
Hi Marek, Have you been able to successfully boot Linux using the mainline uboot? I cannot seem to be able to boot linux on the C5 SocDK. It starts to boot linux, but then reboots after a bit back into u-boot. So I commented out #define CONFIG_HW_WATCHDOG in include/configs/socfpga_cyclone5.h. Th

Re: [U-Boot] [PATCH 04/19] dm: pmic: add implementation of driver model pmic uclass

2014-11-06 Thread Simon Glass
Hi, On 20 October 2014 09:51, Przemyslaw Marczak wrote: > > Hello, > > ... snip ... >>> >>> >>> Thank you again. >>> I'm going to check the i2c-working tree and maybe rebase the dm-pmic onto >>> it. >>> >>> Is it good idea? >> >> >> Sounds good. Once I get the main DM patches landed (hopefully t

Re: [U-Boot] [PATCH] test: ums: Add sleep before unmount directory

2014-11-06 Thread Lukasz Majewski
On Thu, 06 Nov 2014 10:00:12 -0700 Stephen Warren wrote: > On 11/06/2014 03:23 AM, Lukasz Majewski wrote: > > This change helps to run script on machines with quite long uptime. > > Without this the following error emerges: > > > > File: ./dat_14M.img > > umount: /mnt/tmp-ums-test: device is busy

Re: [U-Boot] [PATCH 3/5] usb: s3c-otg: Split out PHY control

2014-11-06 Thread Lukasz Majewski
On Thu, 6 Nov 2014 21:23:46 +0100 Marek Vasut wrote: > On Thursday, November 06, 2014 at 10:59:17 AM, Lukasz Majewski wrote: > > Hi Marek, > > > > > Split the Samsung specific PHY control into a separate file > > > and compile this into the S3C OTG driver only if used on a > > > Samsung system.

Re: [U-Boot] [PATCH] usb_storage: skip all unknown devices when probing

2014-11-06 Thread Marek Vasut
On Thursday, November 06, 2014 at 01:51:51 PM, Soeren Moch wrote: > Not only skip storage devices with DEV_TYPE_UNKNOWN, but also all devices > which are unknown to u-boot (e.g., are not HARDDISK, TAPE, CDROM, OPDISK). > > This especially avoids long timeouts when probing for external usb > harddi

[U-Boot] [PATCH 09/39] x86: Remove board_init16() call which is not used

2014-11-06 Thread Simon Glass
This allows a board to do very early init, but no boards need to do this. We may as well drop this feature. Signed-off-by: Simon Glass --- arch/x86/cpu/start16.S | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/x86/cpu/start16.S b/arch/x86/cpu/start16.S index 6

[U-Boot] [PATCH 12/39] x86: Tidy up global descriptor table setup

2014-11-06 Thread Simon Glass
This code is a little muddled, so tidy it up. Make sure that we put the GDT in the right place and set it up properly. Signed-off-by: Simon Glass --- arch/x86/cpu/start.S | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/arch/x86/cpu/start.S b/arch/x86/cpu

[U-Boot] [PATCH 21/39] x86: chromebook_link: Implement CAR support (cache as RAM)

2014-11-06 Thread Simon Glass
Add support for CAR so that we have memory to use prior to DRAM init. On link there is a total of 128KB of CAR available, although some is used for the memory reference code. Signed-off-by: Simon Glass --- arch/x86/Kconfig | 16 arch/x86/cpu/ivybridge/car.S | 1

[U-Boot] [PATCH 13/39] x86: Use the standard dram_init() function

2014-11-06 Thread Simon Glass
Instead of having an x86-specific DRAM init function, adjust things so we can use the normal one. Signed-off-by: Simon Glass --- arch/x86/cpu/coreboot/sdram.c | 11 --- arch/x86/include/asm/u-boot-x86.h | 4 ++-- common/board_f.c | 6 +- 3 files changed, 7 ins

Re: [U-Boot] [PATCH 3/5] usb: s3c-otg: Split out PHY control

2014-11-06 Thread Marek Vasut
On Tuesday, November 04, 2014 at 08:34:21 PM, Pavel Machek wrote: > On Tue 2014-11-04 06:07:32, Marek Vasut wrote: > > Split the Samsung specific PHY control into a separate file > > and compile this into the S3C OTG driver only if used on a > > Samsung system. > > > > Signed-off-by: Marek Vasut

Re: [U-Boot] [PATCH 4/5] usb: s3c-otg: Allow custom gusbcfg

2014-11-06 Thread Marek Vasut
On Tuesday, November 04, 2014 at 08:36:57 PM, Pavel Machek wrote: > On Tue 2014-11-04 06:07:33, Marek Vasut wrote: > > Allow passing in a custom configuration of the gusbcfg register > > via platform data. > > > > Signed-off-by: Marek Vasut > > Cc: Chin Liang See > > Cc: Dinh Nguyen > > Cc: Vin

Re: [U-Boot] [PATCH 3/5] usb: s3c-otg: Split out PHY control

2014-11-06 Thread Marek Vasut
On Thursday, November 06, 2014 at 10:59:17 AM, Lukasz Majewski wrote: > Hi Marek, > > > Split the Samsung specific PHY control into a separate file > > and compile this into the S3C OTG driver only if used on a > > Samsung system. > > > > Signed-off-by: Marek Vasut > > Cc: Chin Liang See > > Cc

[U-Boot] [PATCH 05/39] x86: Add ifdtool for working with Intel Flash Descriptor ROM images

2014-11-06 Thread Simon Glass
Newer Intel chips require a Management Engine which requires a particular format for the SPI flash that contains the boot loader. Add a tool that supports creating and modifying these ROM images. This tool is from Chrome OS but has been cleaned up to use U-Boot style and to add comments. A few fea

[U-Boot] [PATCH 06/39] x86: config: Move common x86 configs to a common file

2014-11-06 Thread Simon Glass
Many of the x86 CONFIG options will be common across different boards. Move them to a common file. Signed-off-by: Simon Glass --- include/configs/coreboot.h | 289 ++- include/configs/x86-common.h | 272 2 files

[U-Boot] [PATCH 35/39] x86: ivybridge: Add support for early GPIO init

2014-11-06 Thread Simon Glass
When not relying on Coreboot for GPIO init the GPIOs must be set up correctly. This is currently done statically through a rather ugly method. As the GPIOs are figured out they can be moved to the device tree and set up as needed rather than all at the start. In this implementation, board files sh

[U-Boot] [PATCH 34/39] x86: ivybridge: Add early init for PCH devices

2014-11-06 Thread Simon Glass
Many PCH devices are hard-coded to a particular PCI address. Set these up early in case they are needed. Signed-off-by: Simon Glass --- arch/x86/cpu/ivybridge/Makefile | 1 + arch/x86/cpu/ivybridge/cpu.c | 142 + arch/x86/cpu/ivybridg

[U-Boot] [PATCH 38/39] x86: ivybridge: Add LAPIC support

2014-11-06 Thread Simon Glass
The local advanced programmable interrupt controller is not used much in U-Boot but we do need to set it up. Add basic support for this, which will be extended as needed. Signed-off-by: Simon Glass --- arch/x86/cpu/ivybridge/cpu.c | 3 ++ arch/x86/include/asm/lapic.h | 59 +++

[U-Boot] [PATCH 39/39] x86: ivybridge: Implement SDRAM init

2014-11-06 Thread Simon Glass
Implement SDRAM init using the Memory Reference Code (mrc.bin) provided in the board directory and the SDRAM SPD information in the device tree. This also needs the Intel Management Engine (me.bin) to work. Binary blobs everywhere: so far we have MRC, ME and microcode. SDRAM init works by setting

[U-Boot] [PATCH 31/39] x86: ivybridge: Check BIST value on boot

2014-11-06 Thread Simon Glass
The built-in self test value should be checked before we continue booting. Refuse to continue if there is something wrong. Signed-off-by: Simon Glass --- arch/x86/cpu/ivybridge/cpu.c | 16 1 file changed, 16 insertions(+) diff --git a/arch/x86/cpu/ivybridge/cpu.c b/arch/x86/cp

[U-Boot] [PATCH 29/39] x86: Add msr read/write functions that use a structure

2014-11-06 Thread Simon Glass
It is convenient to be able to adjust MSRs with a structure that splits the two 32-bit halves into separate fields, as they are often dealt with separately. Add a few functions to support this. Signed-off-by: Simon Glass --- arch/x86/include/asm/msr.h | 19 +++ 1 file changed, 1

[U-Boot] [PATCH 32/39] x86: ivybridge: Perform Intel microcode update on boot

2014-11-06 Thread Simon Glass
Microcode updates are stored in the device tree. Work through these and apply any that are needed. Signed-off-by: Simon Glass --- arch/x86/cpu/ivybridge/Makefile | 1 + arch/x86/cpu/ivybridge/cpu.c| 5 + arch/x86/cpu/ivybridge/microcode_intel.c| 1

[U-Boot] [PATCH 37/39] x86: Make show_boot_progress() common

2014-11-06 Thread Simon Glass
This function can probably be used on all x86 boards, so move it into the common file. Signed-off-by: Simon Glass --- arch/x86/cpu/coreboot/coreboot.c | 24 arch/x86/cpu/cpu.c | 24 2 files changed, 24 insertions(+), 24 deletions(-

[U-Boot] [PATCH 28/39] x86: Add clr/setbits functions

2014-11-06 Thread Simon Glass
These are available on other architectures. Make them available on x86 also. Signed-off-by: Simon Glass --- arch/x86/include/asm/io.h | 49 +++ 1 file changed, 49 insertions(+) diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index

[U-Boot] [PATCH 36/39] x86: chromebook_link: Enable GPIO support

2014-11-06 Thread Simon Glass
Enable GPIO support and provide the required GPIO setup information to the driver. Signed-off-by: Simon Glass --- arch/x86/dts/link.dts | 3 + board/google/chromebook_link/link.c | 107 include/configs/chromebook_link.h | 4 +- 3 files ch

[U-Boot] [PATCH 17/39] x86: Add chromebook_link board

2014-11-06 Thread Simon Glass
This board is a 'bare' version of the existing 'link 'board. It does not require coreboot to run, but is intended to start directly from the reset vector. This initial commit has place holders for a wide range of features. These will be added in follow-on patches and series. So far it cannot be bo

[U-Boot] [PATCH 19/39] x86: Build a .rom file which can be flashed to an x86 machine

2014-11-06 Thread Simon Glass
On x86 machines U-Boot needs to be added to a large ROM image which is then flashed onto the target board. The ROM has a particular format so it makes sense for U-Boot to build this image automatically. Unfortunately it relies on binary blobs so we cannot require this for the default build as yet.

[U-Boot] [PATCH 33/39] RFC: x86: dts: Add microcode updates for ivybridge CPU

2014-11-06 Thread Simon Glass
Add two microcode updates that are provided for this CPU. The updates have been converted to a device tree form. (The license needs to be converted to SPDX) Signed-off-by: Simon Glass --- arch/x86/dts/link.dts | 10 + arch/x86/dts/m12206a7_0028.dtsi | 622 +++

[U-Boot] [PATCH 20/39] x86: Emit post codes in startup code

2014-11-06 Thread Simon Glass
On x86 it is common to use 'post codes' which are 8-bit hex values emitted from the code and visible to the user. Traditionally two 7-segment displays were made available on the motherboard to show the last post code that was emitted. This allows diagnosis of a boot problem since it is possible to

[U-Boot] [PATCH 24/39] x86: ivybridge: Enable PCI in early init

2014-11-06 Thread Simon Glass
Enable PCI so we can access devices that need to be set up before relocation. Signed-off-by: Simon Glass --- arch/x86/cpu/ivybridge/cpu.c | 5 + arch/x86/cpu/pci.c | 31 ++- arch/x86/include/asm/global_data.h | 1 + include/configs/chromeb

[U-Boot] [PATCH 14/39] x86: Use the standard arch_cpu_init() function

2014-11-06 Thread Simon Glass
Instead of an x86-specific cpu_init_f() function, use the normal U-Boot one for this purpose. Also remove a useless/misleading comment. Signed-off-by: Simon Glass --- arch/x86/cpu/coreboot/coreboot.c | 5 + arch/x86/cpu/cpu.c| 1 - arch/x86/include/asm/u-boot-x86.h | 1 + c

[U-Boot] [PATCH 16/39] x86: Fix up some missing prototypes

2014-11-06 Thread Simon Glass
Some functions are missing prototypes. Fix those that are specific to x86. Signed-off-by: Simon Glass --- arch/x86/cpu/coreboot/coreboot.c | 4 +--- arch/x86/cpu/coreboot/sdram.c | 4 ++-- arch/x86/cpu/cpu.c| 3 +-- arch/x86/cpu/interrupts.c | 2 +- arch/x86/include

[U-Boot] [PATCH 26/39] x86: ivybridge: Add early LPC init so that serial works

2014-11-06 Thread Simon Glass
The PCH (Peripheral Controller Hub) includes an LPC (Low Pin Count) device which provides a serial port. This is accessible on Chromebooks, so enable it early in the boot process. Signed-off-by: Simon Glass --- arch/x86/cpu/ivybridge/Makefile | 1 + arch/x86/cpu/ivybridge/cpu.c

[U-Boot] [PATCH 10/39] x86: Remove unused early_board_init() call

2014-11-06 Thread Simon Glass
This allows early board init before board_init_f() is called. We already have a standard U-Boot board call, and no boards use this, so drop it. Signed-off-by: Simon Glass --- arch/x86/cpu/start.S | 5 - board/chromebook-x86/coreboot/Makefile | 2 +- board

[U-Boot] [PATCH 30/39] x86: ivybridge: Perform initial CPU setup

2014-11-06 Thread Simon Glass
Set up the flex ratio (controls speed versus heat output) and a few other very early things. Signed-off-by: Simon Glass --- arch/x86/cpu/ivybridge/cpu.c | 130 ++ arch/x86/include/asm/arch-ivybridge/model_206ax.h | 82 ++ arch/x86/include/as

[U-Boot] [PATCH 04/39] dm: gpio: Add a function to read an ID from a list of GPIOs

2014-11-06 Thread Simon Glass
For board IDs a common approach is to set aside several GPIOs for use in determining the board ID. This can provide information about board features and the revision. Add a function that turns a list of GPIOs into an integer by assigning each GPIO to a single bit. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 27/39] x86: Tidy up coreboot header usage

2014-11-06 Thread Simon Glass
There is no need to explicitly write 'arch-coreboot' when including headers, as when the arch directory points to coreboot the correct files will be used. Signed-off-by: Simon Glass --- arch/x86/cpu/coreboot/coreboot.c | 4 ++-- arch/x86/cpu/coreboot/ipchecksum.c | 2 +- arch/x86/cpu/coreboot

[U-Boot] [PATCH 08/39] x86: Remove REALMODE_BASE which is no longer used

2014-11-06 Thread Simon Glass
This was missed when the real mode support was dropped. Remove it. Signed-off-by: Simon Glass --- arch/x86/config.mk | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/config.mk b/arch/x86/config.mk index 3e7fedb..bb2da46 100644 --- a/arch/x86/config.mk +++ b/arch/x86/config.mk @@ -15,

[U-Boot] [PATCH 15/39] x86: Remove unnecessary find_fdt() function

2014-11-06 Thread Simon Glass
This is no-longer needed so drop it. Signed-off-by: Simon Glass --- arch/x86/include/asm/init_helpers.h | 1 - common/board_f.c| 5 - 2 files changed, 6 deletions(-) diff --git a/arch/x86/include/asm/init_helpers.h b/arch/x86/include/asm/init_helpers.h index b07887e..f

[U-Boot] [PATCH 02/39] fdt: Add a function to decode a variable-sized u32 array

2014-11-06 Thread Simon Glass
Sometimes an array can be of variable size up to a maximum. Add a helper function to decode this. Signed-off-by: Simon Glass --- include/fdtdec.h | 16 lib/fdtdec.c | 20 2 files changed, 36 insertions(+) diff --git a/include/fdtdec.h b/include/fdtdec.

[U-Boot] [PATCH 11/39] x86: Invalidate TLB as early as possible

2014-11-06 Thread Simon Glass
We should invalidate the TLB right at the start to ensure that we don't get false address translations even though paging is disabled. Signed-off-by: Simon Glass --- arch/x86/cpu/start16.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/cpu/start16.S b/arch/x86/cpu/start16.S ind

[U-Boot] [PATCH 18/39] x86: Save the BIST value on reset

2014-11-06 Thread Simon Glass
The built in self test value is available in register eax on start-up. Save it so that it can be accessed later. Unfortunately we must wait until the global_data is available before we can do this, so there is a little bit of shuffling to keep it around. Signed-off-by: Simon Glass --- arch/x86/

[U-Boot] [PATCH 25/39] x86: pci: Allow configuration before relocation

2014-11-06 Thread Simon Glass
Add simple PCI access routines for x86 which permit use before relocation. The normal PCI stack is still used, but for pre-relocation use there can only ever be a single hose. After relocation, fall back to the normal access, although even then on x86 machines there is normally only a single PCI bu

[U-Boot] [PATCH 23/39] x86: Refactor PCI to permit alternate init

2014-11-06 Thread Simon Glass
We want access PCI earlier in the init sequence, so refactor the code so that it does not require use of a BSS variable to work. This will allow us to use early malloc() to store information about a PCI hose. Signed-off-by: Simon Glass --- arch/x86/cpu/pci.c| 26

[U-Boot] [PATCH 01/39] Move early malloc() to before arch_cpu_init()

2014-11-06 Thread Simon Glass
For some CPUs, having malloc() available very early is useful. There is no reason to delay this since early malloc is allocated before board_init_f() is called. Move early malloc() init nearer to the start of the init sequence. Signed-off-by: Simon Glass --- common/board_f.c | 2 +- 1 file cha

[U-Boot] [PATCH 07/39] x86: Add processor functions for cpuid and stack pointer

2014-11-06 Thread Simon Glass
Add some functions to access cpuid from C in various useful ways. Also add a function to get the stack pointer and another to halt the CPU. Signed-off-by: Simon Glass --- arch/x86/include/asm/processor.h | 121 +++ 1 file changed, 121 insertions(+) diff --gi

[U-Boot] [PATCH 03/39] dm: serial: Move current serial port pointer to global_data

2014-11-06 Thread Simon Glass
In general we can't store things in the data section until we have inited SDRAM. Some platforms allow this (e.g. those with SPL) but some don't. Move the pointer to global_data so that it will work on all platforms. Without this fix the serial port will not work prior to relocation with driver mod

[U-Boot] [PATCH 22/39] x86: Move Coreboot PCI into common cpu area

2014-11-06 Thread Simon Glass
This code is not really Coreboot-specific, so move it into the common area and rename it. Signed-off-by: Simon Glass --- arch/x86/cpu/Makefile | 1 + arch/x86/cpu/coreboot/Makefile| 1 - arch/x86/cpu/{coreboot => }/pci.c | 24 +--- 3 files changed, 14 inser

[U-Boot] [PATCH 0/39] x86: Add support for running on bare hardware

2014-11-06 Thread Simon Glass
At present U-Boot's x86 support requires Coreboot to run first, starting up the CPU and then setting up SDRAM and video among other tasks. U-Boot then runs as a payload. Notably U-Boot does not handle the ACPI fun on x86 where the kernel can call back into the 'BIOS' to perform certain tasks. This

Re: [U-Boot] [PATCH] usb: ehci: fix Interrupt on Doorbell flag of USBCMD

2014-11-06 Thread Marek Vasut
On Wednesday, November 05, 2014 at 03:11:10 PM, Masahiro Yamada wrote: > CMD_IAAD (Interrupt on Async Advance Doorbell) is bit 6, not bit 5. > While we are here, sort the flags. > > Signed-off-by: Masahiro Yamada Nice catch, applied, thanks! Best regards, Marek Vasut ___

Re: [U-Boot] [PATCH] usb: rmobile: Use ARRAY_SIZE(usb_base_address) instead of CONFIG_USB_MAX_CONTROLLER_COUNT

2014-11-06 Thread Marek Vasut
On Tuesday, November 04, 2014 at 08:17:21 AM, Nobuhiro Iwamatsu wrote: > Signed-off-by: Nobuhiro Iwamatsu > CC: Marek Vasut Applied, thanks! Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u

Re: [U-Boot] [PATCH v2 1/3] usb:ehci-mx6 add board_ehci_usb_mode function

2014-11-06 Thread Marek Vasut
On Wednesday, November 05, 2014 at 10:18:25 AM, Peng Fan wrote: > 在 11/5/2014 5:03 PM, Marek Vasut 写道: > > On Wednesday, November 05, 2014 at 07:00:32 AM, Peng Fan wrote: > >> 在 11/5/2014 1:33 AM, Marek Vasut 写道: > >>> On Tuesday, November 04, 2014 at 02:29:56 PM, Peng Fan wrote: > Hi Marek, >

Re: [U-Boot] porting u-boot, MMU question

2014-11-06 Thread DaveKucharczyk
Thank you for the responses guys, much appreciated. We will look into using the latest release. Another question... Can we still use setenv() in the board file? Before, we setup environment variables in board_late_intit() with setenv, but it doesn't seem to work in new u-boot I also tried it in

Re: [U-Boot] [PATCH 6/6] hush: add some tests for quoting

2014-11-06 Thread Simon Glass
Hi, On 5 November 2014 13:11, Rabin Vincent wrote: > On Sat, Nov 01, 2014 at 09:12:37AM -0600, Simon Glass wrote: >> On 29 October 2014 16:21, Rabin Vincent wrote: >> > + assert(run_command("setenv ut_var '\"'; setenv ut_var2 >> > \"${ut_var}\"", 0) == 0); >> > + assert(!strcmp(gete

Re: [U-Boot] [net/eth.c:64]: (error) Uninitialized variable: skip_state

2014-11-06 Thread Tom Rini
On Thu, Nov 06, 2014 at 07:12:55PM +0100, Wolfgang Denk wrote: > Dear Tom Rini, > > In message <20141106164628.GR24724@bill-the-cat> you wrote: > > > > > [net/eth.c:64]: (error) Uninitialized variable: skip_state > > > > Dense code, like cmd_ini.c my cppcheck is OK and looking at the code > > ma

Re: [U-Boot] [common/cmd_ini.c:137]: (error) Uninitialized variable: line

2014-11-06 Thread Tom Rini
On Thu, Nov 06, 2014 at 07:10:54PM +0100, Wolfgang Denk wrote: > Dear Tom, > > In message <20141106161600.GQ24724@bill-the-cat> you wrote: > > > > trini@bill-the-cat:~/work/u-boot/u-boot-ti (master)$ cppcheck --version > > Cppcheck 1.52 > > -> cppcheck --version > Cppcheck 1.63 Ah, OK. > > tri

[U-Boot] [PATCH v3] generic-board: make compile-time noise for non-generic boards

2014-11-06 Thread Masahiro Yamada
Commit 0f605c1501f6 (Start the deprecation process for generic board) added a run-time warning message. Let's be noisier for non-generic boards to inform the dead line of the conversion. This commit intentionally outputs a warning message to stdout. We still have many unconverted boards. If we p

Re: [U-Boot] [PATCH v1 0/6] Update gdsys board support

2014-11-06 Thread York Sun
On 11/05/2014 10:29 PM, Dirk Eibach wrote: > Hi Stefan, > >>> Is Kim still active? Last message from him on the list I found was from >>> may. >> >> >> Not sure. Lets wait and see if Kim responds... > > looks not so good. > I put Scott and York from Freescale to CC. Maybe they can inquire at > F

Re: [U-Boot] [net/eth.c:64]: (error) Uninitialized variable: skip_state

2014-11-06 Thread Wolfgang Denk
Dear Tom Rini, In message <20141106164628.GR24724@bill-the-cat> you wrote: > > > [net/eth.c:64]: (error) Uninitialized variable: skip_state > > Dense code, like cmd_ini.c my cppcheck is OK and looking at the code > manually I think it's fine too: > return ((skip_state = getenv(enetvar))

Re: [U-Boot] [common/cmd_ini.c:137]: (error) Uninitialized variable: line

2014-11-06 Thread Wolfgang Denk
Dear Tom, In message <20141106161600.GQ24724@bill-the-cat> you wrote: > > trini@bill-the-cat:~/work/u-boot/u-boot-ti (master)$ cppcheck --version > Cppcheck 1.52 -> cppcheck --version Cppcheck 1.63 > trini@bill-the-cat:~/work/u-boot/u-boot-ti (master)$ cppcheck --force > --inline-suppr common/

Re: [U-Boot] CONFIG_LCD_BMP_RLE8 and MCC200 dead code?

2014-11-06 Thread Simon Glass
Hi Nikita, On 6 November 2014 05:23, Nikita Kiryanov wrote: > > Hi all, > > I've been trying to do some cleanup in common/lcd.c, and noticed some > unused code: > > One is the CONFIG_LCD_BMP_REL8 stuff. This code was added 2 years ago > in patch 45d7f52511f43b71b623a502fdf31feb905f70a1, and so fa

  1   2   3   >