Re: [U-Boot] [PATCH] common/command.c: revert chanches from commit 199adb60

2012-12-13 Thread Anatolij Gustschin
Hi Rommel, On Fri, 14 Dec 2012 04:13:34 + (UTC) Rommel Custodio wrote: ... > > > > Applied to u-boot-staging/agust denx.de-urgent. > > *bump* > > This seems to be still missing in master. This patch is already in master, here is the commit [1]. Thanks, Anatolij [1] http://git.denx.de/

[U-Boot] [PATCH v3 2/7] usb: ehci: generic PCI support

2012-12-13 Thread Simon Glass
From: Vincent Palatin Instead of hardcoding the PCI IDs on the USB controller, use the PCI class to detect them. Ensure the busmaster bit is properly set in the PCI configuration. Signed-off-by: Simon Glass --- Changes in v3: - Check the last PCI bus (this was unfortunately omitted in v2) Cha

[U-Boot] [PATCH v2 07/58] arm: Move timer_reset_value to arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/arm926ejs/davinci/timer.c |4 ++-- arch/arm/include/asm/global_data.h |5 + 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/arm/cpu/arm926ejs/da

[U-Boot] [PATCH v2 35/58] ppc: Move kbd_status to arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/include/asm/global_data.h |6 +++--- board/lwmon/lwmon.c| 10 +- board/lwmon5/kbd.c | 10 +- 3 files changed, 13 ins

[U-Boot] [PATCH v2 38/58] m68k: Move CONFIG_EXTRA_CLOCK to arch_global_data

2012-12-13 Thread Simon Glass
Move inp_clk, vco_clk and flb_clk into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/m68k/cpu/mcf5227x/cpu.c|6 +++--- arch/m68k/cpu/mcf5227x/speed.c | 10 +- arch/m68k/cpu/mcf5445x/cpu.c| 10 +- arch/m68k/cpu/

[U-Boot] [PATCH v2 56/58] sh: Use generic global_data

2012-12-13 Thread Simon Glass
Move sh over to use generic global_data. Signed-off-by: Simon Glass --- Changes in v2: None arch/sh/include/asm/global_data.h | 20 +--- 1 files changed, 1 insertions(+), 19 deletions(-) diff --git a/arch/sh/include/asm/global_data.h b/arch/sh/include/asm/global_data.h index

[U-Boot] [PATCH v2 43/58] Add generic global_data

2012-12-13 Thread Simon Glass
Add a generic global_data structure which all archs will eventually use. Signed-off-by: Simon Glass --- Changes in v2: - Remove tabs after #ifdef and #define in generic global_data include/asm-generic/global_data.h | 102 + 1 files changed, 102 insertions(+)

[U-Boot] [PATCH v2 37/58] sparc: Drop kbd_status and reset_status from global_data

2012-12-13 Thread Simon Glass
These fields is not used on sparc, so punt them. Signed-off-by: Simon Glass --- Changes in v2: None arch/sparc/include/asm/global_data.h |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/arch/sparc/include/asm/global_data.h b/arch/sparc/include/asm/global_data.h index

[U-Boot] [PATCH v2 49/58] microblaze: Use generic global_data

2012-12-13 Thread Simon Glass
Move microblaze over to use generic global_data. Signed-off-by: Simon Glass --- Changes in v2: None arch/microblaze/include/asm/global_data.h | 27 +-- 1 files changed, 1 insertions(+), 26 deletions(-) diff --git a/arch/microblaze/include/asm/global_data.h b/arch/mic

[U-Boot] [PATCH v2 46/58] avr32: Use generic global_data

2012-12-13 Thread Simon Glass
Move avr32 over to use generic global_data. Signed-off-by: Simon Glass --- Changes in v2: None arch/avr32/include/asm/global_data.h | 29 + 1 files changed, 1 insertions(+), 28 deletions(-) diff --git a/arch/avr32/include/asm/global_data.h b/arch/avr32/include/as

[U-Boot] [PATCH v2 47/58] blackfin: Use generic global_data

2012-12-13 Thread Simon Glass
Move blackfin over to use generic global_data. Signed-off-by: Simon Glass --- Changes in v2: None arch/blackfin/include/asm/global_data.h | 32 +-- 1 files changed, 1 insertions(+), 31 deletions(-) diff --git a/arch/blackfin/include/asm/global_data.h b/arch/black

[U-Boot] [PATCH v2 57/58] sparc: Use generic global_data

2012-12-13 Thread Simon Glass
Move sparc over to use generic global_data. Signed-off-by: Simon Glass --- Changes in v2: None arch/sparc/include/asm/global_data.h | 46 +- 1 files changed, 1 insertions(+), 45 deletions(-) diff --git a/arch/sparc/include/asm/global_data.h b/arch/sparc/inclu

[U-Boot] [PATCH v2 33/58] ppc: Move fpga_state to arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/include/asm/global_data.h |6 +++--- board/gdsys/405ep/405ep.c | 15 --- board/gdsys/405ex/405ex.c | 13 +++-- board/gdsys/405

[U-Boot] [PATCH v2 41/58] avr32: Move cpu_hz to arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/avr32/cpu/cpu.c |4 ++-- arch/avr32/cpu/interrupts.c |6 +++--- arch/avr32/include/asm/global_data.h |2 +- arch/avr32/lib/bootm.c |2

[U-Boot] [PATCH v2 54/58] powerpc: Use generic global_data

2012-12-13 Thread Simon Glass
Move powerpc over to use generic global_data. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/include/asm/global_data.h | 47 +--- 1 files changed, 1 insertions(+), 46 deletions(-) diff --git a/arch/powerpc/include/asm/global_data.h b/arch/powerpc

[U-Boot] [PATCH v2 40/58] avr32: Move stack_end to arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/avr32/cpu/exception.c |6 +++--- arch/avr32/include/asm/global_data.h |2 +- arch/avr32/lib/board.c |2 +- 3 files changed, 5 insertions(+), 5 deletions

[U-Boot] [PATCH v2 48/58] m68k: Use generic global_data

2012-12-13 Thread Simon Glass
Move m68k over to use generic global_data. Signed-off-by: Simon Glass --- Changes in v2: None arch/m68k/include/asm/global_data.h | 39 +-- 1 files changed, 1 insertions(+), 38 deletions(-) diff --git a/arch/m68k/include/asm/global_data.h b/arch/m68k/include/

[U-Boot] [PATCH v2 45/58] arm: Use generic global_data

2012-12-13 Thread Simon Glass
Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/include/asm/global_data.h | 38 +--- 1 files changed, 1 insertions(+), 37 deletions(-) diff --git a/arch/arm/include/asm/global_data.h b/arch/arm/include/asm/global_data.h index 2f85b91..8ee0883 10064

[U-Boot] [PATCH v2 58/58] x86: Use generic global_data

2012-12-13 Thread Simon Glass
Move x86 over to use generic global_data. Signed-off-by: Simon Glass --- Changes in v2: - Rebase to master arch/x86/include/asm/global_data.h | 37 ++- 1 files changed, 3 insertions(+), 34 deletions(-) diff --git a/arch/x86/include/asm/global_data.h b/arch/x8

[U-Boot] [PATCH v2 44/58] Only use fb_base if we have a display

2012-12-13 Thread Simon Glass
The ideal of having a frame buffer when there isn't a display is not that useful. Change the bdinfo command to expect this only when we have an lcd or video display. Signed-off-by: Simon Glass --- Changes in v2: None common/cmd_bdinfo.c |4 1 files changed, 4 insertions(+), 0 deletions

[U-Boot] [PATCH v2 51/58] nds32: Use generic global_data

2012-12-13 Thread Simon Glass
Move nds32 over to use generic global_data. Signed-off-by: Simon Glass --- Changes in v2: None arch/nds32/include/asm/global_data.h | 32 +--- 1 files changed, 1 insertions(+), 31 deletions(-) diff --git a/arch/nds32/include/asm/global_data.h b/arch/nds32/include

[U-Boot] [PATCH v2 50/58] mips: Use generic global_data

2012-12-13 Thread Simon Glass
Move mips over to use generic global_data. Signed-off-by: Simon Glass --- Changes in v2: None arch/mips/include/asm/global_data.h | 34 +- 1 files changed, 1 insertions(+), 33 deletions(-) diff --git a/arch/mips/include/asm/global_data.h b/arch/mips/include/a

[U-Boot] [PATCH v2 52/58] nios2: Use generic global_data

2012-12-13 Thread Simon Glass
Move nios2 over to use generic global_data. Signed-off-by: Simon Glass Acked-by: Thomas Chou --- Changes in v2: None arch/nios2/include/asm/global_data.h | 24 +--- 1 files changed, 1 insertions(+), 23 deletions(-) diff --git a/arch/nios2/include/asm/global_data.h b/ar

[U-Boot] [PATCH v2 28/58] ppc: Move arbiter fields to arch_global_data

2012-12-13 Thread Simon Glass
Move arbiter_event_attributes and arbiter_event_address into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/cpu/mpc83xx/cpu_init.c| 28 +++- arch/powerpc/include/asm/global_data.h |8 2 files changed, 19 i

[U-Boot] [PATCH v2 34/58] ppc: Move wdt_last to arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/include/asm/global_data.h |6 +++--- board/lwmon5/lwmon5.c |8 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/include

[U-Boot] [PATCH v2 31/58] ppc: Move mirror_hack to arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/include/asm/global_data.h |6 +++--- board/evb64260/mpsc.c |2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/include/asm/g

[U-Boot] [PATCH v2 53/58] openrisc: Use generic global_data

2012-12-13 Thread Simon Glass
Move openrisc over to use generic global_data. Signed-off-by: Simon Glass --- Changes in v2: None arch/openrisc/include/asm/global_data.h | 25 + 1 files changed, 1 insertions(+), 24 deletions(-) diff --git a/arch/openrisc/include/asm/global_data.h b/arch/openrisc/in

[U-Boot] [PATCH v2 39/58] mips: Move per_clk and dev_clk to arch_global_data

2012-12-13 Thread Simon Glass
Move these field into arch_global_data and tidy up. The other CONFIG_JZSOC fields are used by various architectures, so just remove the #ifdef bracketing for these. Signed-off-by: Simon Glass --- Changes in v2: None arch/mips/include/asm/global_data.h |9 + 1 files changed, 5 insert

[U-Boot] [PATCH v2 25/58] ppc: Move mpc512x clocks to arch_global_data

2012-12-13 Thread Simon Glass
Move ips_clk and csb_clk into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/cpu/mpc512x/cpu.c |2 +- arch/powerpc/cpu/mpc512x/i2c.c |2 +- arch/powerpc/cpu/mpc512x/ide.c |2 +- arch/powerpc/cpu/mpc512x/serial.c

[U-Boot] [PATCH v2 42/58] sandbox: Move ram_buf to arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/cpu/cpu.c |2 +- arch/sandbox/include/asm/global_data.h |2 +- arch/sandbox/lib/board.c |6 +++--- 3 files changed, 5 insertions(+), 5 del

[U-Boot] [PATCH v2 36/58] ppc: arm: Move sdhc_clk into arch_global_data

2012-12-13 Thread Simon Glass
This is used by both powerpc and arm, but I think it still qualifies as architecture-specific. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/arm1136/mx35/generic.c|6 +++--- arch/arm/cpu/arm926ejs/mx25/generic.c |4 ++-- arch/arm/imx-common/speed.c|

[U-Boot] [PATCH v2 23/58] ppc: Move used_tlb_cams to arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/cpu/mpc85xx/tlb.c |8 arch/powerpc/include/asm/global_data.h |6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/cpu/mpc

[U-Boot] [PATCH v2 32/58] ppc: Remove console_addr from global data

2012-12-13 Thread Simon Glass
This does not appear to be used, so punt it. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/include/asm/global_data.h |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/include/asm/global_data.h b/arch/powerpc/include/asm/global_data.h i

[U-Boot] [PATCH v2 16/58] ppc: Remove extra pci_clk fields from global_data

2012-12-13 Thread Simon Glass
PPC has several of these fields, selected by chip type, although only one is ever compiled in. Instead, use a single field. It would be nice if this could be selected by CONFIG_PCI, but some chips (e.g. mpc5xxx) use pci_clk even when CONFIG_PCI is not enabled. Signed-off-by: Simon Glass --- Chan

[U-Boot] [PATCH v2 55/58] sandbox: Use generic global_data

2012-12-13 Thread Simon Glass
Move sandbox over to use generic global_data. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/include/asm/global_data.h | 25 + 1 files changed, 1 insertions(+), 24 deletions(-) diff --git a/arch/sandbox/include/asm/global_data.h b/arch/sandbox/includ

[U-Boot] [PATCH v2 05/58] arm: Move tbl to arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/arm1136/mx31/timer.c|6 +++--- arch/arm/cpu/arm1136/mx35/timer.c|2 +- arch/arm/cpu/arm1136/omap24xx/timer.c| 17 ++--- arch/arm/cpu/arm92

[U-Boot] [PATCH v2 26/58] ppc: Move mpc8220 clocks to arch_global_data

2012-12-13 Thread Simon Glass
Move these fields into arch_global_data and tidy up. The bExtUart field does not appear to be used, so punt it. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/cpu/mpc8220/speed.c | 12 +++- arch/powerpc/include/asm/global_data.h | 13 ++--- arch/powerp

[U-Boot] [PATCH v2 21/58] ppc: Move CONFIG_QE to arch_global_data

2012-12-13 Thread Simon Glass
Move the quantative easing fields into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/cpu/mpc83xx/speed.c |5 +++-- arch/powerpc/cpu/mpc85xx/speed.c |4 ++-- arch/powerpc/include/asm/global_data.h | 14 ++ drivers/

[U-Boot] [PATCH v2 08/58] ixp: Move timestamp to arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/ixp/timer.c |8 arch/arm/include/asm/global_data.h |6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/cpu/ixp/timer.c b/a

[U-Boot] [PATCH v2 29/58] ppc: Move dp_alloc_base, dp_alloc_top to arch_global_data

2012-12-13 Thread Simon Glass
Move these fields into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/cpu/mpc8260/commproc.c| 19 ++- arch/powerpc/cpu/mpc85xx/commproc.c| 19 ++- arch/powerpc/cpu/mpc8xx/commproc.c | 20

[U-Boot] [PATCH v2 30/58] arm: Move uart_clk to arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/cpu/ppc4xx/4xx_uart.c |4 ++-- arch/powerpc/cpu/ppc4xx/fdt.c |4 ++-- arch/powerpc/include/asm/global_data.h |6 +++--- 3 files changed, 7 insertions(+), 7

[U-Boot] [PATCH v2 19/58] ppc: Move lbc_clk and cpu to arch_global_data

2012-12-13 Thread Simon Glass
Move these fields into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/cpu/mpc85xx/cpu.c |2 +- arch/powerpc/cpu/mpc85xx/fdt.c |4 ++-- arch/powerpc/cpu/mpc85xx/speed.c|2 +- arch/powerpc/cpu/mpc86xx/cpu.c

[U-Boot] [PATCH v2 18/58] ppc: Move mpc83xx clock fields to arch_global_data

2012-12-13 Thread Simon Glass
Move al mpc83xx fields into arch_global_data and tidy up. Also indent the nested #ifdef for clarity. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/cpu/mpc83xx/cpu.c |2 +- arch/powerpc/cpu/mpc83xx/fdt.c |2 +- arch/powerpc/cpu/mpc83xx/pcie.c|

[U-Boot] [PATCH v2 02/58] at91: Move at91 global data into arch_global_data

2012-12-13 Thread Simon Glass
Move these fields into arch_global_data. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/arm920t/at91/clock.c| 24 +--- arch/arm/cpu/arm926ejs/at91/clock.c | 30 -- arch/arm/cpu/arm926ejs/at91/timer.c |2 +- arch/arm/

[U-Boot] [PATCH v2 06/58] arm: Move lastinc to arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/arm1136/mx31/timer.c|8 arch/arm/cpu/arm1136/mx35/timer.c|2 +- arch/arm/cpu/arm1136/omap24xx/timer.c| 12 ++-- arch/arm/cpu/arm920t/

[U-Boot] [PATCH v2 09/58] nds32: Drop tlb_addr from global data

2012-12-13 Thread Simon Glass
This field doesn't appear to be used for anything important, so drop it. Signed-off-by: Simon Glass --- Changes in v2: None arch/nds32/include/asm/global_data.h |3 --- arch/nds32/lib/board.c | 11 --- 2 files changed, 0 insertions(+), 14 deletions(-) diff --git a/a

[U-Boot] [PATCH v2 20/58] ppc: m68k: Move i2c1_clk, i2c2_clk to arch_global_data

2012-12-13 Thread Simon Glass
Move these fields into arch_global_data and tidy up. This is needed for both ppc and m68k since they share the i2c driver. Signed-off-by: Simon Glass --- Changes in v2: None arch/m68k/cpu/mcf5227x/speed.c |2 +- arch/m68k/cpu/mcf523x/speed.c |2 +- arch/m68k/cpu/mcf52x2

[U-Boot] [PATCH v2 22/58] ppc: Move used_laws to arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/cpu/mpc8xxx/law.c | 16 arch/powerpc/include/asm/global_data.h |6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/power

[U-Boot] [PATCH v2 27/58] ppc: Move reset_status to arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/cpu/mpc512x/cpu.c |2 +- arch/powerpc/cpu/mpc512x/cpu_init.c|2 +- arch/powerpc/cpu/mpc8260/cpu_init.c|4 ++-- arch/powerpc/cpu/mpc83xx/cpu_init.c|

[U-Boot] [PATCH v2 10/58] arm: Move tlb_addr to arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/include/asm/global_data.h |6 +++--- arch/arm/lib/board.c |2 +- arch/arm/lib/cache-cp15.c |4 ++-- common/cmd_bdinfo.c|2 +- 4 f

[U-Boot] [PATCH v2 17/58] ppc: Move clock fields to arch_global_data

2012-12-13 Thread Simon Glass
Move vco_out, cpm_clk, scc_clk, brg_clk into arch_global_data and tidy up. Leave pci_clk on its own since this should really depend only on CONFIG_PCI and not any particular chip type. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/cpu/mpc8260/speed.c | 16 -

[U-Boot] [PATCH v2 24/58] ppc: Move mpc5xxx clocks to arch_global_data

2012-12-13 Thread Simon Glass
Move ipb_clk and pci_clk into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/cpu/mpc5xxx/i2c.c |2 +- arch/powerpc/cpu/mpc5xxx/ide.c |2 +- arch/powerpc/cpu/mpc5xxx/serial.c |4 ++-- arch/powerpc/cpu/mpc5xxx/speed.c

[U-Boot] [PATCH v2 15/58] ppc: Move brg_clk to arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/powerpc/cpu/mpc8260/commproc.c|2 +- arch/powerpc/cpu/mpc8260/i2c.c |2 +- arch/powerpc/cpu/mpc8260/speed.c |4 ++-- arch/powerpc/cpu/mpc83xx/speed.c |

[U-Boot] [PATCH v2 14/58] x86: Remove reset_status, relocoff from global_data

2012-12-13 Thread Simon Glass
These fields are not used on x86, so punt them. Signed-off-by: Simon Glass --- Changes in v2: - Rebase to master arch/x86/include/asm/global_data.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/global_data.h b/arch/x86/include/asm/global_data.h

[U-Boot] [PATCH v2 12/58] x86: Move gd_addr into arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/include/asm/global_data.h |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/global_data.h b/arch/x86/include/asm/global_data.h index 9a4f

[U-Boot] [PATCH v2 13/58] x86: Set up the global data pointer in C instead of asm

2012-12-13 Thread Simon Glass
We currently assume that the global data pointer is at the start of struct global_data. We want to remove this restriction, and it is easiest to do this in C. Remove the asm code and add equivalent code in C. This idea was proposed by Graeme Russ here: http://patchwork.ozlabs.org/patch/199741/

[U-Boot] [PATCH v2 03/58] arm: Move timer_rate_hz into arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/arm920t/a320/timer.c |8 arch/arm/cpu/arm920t/s3c24x0/timer.c |4 ++-- arch/arm/cpu/arm926ejs/at91/timer.c|8 arch/arm/cpu/arm926ejs/davinc

[U-Boot] [PATCH v2 04/58] arm: Move tbu to arch_global_data

2012-12-13 Thread Simon Glass
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/arm920t/a320/timer.c|6 +++--- arch/arm/cpu/arm920t/s3c24x0/timer.c | 14 +++--- arch/arm/cpu/arm926ejs/armada100/timer.c | 12 ++-- arch/arm/cp

[U-Boot] [PATCH v2 11/58] x86: Remove gdt_addr from arch_global_data

2012-12-13 Thread Simon Glass
Remove this unused field. Signed-off-by: Simon Glass --- Changes in v2: - Remove gdt_addr which is no longer used on x86 arch/x86/include/asm/global_data.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/x86/include/asm/global_data.h b/arch/x86/include/asm/global_

[U-Boot] [PATCH v2 0/58] Move arch-specific global data into its own structure

2012-12-13 Thread Simon Glass
The previous generic board series hit a snag in that we needed generic code to access some of the architecture-specific fields in global_data. The solution eventually arrived at was to move these fields into a separate structure, so that global_data has the generic fields, and within that there is

Re: [U-Boot] [PATCH 13/57] x86: Move new_gd_addr to arch_global_data

2012-12-13 Thread Simon Glass
Hi Graeme, On Sat, Nov 17, 2012 at 5:07 PM, Graeme Russ wrote: > Hi Simon, > > On 11/17/2012 08:19 AM, Simon Glass wrote: >> Move this field into arch_global_data and tidy up. >> >> This will certainly break x86, so will need Graeme's help to sort out > > Yes, it most certainly will break x86 :)

[U-Boot] [PATCH] mmc: sdhci: return error when failed add_sdhci().

2012-12-13 Thread Jaehoon Chung
If failed the add_host(), it is reasonable that return value of add_sdhci(). Signed-off-by: Jaehoon Chung Signed-off-by: Kyungmin Park --- drivers/mmc/mv_sdhci.c |3 +-- drivers/mmc/s5p_sdhci.c |3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/mv_sdhci.

Re: [U-Boot] [PATCH] common/command.c: revert chanches from commit 199adb60

2012-12-13 Thread Rommel Custodio
Dear Anatolij, Anatolij Gustschin denx.de> writes: > > Hi Albert, > > On Sat, 10 Nov 2012 12:21:55 +0100 > Albert ARIBAUD aribaud.net> wrote: > ... > > > > > > Applied to u-boot-staging/agust denx.de-urgent. *bump* This seems to be still missing in master. All the best, Rommel > > > >

[U-Boot] [PATCH v2 7/7] x86: Enable USB features for coreboot

2012-12-13 Thread Simon Glass
Enable PCI EHCI, storage, keyboard and Ethernet for USB. Signed-off-by: Simon Glass --- Changes in v2: None include/configs/coreboot.h | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/include/configs/coreboot.h b/include/configs/coreboot.h index adeace0.

[U-Boot] [PATCH v2 2/7] usb: ehci: generic PCI support

2012-12-13 Thread Simon Glass
From: Vincent Palatin Instead of hardcoding the PCI IDs on the USB controller, use the PCI class to detect them. Ensure the busmaster bit is properly set in the PCI configuration. Signed-off-by: Simon Glass --- Changes in v2: - Use errno where possible - Use PCI_CLASS_SERIAL_USB_EHCI instead o

[U-Boot] [PATCH v2 4/7] usb: ehci: Fix aliasing issue in EHCI interrupt code

2012-12-13 Thread Simon Glass
From: Vincent Palatin The interrupt endpoint handling code stores the buffer pointer in the QH padding field. We need to make it the size of a pointer to avoid strict aliasing issue with the compiler. Signed-off-by: Vincent Palatin Signed-off-by: Simon Glass --- Changes in v2: None drivers/

[U-Boot] [PATCH v2 6/7] usb: Add multiple controllers support for EHCI PCI

2012-12-13 Thread Simon Glass
From: Vincent Palatin Use the ability to have several active EHCI controller on a system in the PCI EHCI controller implementation. Signed-off-by: Simon Glass --- Changes in v2: - Add blank line before function return drivers/usb/host/ehci-pci.c | 26 +- 1 files chan

[U-Boot] [PATCH v2 3/7] usb: ehci: Support interrupt transfers via periodic list

2012-12-13 Thread Simon Glass
From: Patrick Georgi Interrupt transfers aren't meant to be used from the async list (the EHCI spec indicates trouble with low/full-speed intr on async). Build a periodic list instead, and provide an API to make use of it. Then, use that API from the existing interrupt transfer API. This provid

[U-Boot] [PATCH v2 5/7] usb: usbeth: smsc95xx: remove EEPROM loaded check

2012-12-13 Thread Simon Glass
From: Michael Spang [port of Linux kernel commit bcd218be5aeb by Steve Glendinning] The eeprom read & write commands currently check the E2P_CMD_LOADED_ bit is set before allowing any operations. This prevents any reading or writing unless a correctly programmed EEPROM is installed. Signed-off

[U-Boot] [PATCH v2 1/7] usb: net: asix: Do a fast init if link already established

2012-12-13 Thread Simon Glass
The Asix driver takes the link down during init() and then brings it back up. This commit changes this so that if a link has already been established successfully we simply check that the link is still good. Also fix up asix_halt() to actually halt RX on the interface. Previously this was not done

[U-Boot] [PATCH v2 0/7] Various USB improvements

2012-12-13 Thread Simon Glass
This series adds a few USB improvements for Marek: - Support for interupt transfers - Faster start-up and proper shutdown of ASIX USB adapter - Basic 64-bit controller support (used by x86) Changes in v2: - Use errno where possible - Use PCI_CLASS_SERIAL_USB_EHCI instead of the number - Update to

Re: [U-Boot] [PATCH 04/11] usb: ehci: Support interrupt transfers via periodic list

2012-12-13 Thread Simon Glass
Hi Marek, On Thu, Dec 13, 2012 at 6:00 PM, Marek Vasut wrote: > Dear Simon Glass, > >> Hi, >> >> On Thu, Dec 13, 2012 at 9:32 AM, Marek Vasut wrote: >> > Dear Simon Glass, >> > >> >> From: Patrick Georgi >> >> >> >> Interrupt transfers aren't meant to be used from the async list >> >> (the EHCI

Re: [U-Boot] [PATCH 06/11] usb: ehci: Add timeout on interrupt endpoint operations

2012-12-13 Thread Simon Glass
Hi Marek, On Thu, Dec 13, 2012 at 9:35 AM, Marek Vasut wrote: > Dear Simon Glass, > >> From: Vincent Palatin >> >> Ensure we cannot get stuck in the keyboard scanning if something wrong >> happens (USB device unplugged or fatal I/O error) >> >> Signed-off-by: Vincent Palatin >> >> Signed-off-by

Re: [U-Boot] [PATCH 04/11] usb: ehci: Support interrupt transfers via periodic list

2012-12-13 Thread Marek Vasut
Dear Simon Glass, > Hi, > > On Thu, Dec 13, 2012 at 9:32 AM, Marek Vasut wrote: > > Dear Simon Glass, > > > >> From: Patrick Georgi > >> > >> Interrupt transfers aren't meant to be used from the async list > >> (the EHCI spec indicates trouble with low/full-speed intr on async). > >> > >> Bu

Re: [U-Boot] [PATCH 04/11] usb: ehci: Support interrupt transfers via periodic list

2012-12-13 Thread Simon Glass
Hi, On Thu, Dec 13, 2012 at 9:32 AM, Marek Vasut wrote: > Dear Simon Glass, > >> From: Patrick Georgi >> >> Interrupt transfers aren't meant to be used from the async list >> (the EHCI spec indicates trouble with low/full-speed intr on async). >> >> Build a periodic list instead, and provide an

Re: [U-Boot] [PATCH 03/11] usb: ehci: generic PCI support

2012-12-13 Thread Simon Glass
Hi Marek, On Thu, Dec 13, 2012 at 9:30 AM, Marek Vasut wrote: > Dear Simon Glass, > >> From: Vincent Palatin >> >> Instead of hardcoding the PCI IDs on the USB controller, use the PCI >> class to detect them. >> >> Ensure the busmaster bit is properly set in the PCI configuration. >> >> Signed-o

Re: [U-Boot] [PATCH 4/4] sf: Add Quad-input Page Program(32h) instruction support

2012-12-13 Thread Simon Glass
+Mike Hi, On Thu, Dec 13, 2012 at 8:21 AM, Jagan Teki wrote: > Hi Simon, > > On Thu, Dec 13, 2012 at 4:08 AM, Simon Glass wrote: >> Hi Jagan, >> >> On Wed, Dec 12, 2012 at 8:52 AM, Jagan Teki wrote: >>> Hi Simon, >>> >>> On Wed, Dec 12, 2012 at 12:11 PM, Simon Glass wrote: Hi,

Re: [U-Boot] [PATCH 3/4] sf: Add configuration register writing

2012-12-13 Thread Simon Glass
Hi Jagan, On Thu, Dec 13, 2012 at 8:08 AM, Jagan Teki wrote: > Hi Simon, > > On Thu, Dec 13, 2012 at 4:03 AM, Simon Glass wrote: >> Hi Jagan, >> >> On Wed, Dec 12, 2012 at 8:21 AM, Jagan Teki wrote: >>> Hi Simon, >>> >>> On Wed, Dec 12, 2012 at 8:53 PM, Simon Glass wrote: Hi Jagan, >

Re: [U-Boot] please pull u-boot-samsung/resolve

2012-12-13 Thread Minkyu Kang
On 14/12/12 04:56, Albert ARIBAUD wrote: > Hi Minkyu, > > On Tue, 11 Dec 2012 20:10:06 +0900, Minkyu Kang > wrote: >> Dear Albert, >> >> The following changes since commit fd4d564b3c80b111f18c93adb14233a6a7ddb0e9: >> >> Merge branch 'master' of git://git.denx.de/u-boot-x86 (2012-12-07 08:47:59

Re: [U-Boot] [PATCH] ns16550: allow UART address to be set dynamically

2012-12-13 Thread Stephen Warren
On 12/13/2012 04:11 PM, Wolfgang Denk wrote: > Dear Stephen Warren, > > In message <50ca3e7a.8020...@wwwdotorg.org> you wrote: >> My intent is that ODMDATA will definitely only be used for the console UART, and will NOT be used for anything else like LCD, RTC, ... Those other device

Re: [U-Boot] [PATCH] ns16550: allow UART address to be set dynamically

2012-12-13 Thread Wolfgang Denk
Dear Stephen Warren, In message <50ca3e7a.8020...@wwwdotorg.org> you wrote: > > >> My intent is that ODMDATA will definitely only be used for the console > >> UART, and will NOT be used for anything else like LCD, RTC, ... Those > >> other devices will certainly be configured via device tree. > >

Re: [U-Boot] Booting an i.MX53 from NAND with u-boot

2012-12-13 Thread Benoît Thébaudeau
Dear Bernhard Walle, On Thursday, December 13, 2012 5:01:00 PM, Bernhard Walle wrote: > we have a custom board with an Freescale i.MX 53 CPU and NAND flash > (MT29F1G08ABADAWP if it matters). It's quite similar to the i.MX 53 > LOCO > ("Quick Start Board"), but the LOCO has no Flash and only boots

Re: [U-Boot] [PATCH v3] imls: Add support to list images in NAND device

2012-12-13 Thread Scott Wood
On 12/13/2012 04:38:18 AM, Vipin Kumar wrote: + for (off = 0; off < nand->size; off += nand->erasesize) { + const image_header_t *header; + int ret; + + if (nand_block_isbad(nand, off)) + continue;

Re: [U-Boot] [PATCH v2] imls: Add support to list images in NAND device

2012-12-13 Thread Scott Wood
On 12/13/2012 12:10:58 AM, Vipin Kumar wrote: Or better, just have one CONFIG_CMD_IMLS and have it operate on whatever flash types are configured into U-Boot. I didn't do it because until now the CONFIG_CMD_IMLS config is tightly bound with flash only eg config_cmd_default.h enables CONFIG

Re: [U-Boot] [PATCH] ns16550: allow UART address to be set dynamically

2012-12-13 Thread Simon Glass
Hi Stephen, On Thu, Dec 13, 2012 at 1:07 PM, Stephen Warren wrote: > On 12/13/2012 01:53 PM, Tom Rini wrote: >> On 12/13/12 15:45, Stephen Warren wrote: >>> On 12/13/2012 01:36 PM, Wolfgang Denk wrote: Dear Stephen Warren, In message <50ca1bb8.4000...@wwwdotorg.org> you wrote:

Re: [U-Boot] [PATCH] ns16550: allow UART address to be set dynamically

2012-12-13 Thread Stephen Warren
On 12/13/2012 01:53 PM, Tom Rini wrote: > On 12/13/12 15:45, Stephen Warren wrote: >> On 12/13/2012 01:36 PM, Wolfgang Denk wrote: >>> Dear Stephen Warren, >>> >>> In message <50ca1bb8.4000...@wwwdotorg.org> you wrote: > Arghh... Do we really, really have to invent yet another > way

Re: [U-Boot] [PATCH] ns16550: allow UART address to be set dynamically

2012-12-13 Thread Tom Rini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/13/12 15:45, Stephen Warren wrote: > On 12/13/2012 01:36 PM, Wolfgang Denk wrote: >> Dear Stephen Warren, >> >> In message <50ca1bb8.4000...@wwwdotorg.org> you wrote: >>> Arghh... Do we really, really have to invent yet another way to

Re: [U-Boot] [PATCH] ns16550: allow UART address to be set dynamically

2012-12-13 Thread Stephen Warren
On 12/13/2012 01:36 PM, Wolfgang Denk wrote: > Dear Stephen Warren, > > In message <50ca1bb8.4000...@wwwdotorg.org> you wrote: >> >>> Arghh... Do we really, really have to invent yet another way to pass >>> hardware configuration information? Especially one totally >>> incompatible to any other s

Re: [U-Boot] [PATCH] ns16550: allow UART address to be set dynamically

2012-12-13 Thread Wolfgang Denk
Dear Stephen Warren, In message <50ca1bb8.4000...@wwwdotorg.org> you wrote: > > > Arghh... Do we really, really have to invent yet another way to pass > > hardware configuration information? Especially one totally > > incompatible to any other system? > > This is a special case for the console U

Re: [U-Boot] please pull u-boot-samsung/resolve

2012-12-13 Thread Albert ARIBAUD
Hi Minkyu, On Tue, 11 Dec 2012 20:10:06 +0900, Minkyu Kang wrote: > Dear Albert, > > The following changes since commit fd4d564b3c80b111f18c93adb14233a6a7ddb0e9: > > Merge branch 'master' of git://git.denx.de/u-boot-x86 (2012-12-07 08:47:59 > -0700) > > are available in the git repository a

Re: [U-Boot] Conflicting commits for seaboard USB keyboard handling

2012-12-13 Thread Albert ARIBAUD
Hi Tom, On Mon, 10 Dec 2012 14:15:10 -0700, Tom Warren wrote: > u-boot-arm/master and u-boot-tegra/next should have the same base > commit (b8a7c46), so merging them isn't a big deal, and goes smoothly > for me. If I then take u-boot/master and merge it, I see a conflict in > drivers/power/power_

[U-Boot] Booting an i.MX53 from NAND with u-boot

2012-12-13 Thread Bernhard Walle
Hello, we have a custom board with an Freescale i.MX 53 CPU and NAND flash (MT29F1G08ABADAWP if it matters). It's quite similar to the i.MX 53 LOCO ("Quick Start Board"), but the LOCO has no Flash and only boots from Micro SD card. I'm using u-boot 2012.07 from mainline with some additional patch

Re: [U-Boot] [PATCH] ns16550: allow UART address to be set dynamically

2012-12-13 Thread Stephen Warren
On 12/13/2012 03:29 AM, Wolfgang Denk wrote: > Dear Stephen Warren, > > In message <50c918a5.6090...@wwwdotorg.org> you wrote: >> >>> This seems reasonable in the interim while we are hard-coding things >>> but needing more flexibility. How do you plan to configure the actual >>> address - is it w

Re: [U-Boot] [PATCH 03/11] usb: ehci: generic PCI support

2012-12-13 Thread Marek Vasut
Dear Vincent Palatin, > On Thu, Dec 13, 2012 at 9:30 AM, Marek Vasut wrote: > > Dear Simon Glass, > > > >> From: Vincent Palatin > >> > >> Instead of hardcoding the PCI IDs on the USB controller, use the PCI > >> class to detect them. > >> > >> Ensure the busmaster bit is properly set in the

Re: [U-Boot] [PATCH 03/11] usb: ehci: generic PCI support

2012-12-13 Thread Vincent Palatin
On Thu, Dec 13, 2012 at 9:30 AM, Marek Vasut wrote: > Dear Simon Glass, > >> From: Vincent Palatin >> >> Instead of hardcoding the PCI IDs on the USB controller, use the PCI >> class to detect them. >> >> Ensure the busmaster bit is properly set in the PCI configuration. >> >> Signed-off-by: Simo

Re: [U-Boot] [PATCH 09/11] usb: properly detect empty mass storage media reader

2012-12-13 Thread Marek Vasut
Dear Simon Glass, > From: Vincent Palatin > > When a USB card reader is empty, it will return "Not Ready - medium not > present" as Key Code Qualifier. In that situation, it's useless waiting > for the full timeout since the result won't change until the user > inserts a card. Applied, thanks!

Re: [U-Boot] [PATCH 08/11] usb: Clean up newly allocated device nodes in case of configuration failure

2012-12-13 Thread Marek Vasut
Dear Simon Glass, > From: Milind Choudhary > > If probe of a newly connected device fails for some reason, clean up > the allocated entry in usb_dev array. Applied, thanks > Signed-off-by: Milind Choudhary > Signed-off-by: Simon Glass > --- > common/usb.c | 12 > common/u

Re: [U-Boot] [PATCH 07/11] usb: usbeth: smsc95xx: remove EEPROM loaded check

2012-12-13 Thread Marek Vasut
Dear Simon Glass, > From: Michael Spang > > [port of Linux kernel commit bcd218be5aeb by Steve Glendinning] > > The eeprom read & write commands currently check the E2P_CMD_LOADED_ bit is > set before allowing any operations. This prevents any reading or writing > unless a correctly programmed

Re: [U-Boot] [PATCH 06/11] usb: ehci: Add timeout on interrupt endpoint operations

2012-12-13 Thread Marek Vasut
Dear Simon Glass, > From: Vincent Palatin > > Ensure we cannot get stuck in the keyboard scanning if something wrong > happens (USB device unplugged or fatal I/O error) > > Signed-off-by: Vincent Palatin > > Signed-off-by: Simon Glass > --- I like it. Let's use errno.h and rebase on top of

Re: [U-Boot] [PATCH 04/11] usb: ehci: Support interrupt transfers via periodic list

2012-12-13 Thread Marek Vasut
Dear Simon Glass, > From: Patrick Georgi > > Interrupt transfers aren't meant to be used from the async list > (the EHCI spec indicates trouble with low/full-speed intr on async). > > Build a periodic list instead, and provide an API to make use of it. > Then, use that API from the existing int

  1   2   >