Re: [U-Boot] [PATCH 3/3] sunxi: Enable both ehci and otg in host mode on various boards

2015-06-22 Thread Hans de Goede
Hi, On 21-06-15 10:01, Ian Campbell wrote: On Sat, 2015-06-20 at 17:35 +0200, Hans de Goede wrote: Now that the device-model port of the musb mode makes it possible, enable both the ehci and oth in host mode on boards where the otg is wired up in otg? Replaced with musb in my personal

Re: [U-Boot] [PATCH 1/3] sunxi: musb: Improve output during probing

2015-06-22 Thread Ian Campbell
On Mon, 2015-06-22 at 17:39 +0200, Hans de Goede wrote: How about the following: Subject: [PATCH 1/3] sunxi: musb: Improve output during probing When we return an error the usb core will log a message, so in this case do not print anything. Signed-off-by: Hans de Goede

Re: [U-Boot] [PATCH 1/3] sunxi: musb: Improve output during probing

2015-06-22 Thread Hans de Goede
Hi, On 21-06-15 10:00, Ian Campbell wrote: On Sat, 2015-06-20 at 17:35 +0200, Hans de Goede wrote: When we return an error the usb core will log a message, so in this case do not print a newline, instead print : after our identifier as a seperator between our identifier and the error message

[U-Boot] net.c: question regarding commit: fd3056337e6fcc140f400e11edd33f6f1cb37de1

2015-06-22 Thread Hannes Schmelzer
Hi joe, you did introduce callbacks on setting up ip,dns, ... in net.c Why it did become necessary to do following ? if (flags H_PROGRAMMATIC) return 0; I have actually trouble with this, because my code in board/BuR/kwb/board.c doesn't work anymore as expected.

[U-Boot] [PATCH 3/7] common: Add the CMD_ENV_EXISTS config to Kconfig

2015-06-22 Thread Joe Hershberger
This command needs to exist in the Kconfig so that it can be moved from the config_cmd_default.h. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/common/Kconfig b/common/Kconfig index 0ccdf62..cb14592 100644 ---

[U-Boot] [PATCH 0/7] Move include/config_cmd_default.h into Kconfig / remove arch defaults

2015-06-22 Thread Joe Hershberger
This series addresses a few build failures and minor tweaks needed to move the default commands to Kconfig. It then moves defaults out of arch Kconfig files and updates the defaults in common/Kconfig to enable the default commands from include/config_cmd_default.h. This was requested by Tom here:

[U-Boot] [PATCH 2/7] common: Fix comment for saveenv in Kconfig

2015-06-22 Thread Joe Hershberger
The help for this was simply copied from another command. Update it to reflect the command. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- common/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/Kconfig b/common/Kconfig index f6478fa..0ccdf62

[U-Boot] [PATCH 5/7] a3m071: Add needed dependency on LIB_RAND

2015-06-22 Thread Joe Hershberger
Boards using link-local need lib rand. When link-local is moved to Kconfig, this dependency will be described there. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- configs/a3m071_defconfig | 3 ++- configs/a4m2k_defconfig | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)

[U-Boot] [PATCH 4/7] arm: Make new baltos board not break on savedefconfig

2015-06-22 Thread Joe Hershberger
This config defined a CONS_INDEX as a config but did not define it in any Kconfig, so savedefconfig will delete that entry. Use CONFIG_SYS_EXTRA_OPTIONS for now until that is added to Kconfig. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- configs/am335x_baltos_defconfig | 3 +-- 1

[U-Boot] [PATCH 1/7] mtd: spi: Add the SPI_FLASH config to Kconfig

2015-06-22 Thread Joe Hershberger
This config needs to be available in the Kconfig to allow it to be removed from arch defaults. Signed-off-by: Joe Hershberger joe.hershber...@ni.com --- drivers/mtd/spi/Kconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index

Re: [U-Boot] [PATCH] sunxi: Select CONFIG_CMD_NET and CONFIG_CMD_SETEXPR by default

2015-06-22 Thread Joe Hershberger
Hi Tom, On Fri, Jun 12, 2015 at 7:08 AM, Tom Rini tr...@konsulko.com wrote: On Thu, Jun 11, 2015 at 11:12:43AM -0500, Joe Hershberger wrote: Hi Tom, On Thu, Jun 11, 2015 at 10:12 AM, Tom Rini tr...@konsulko.com wrote: On Thu, Jun 11, 2015 at 09:14:33AM -0500, Joe Hershberger wrote: Hi

Re: [U-Boot] [PATCH RESEND 0/7] spi: cadence_qspi: optimize fix indirect rd-writes

2015-06-22 Thread Vikas MANOCHA
Thanks Stefan, -Original Message- From: Stefan Roese [mailto:s...@denx.de] Sent: Monday, June 22, 2015 1:35 AM To: Vikas MANOCHA Cc: u-boot@lists.denx.de; grmo...@opensource.altera.com; dingu...@opensource.altera.com; jt...@openedev.com Subject: Re: [PATCH RESEND 0/7] spi:

Re: [U-Boot] net.c: question regarding commit: fd3056337e6fcc140f400e11edd33f6f1cb37de1

2015-06-22 Thread Joe Hershberger
Hi Hannes, On Mon, Jun 22, 2015 at 7:23 AM, Hannes Schmelzer han...@schmelzer.or.at wrote: Hi joe, you did introduce callbacks on setting up ip,dns, ... in net.c Why it did become necessary to do following ? if (flags H_PROGRAMMATIC) return 0; Because the

[U-Boot] [PATCH 1/2] Allow CONFIG_REGEX to be disabled when CONFIG_NET

2015-06-22 Thread Joe Hershberger
Instead of selecting REGEX when NET is enabled, make it the default, but allow boards that are tiny to disable it and lose functionality on all but the first Ethernet adapter. cm-bf548, bf538f-ezkit, and bf533-stamp need this. None appear to have more than one Ethernet interface. Signed-off-by:

[U-Boot] [PATCH 2/2] blackfin: Fix build regression due to image size

2015-06-22 Thread Joe Hershberger
bf533-stamp, bf538f-ezkit, and cm-bf548 are very space limited. This was introduced by: 6e0d26c0502e (net: Handle ethaddr changes as an env callback) by enabling CONFIG_REGEX, which is too big for these boards. This patch disables CONFIG_REGEX at the expense of working with more than the first

Re: [U-Boot] [PATCH] pci: Configure expansion ROM during auto config process

2015-06-22 Thread Bin Meng
Hi Tom, On Mon, Jun 22, 2015 at 2:16 AM, Tom Rini tr...@konsulko.com wrote: On Sun, Jun 21, 2015 at 03:21:49PM +0800, Bin Meng wrote: +Tom since I see this patch was assigned to Tom in the patchwork. Hi Matt, On Sat, Jun 20, 2015 at 1:40 AM, Matt Porter mpor...@konsulko.com wrote: On Fri,

Re: [U-Boot] [PATCH v6 1/4] mtd, spi: add MTD layer driver

2015-06-22 Thread Jagan Teki
On 16 June 2015 at 15:36, Daniel Schwierzeck daniel.schwierz...@gmail.com wrote: 2015-06-16 11:36 GMT+02:00 Jagan Teki jt...@openedev.com: On 16 June 2015 at 14:48, Heiko Schocher denx h...@denx.de wrote: Hello Jagan, Am 16.06.2015 um 10:52 schrieb Jagan Teki: Hi Heiko, On 16 June 2015

Re: [U-Boot] [PATCH v2] spi: cf_qspi: fix clamp macro type check compilation warnings

2015-06-22 Thread Jagan Teki
On 22 June 2015 at 03:10, Angelo Dureghello ang...@sysam.it wrote: Fix compilation warnings for redefined 'clamp' macro and non-uniform clamp macro types. Signed-off-by: Angelo Dureghello ang...@sysam.it --- drivers/spi/cf_qspi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)

Re: [U-Boot] [PATCHv4 1/3] driver/ddr/altera: Add DDR driver for Altera's SDRAM controller

2015-06-22 Thread Pavel Machek
Hi! Comment what kind of errata this is working around? I'll have to ask around. It is to workaround the computational of SDRAM rows. The info is then used to calculate the SDRAM size. By doing this, we can remove from hardcoding the SDRAM size into the code. More info at

Re: [U-Boot] [PATCH v6 1/4] mtd, spi: add MTD layer driver

2015-06-22 Thread Daniel Schwierzeck
2015-06-22 8:43 GMT+02:00 Jagan Teki jt...@openedev.com: On 16 June 2015 at 15:36, Daniel Schwierzeck daniel.schwierz...@gmail.com wrote: 2015-06-16 11:36 GMT+02:00 Jagan Teki jt...@openedev.com: On 16 June 2015 at 14:48, Heiko Schocher denx h...@denx.de wrote: Hello Jagan, Am 16.06.2015

Re: [U-Boot] [Banana Pi] DHCP at boot

2015-06-22 Thread Wolfgang Denk
Dear Paul, In message 1434889782.11829.5.ca...@u129.fr you wrote: Now I only have : IP-Config: eth0 hardware address 02:c4:06:82:13:47 mtu 1500 DHCP ... IP-Config: no response after 2 secs - giving up IP-Config: eth0 hardware address 02:c4:06:82:13:47 mtu 1500 DHCP IP-Config: no

Re: [U-Boot] [PATCH v2] spi: cf_qspi: fix clamp macro type check compilation warnings

2015-06-22 Thread Angelo Dureghello
On 22/06/2015 08:44, Jagan Teki wrote: On 22 June 2015 at 03:10, Angelo Dureghello ang...@sysam.it wrote: Fix compilation warnings for redefined 'clamp' macro and non-uniform clamp macro types. Signed-off-by: Angelo Dureghello ang...@sysam.it --- drivers/spi/cf_qspi.c | 3 +-- 1 file

[U-Boot] [PATCH v2 1/1] ARM: DRA72x: fix io delay calibration for ethernet

2015-06-22 Thread Mugunthan V N
we currently use in-development IODelay values for DRA72x which are proposed in the data sheet, however, DRA72x EVM uses DP83865 ethernet Phy over RGMII. The PHY characteristics and routing choices made on the EVM, make the current iodelay values fail ethernet communication. Instead, we need to

Re: [U-Boot] [PATCH 0/8] usb:xhci:dwc3: Add dwc3 drv code

2015-06-22 Thread Marek Vasut
On Monday, June 22, 2015 at 11:13:59 AM, Ramneek Mehresh wrote: Hi Marek, Hello, Below patches are applied on usb-next branch since 7-Jun-2015. When are you planning for these patches to be in u-boot main? We have to send some LS2085A based patches in upstream(which are all dependent on

Re: [U-Boot] [PATCH RESEND 0/7] spi: cadence_qspi: optimize fix indirect rd-writes

2015-06-22 Thread Stefan Roese
Hi Vikas, On 19.06.2015 23:38, Vikas MANOCHA wrote: - git bisect or cherry-pick to find out which patch is breaking the read functionality. This one is the first introducing this breakage: spi: cadence_qspi: fix base trigger address transfer start address Ok, can you confirm applying

[U-Boot] [PATCH] cmd_mp: Add support for showing all CPU status by one command

2015-06-22 Thread Michal Simek
Use one command for showing overall CPU status than several without knowing how many cpus is available in the system. Signed-off-by: Michal Simek michal.si...@xilinx.com --- common/cmd_mp.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/common/cmd_mp.c

Re: [U-Boot] [PATCHv4 1/3] driver/ddr/altera: Add DDR driver for Altera's SDRAM controller

2015-06-22 Thread Chin Liang See
Hi, On Tue, 2015-06-09 at 10:51 -0500, Dinh Nguyen wrote: On 6/9/15 6:55 AM, Pavel Machek wrote: Hi! +struct sdram_prot_rule { + uint64_tsdram_start; /* SDRAM start address */ + uint64_tsdram_end; /* SDRAM end address */ + uint32_trule; /* SDRAM

[U-Boot] [PATCH v7 1/4] mtd, spi: Add MTD layer driver

2015-06-22 Thread Jagan Teki
From: Daniel Schwierzeck daniel.schwierz...@gmail.com Add MTD layer driver for spi, original patch from: http://git.denx.de/?p=u-boot/u-boot-mips.git;a=commitdiff;h=bb246819cdc90493dd7089eaa51b9e639765cced Changes from Heiko Schocher against this patch: - Remove compile error if not defining

[U-Boot] [PATCH v7 2/4] mtd, nand: Move common functions from cmd_nand.c to common place

2015-06-22 Thread Jagan Teki
From: Heiko Schocher h...@denx.de Move common functions from cmd_nand.c (for calculating offset and size from cmdline paramter) to common place, so they could used from other commands which use mtd partitions. For onenand the arg_off_size() is left in common/cmd_onenand.c. It should use now the

[U-Boot] [PATCH v7 4/4] mtd, spi: Check if flash pointer is used

2015-06-22 Thread Jagan Teki
From: Heiko Schocher h...@denx.de If flash pointer is used free it, before probing a new flash and storing it in flash. Signed-off-by: Heiko Schocher h...@denx.de Tested-by: Jagannadh Teki jt...@openedev.com Reviewed-by: Jagannadh Teki jt...@openedev.com --- Changes in v7: none Changes in v6: -

[U-Boot] [PATCH v7 0/4] sf: Add MTD layer support

2015-06-22 Thread Jagan Teki
Just resend the whole series with below changes, Changes for v7: - Add more notes on commit message - Update the info for CONFIG_SPI_FLASH_MTD in README - Remove ^ character in sf erase line sf help text - Update starting character in commit message heads with

Re: [U-Boot] [PATCH v6 1/4] mtd, spi: add MTD layer driver

2015-06-22 Thread Jagan Teki
On 22 June 2015 at 17:23, Daniel Schwierzeck daniel.schwierz...@gmail.com wrote: 2015-06-22 8:43 GMT+02:00 Jagan Teki jt...@openedev.com: On 16 June 2015 at 15:36, Daniel Schwierzeck daniel.schwierz...@gmail.com wrote: 2015-06-16 11:36 GMT+02:00 Jagan Teki jt...@openedev.com: On 16 June 2015

[U-Boot] [PATCH v7 3/4] spi, sf: Use offset and size in sf cmd from mtdpartition

2015-06-22 Thread Jagan Teki
From: Heiko Schocher h...@denx.de With this patch, it is possible to get the offset and size information from the mtdpartiton setting in mtdparts, similiar to the nand commandos. = sf sf - SPI flash sub-system Usage: sf probe [[bus:]cs] [hz] [mode] - init flash device on given SPI bus

[U-Boot] Fwd: [PATCH v7 0/4] sf: Add MTD layer support

2015-06-22 Thread Jagan Teki
+ Heiko + Daniel -- Forwarded message -- From: Jagan Teki jt...@openedev.com Date: 23 June 2015 at 01:30 Subject: [U-Boot] [PATCH v7 0/4] sf: Add MTD layer support To: u-boot@lists.denx.de Cc: Jagan Teki jt...@openedev.com Just resend the whole series with below changes,

[U-Boot] [PATCH 4/4] include: usb: Map USB controller base addresses for LS2085A

2015-06-22 Thread Nikhil Badola
Map USB XHCI controller base addresses for LS2085A SOC Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- include/linux/usb/xhci-fsl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/usb/xhci-fsl.h b/include/linux/usb/xhci-fsl.h index b07bf19..602a413 100644 ---

Re: [U-Boot] SDRAM

2015-06-22 Thread Naitik Amin
Hi Andreas, I thought of it too. I thought it was dtb all along. But all changed was below line, without even touching the dtb. I just replaced the uboot and I started to see 1G SDRAM. Thats why I got confused. From: Andreas Färber afaer...@suse.de To: Naitik Amin

[U-Boot] [PATCH v2 2/2] pci: Disable expansion ROM address decoding when signature check fails

2015-06-22 Thread Bin Meng
We should not leave the expansion ROM address window open when there is not a valid ROM. Suggested-by: Matt Porter mpor...@konsulko.com Signed-off-by: Bin Meng bmeng...@gmail.com --- I did not update pci_rom_probe() to handle the header type1 ROM address, as I think pci_rom_probe() is a static

[U-Boot] [PATCH v2 1/2] pci: Configure expansion ROM during auto config process

2015-06-22 Thread Bin Meng
Currently PCI expansion ROM address is assigned by a call to pciauto_setup_rom() outside of the pci auto config process. This does not work when expansion ROM is on a device behind PCI bridge where bridge's memory limit register was already programmed to a value that does not cover the newly

Re: [U-Boot] [PATCH v7 0/4] sf: Add MTD layer support

2015-06-22 Thread Heiko Schocher denx
Hello Jagan, Am 22.06.2015 um 22:00 schrieb Jagan Teki: Just resend the whole series with below changes, Changes for v7: - Add more notes on commit message - Update the info for CONFIG_SPI_FLASH_MTD in README - Remove ^ character in sf erase line sf help text -

[U-Boot] [RESPIN PATCH v2 14/15] x86: crownbay: Enable writing MP table

2015-06-22 Thread Bin Meng
Enable writing MP table for Intel Crown Bay board. Signed-off-by: Bin Meng bmeng...@gmail.com Acked-by: Simon Glass s...@chromium.org --- Changes in v2: None configs/crownbay_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/crownbay_defconfig b/configs/crownbay_defconfig

[U-Boot] [RESPIN PATCH v2 15/15] x86: queensbay: Change PCIe root ports' interrupt routing

2015-06-22 Thread Bin Meng
So far interrupt routing works pretty well for any on-chip devices on Intel Crown Bay. When inserting any PCIe card to any PCIe slot, Linux kernel is smart enough to do interrupt swizzling and figure out device's irq using its parent bridge's interrupt routing info all the way up to its root port.

[U-Boot] [RESPIN PATCH v2 11/15] x86: Add MultiProcessor (MP) table APIs

2015-06-22 Thread Bin Meng
The MP table provides a way for the operating system to support for symmetric multiprocessing as well as symmetric I/O interrupt handling with the local APIC and I/O APIC. We provide a bunch of APIs for U-Boot to write the floating table, configuration table header as well as base and extended

[U-Boot] [RESPIN PATCH v2 12/15] x86: Generate a valid MultiProcessor (MP) table

2015-06-22 Thread Bin Meng
Implement write_mp_table() to create a minimal working MP table. This includes an MP floating table, a configuration table header and all of the 5 base configuration table entries. The I/O interrupt assignment table entry is created based on the same information used in the creation of PIRQ

[U-Boot] [RESPIN PATCH v2 13/15] x86: Update README.x86 for SMP support

2015-06-22 Thread Bin Meng
Document U-Boot multi-processor support as well as configuration tables like SFI and MP tables for SMP OS kernel. Signed-off-by: Bin Meng bmeng...@gmail.com --- Changes in v2: - New patch to update README.x86 for SMP support doc/README.x86 | 13 + 1 file changed, 13 insertions(+)

[U-Boot] [PATCH 2/4] drivers: usb: fsl: Implement Erratum A-009116 for XHCI controller

2015-06-22 Thread Nikhil Badola
This adjusts (micro)frame length to appropriate value thus avoiding USB devices to time out over a longer run Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- drivers/usb/host/xhci-dwc3.c | 6 ++ drivers/usb/host/xhci-fsl.c | 3 +++ include/linux/usb/dwc3.h | 22

[U-Boot] [PATCH 1/4] drivers: usb: fsl: Remove warnings for 64-bit architectures

2015-06-22 Thread Nikhil Badola
Replace uint32_t with uintptr_t to remove compilation warnings for 64-bit architectures. Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- Depends on commit ec3faf7e2c0671b906018b3c481be2a490bf2bb3 in u-boot-usb/next drivers/usb/host/xhci-fsl.c | 8 1 file changed, 4

[U-Boot] [PATCH 3/4] config: ls2085aqds: Add USB support for ls2085aqds

2015-06-22 Thread Nikhil Badola
Add USB XHCI support for ls2085qds platform Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- include/configs/ls2085aqds.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/configs/ls2085aqds.h b/include/configs/ls2085aqds.h index 731eca2..7b77fb4 100644 ---

[U-Boot] [PATCH 4/4] config: ls2085ardb: Add USB support for ls2085ardb

2015-06-22 Thread Nikhil Badola
Add USB XHCI support for ls2085rdb platform Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- include/configs/ls2085ardb.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/configs/ls2085ardb.h b/include/configs/ls2085ardb.h index a0f0f6c..a81653c 100644 ---

[U-Boot] [PATCH 2/4] config: lsch3: Define USB XHCI controller base address for LS2085A

2015-06-22 Thread Nikhil Badola
Define base address of usb xhci controllers for LS2085A SOC Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- arch/arm/include/asm/arch-fsl-lsch3/config.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/include/asm/arch-fsl-lsch3/config.h

[U-Boot] [RESPIN PATCH v2 01/15] dm: rtc: Support mc146818 driver in driver model

2015-06-22 Thread Bin Meng
Add driver model support to the mc146818 rtc driver. Also clean up the driver a little bit for coding convention issues. Signed-off-by: Bin Meng bmeng...@gmail.com --- Changes in v2: - New patch to support mc146818 driver in driver model drivers/rtc/mc146818.c | 312

[U-Boot] [RESPIN PATCH v2 03/15] x86: crownbay: Enable DM RTC support

2015-06-22 Thread Bin Meng
Add a RTC node in the device tree to enable DM RTC support. Signed-off-by: Bin Meng bmeng...@gmail.com --- Changes in v2: - New patch to enable DM RTC support for Crown Bay arch/x86/dts/crownbay.dts | 1 + arch/x86/dts/rtc.dtsi | 6 ++ configs/crownbay_defconfig | 1 + 3 files

[U-Boot] [RESPIN PATCH v2 02/15] cmd: date: Change to use CONFIG_DM_RTC instead of CONFIG_DM_I2C

2015-06-22 Thread Bin Meng
Currently CONFIG_DM_I2C is used in cmd_date.c for driver model, but it should be actually CONFIG_DM_RTC. Signed-off-by: Bin Meng bmeng...@gmail.com --- Changes in v2: - New patch to change to use CONFIG_DM_RTC instead of CONFIG_DM_I2C common/cmd_date.c | 12 ++-- 1 file changed, 6

[U-Boot] [PATCH 3/4] include: usb: Move USB controller base address mapping

2015-06-22 Thread Nikhil Badola
Move USB controller Base address mapping from ls102xa immap to fsl xhci header. This is required to remove any warnings when controller base addresses are mapped for multiple platforms in their respective files. Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com ---

[U-Boot] [PATCH 1/4] config: lsch3: Define CONFIG_SYS_CACHELINE_SIZE for LS2085A

2015-06-22 Thread Nikhil Badola
Define CONFIG_SYS_CACHELINE_SIZE for LS2085A which is required by USB XHCI stack for alignment Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- This patchset depends on a patchset sent to u-boot-usb/next http://patchwork.ozlabs.org/patch/487462/

[U-Boot] [RESPIN PATCH v2 04/15] x86: queensbay: Correct Topcliff device irqs

2015-06-22 Thread Bin Meng
There are 4 usb ports on the Intel Crown Bay board, 2 of which are connected to Topcliff usb host 0 and the other 2 connected to usb host 1. USB devices inserted in the ports connected to usb host 1 cannot get detected due to wrong IRQ assigned to the controller. Actually we need apply the PCI

[U-Boot] [RESPIN PATCH v2 09/15] x86: Add I/O APIC register access routines

2015-06-22 Thread Bin Meng
I/O APIC registers are addressed indirectly. Add io_apic_read() and io_apic_write() routines to help register access. Two macros for I/O APIC ID and version register offset are also added. Signed-off-by: Bin Meng bmeng...@gmail.com --- Changes in v2: - Do not use inline for register access

[U-Boot] [RESPIN PATCH v2 07/15] x86: Reduce PIRQ routing table size

2015-06-22 Thread Bin Meng
There is no need to populate multiple irq info entries with the same bus number and device number, but with different interrupt pin. We can use the same entry to store all the 4 interrupt pin (INT A/B/C/D) routing information to reduce the whole PIRQ routing table size. Signed-off-by: Bin Meng

[U-Boot] [RESPIN PATCH v2 10/15] x86: Remove inline for lapic access routines

2015-06-22 Thread Bin Meng
Remove inline for lapic access routines and expose lapic_read() lapic_write() as APIs to read/write lapic registers. Also move stop_this_cpu() to mp_init.c as it has nothing to do with lapic. Signed-off-by: Bin Meng bmeng...@gmail.com --- Changes in v2: - New patch to remove inline for lapic

[U-Boot] [RESPIN PATCH v2 06/15] x86: Ignore function number when writing PIRQ routing table

2015-06-22 Thread Bin Meng
In fill_irq_info() pci device's function number is written into the table, however this is not really necessary. The function number can be anything as OS doesn't care about this field, neither does the PIRQ routing specification. Change to always writing 0 as the function number. Signed-off-by:

[U-Boot] [RESPIN PATCH v2 08/15] x86: Clean up ioapic header file

2015-06-22 Thread Bin Meng
Remove all the dead/unused macros from asm/ioapic.h. Signed-off-by: Bin Meng bmeng...@gmail.com Acked-by: Simon Glass s...@chromium.org --- Changes in v2: None arch/x86/include/asm/ioapic.h | 26 +++--- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git

[U-Boot] [RESPIN PATCH v2 05/15] x86: Write correct bus number for the irq router

2015-06-22 Thread Bin Meng
We should write correct bus number to the PIRQ routing table for the irq router from device tree, instead of hard-coded zero. Signed-off-by: Bin Meng bmeng...@gmail.com Acked-by: Simon Glass s...@chromium.org --- Changes in v2: None arch/x86/cpu/irq.c | 2 +- 1 file changed, 1 insertion(+), 1