Re: [U-Boot] [PATCH 01/27 v2] Blackfin: bfin_mac: force board_get_enetaddr() usage

2009-01-28 Thread Ben Warren
Mike Frysinger wrote: > Since the on-chip MAC does not have an eeprom or similar interface, force > all Blackfin boards that use this to define their own board_get_enetaddr() > function. > > Signed-off-by: Mike Frysinger > CC: Ben Warren > Acked-by: Ben Warren > --- > v2 > - drop CONFIG

Re: [U-Boot] [PATCH 2/2] net: Add Xilinx LL Temac driver

2009-01-28 Thread Ben Warren
Hi Michal, I'm really sorry for taking so long getting to this. Mostly little things: mon...@monstr.eu wrote: > From: Michal Simek > > > Signed-off-by: Michal Simek > --- > drivers/net/Makefile |1 + > drivers/net/xilinx_ll_temac.c | 543 > +++

[U-Boot] [PATCH 01/27 v2] Blackfin: bfin_mac: force board_get_enetaddr() usage

2009-01-28 Thread Mike Frysinger
Since the on-chip MAC does not have an eeprom or similar interface, force all Blackfin boards that use this to define their own board_get_enetaddr() function. Signed-off-by: Mike Frysinger CC: Ben Warren --- v2 - drop CONFIG_ETHADDR handling drivers/net/bfin_mac.c | 21 ++

Re: [U-Boot] [PATCH v2 5/9] AVR32: macb - Disable 100mbps if clock is slow

2009-01-28 Thread Hans-Christian Egtvedt
On Wed, 28 Jan 2009 15:40:49 -0800 Ben Warren wrote: > Jean-Christophe PLAGNIOL-VILLARD wrote: > > On 22:42 Wed 28 Jan , Haavard Skinnemoen wrote: > > > >> As for a better name, how about CONFIG_MACB_ADVERTISE? > >> > > why not > > > I like it too. One of the common checkbox it

Re: [U-Boot] [PATCH 01/27] Blackfin: bfin_mac: force board_get_enetaddr() usage

2009-01-28 Thread Ben Warren
Mike Frysinger wrote: > On Thursday 29 January 2009 01:01:41 Ben Warren wrote: > >> Mike Frysinger wrote: >> >>> On Thursday 29 January 2009 00:43:31 Ben Warren wrote: >>> Mike Frysinger wrote: > --- a/drivers/net/bfin_mac.c > +++ b/drivers/net/bfin_mac.c >

Re: [U-Boot] [PATCH 01/27] Blackfin: bfin_mac: force board_get_enetaddr() usage

2009-01-28 Thread Mike Frysinger
On Thursday 29 January 2009 01:01:41 Ben Warren wrote: > Mike Frysinger wrote: > > On Thursday 29 January 2009 00:43:31 Ben Warren wrote: > >> Mike Frysinger wrote: > >>> --- a/drivers/net/bfin_mac.c > >>> +++ b/drivers/net/bfin_mac.c > >>> > >>> eth_register(dev); > >>> > >>> + ethaddr = getenv(

[U-Boot] OMAP3 support in u-boot-arm, git pull for mainline?

2009-01-28 Thread Dirk Behme
Dear Jean-Christophe, now that OMAP3 support is in u-boot-arm git [1], can you kindly send a git pull request to Wolfgang for mainline merge? As discussed yesterday, when you have additional ARM patches ready, an additional git pull request would be easy then. Best regards Dirk [1] http://gi

Re: [U-Boot] [PATCH 07/27] Blackfin: bfin_mac: cleanup pointer/casts for aliasing issues

2009-01-28 Thread Ben Warren
Mike Frysinger wrote: > Redo how pointers are managed to get rid of ugly casts and strict pointer > aliasing issues that are highlighted by gcc 4.3. > > Signed-off-by: Mike Frysinger > CC: Ben Warren > Acked-by: Ben Warren regards, Ben ___ U-Boot

Re: [U-Boot] [PATCH 06/27] Blackfin: bfin_mac: convert CONFIG_BFIN_MAC_RMII to CONFIG_RMII

2009-01-28 Thread Ben Warren
Mike Frysinger wrote: > No point in having a Blackfin-specific define "CONFIG_BFIN_MAC_RMII" that > does exactly the same thing as common "CONFIG_RMII". > > Signed-off-by: Mike Frysinger > CC: Ben Warren > Acked-by: Ben Warren > --- > drivers/net/bfin_mac.c |4 ++-- > 1 files changed, 2

Re: [U-Boot] [PATCH 01/27] Blackfin: bfin_mac: force board_get_enetaddr() usage

2009-01-28 Thread Ben Warren
Mike Frysinger wrote: > On Thursday 29 January 2009 00:43:31 Ben Warren wrote: > >> Mike Frysinger wrote: >> >>> --- a/drivers/net/bfin_mac.c >>> +++ b/drivers/net/bfin_mac.c >>> >>> eth_register(dev); >>> >>> + ethaddr = getenv("ethaddr"); >>> +#ifndef CONFIG_ETHADDR >>> >> I

Re: [U-Boot] [PATCH 01/27] Blackfin: bfin_mac: force board_get_enetaddr() usage

2009-01-28 Thread Mike Frysinger
On Thursday 29 January 2009 00:43:31 Ben Warren wrote: > Mike Frysinger wrote: > > --- a/drivers/net/bfin_mac.c > > +++ b/drivers/net/bfin_mac.c > > > > eth_register(dev); > > > > + ethaddr = getenv("ethaddr"); > > +#ifndef CONFIG_ETHADDR > > I know this was there before, but CONFIG_ETHADDR i

Re: [U-Boot] [PATCH 05/27] Blackfin: bfin_mac: use common debug()

2009-01-28 Thread Ben Warren
Mike Frysinger wrote: > Rather then defining our own DEBUGF(), just use the common debug(). > > Signed-off-by: Mike Frysinger > CC: Ben Warren > Acked-by: Ben Warren > --- > drivers/net/bfin_mac.c | 14 +++--- > 1 files changed, 3 insertions(+), 11 deletions(-) > > diff --git a/dri

Re: [U-Boot] [PATCH 04/27] Blackfin: bfin_mac: respect CONFIG_PHY_{ADDR, CLOCK_FREQ}

2009-01-28 Thread Ben Warren
Mike Frysinger wrote: > Rather than having the on-chip MAC hardcoded to phy address 1 and a speed > of 2.5mhz, use these ase defaults if the board doesn't specify otherwise. > > Signed-off-by: Mike Frysinger > CC: Ben Warren > Acked-by: Ben Warren regards, Ben _

Re: [U-Boot] [PATCH 03/27] Blackfin: bfin_mac: cleanup MII/PHY functions

2009-01-28 Thread Ben Warren
Mike Frysinger wrote: > Cleanup and rewrite the MII/PHY related functions so that we can reuse the > existing common linux/miiphy.h code and hook into the `mii` command. > > Signed-off-by: Mike Frysinger > CC: Ben Warren > Acked-by: Ben Warren regards, Ben _

Re: [U-Boot] [PATCH 02/27] Blackfin: bfin_mac: set MDCDIV based on SCLK

2009-01-28 Thread Ben Warren
Mike Frysinger wrote: > Rather than hardcoding MDCDIV to 24 (which is correct for ~125mhz SCLK), > use the real algorithm so it gets set correctly regardless of SCLK. > > Signed-off-by: Mike Frysinger > CC: Ben Warren > Acked-by: Ben Warren > --- > drivers/net/bfin_mac.c | 10 +- >

Re: [U-Boot] [PATCH 01/27] Blackfin: bfin_mac: force board_get_enetaddr() usage

2009-01-28 Thread Ben Warren
Hi Mike, Mike Frysinger wrote: > Since the on-chip MAC does not have an eeprom or similar interface, force > all Blackfin boards that use this to define their own board_get_enetaddr() > function. > > Signed-off-by: Mike Frysinger > CC: Ben Warren > --- > drivers/net/bfin_mac.c | 24 ++

[U-Boot] [PATCH] USB: Add EHCI support for VCT EHCI controller (really with driver now)

2009-01-28 Thread Stefan Roese
Somehow I missed the real driver part in my last patch version. This patch now adds the driver. Signed-off-by: Stefan Roese --- drivers/usb/usb_ehci_vct.c | 58 1 files changed, 58 insertions(+), 0 deletions(-) create mode 100644 drivers/usb/usb_eh

Re: [U-Boot] 405EP U-boot/Linux Question (CFG_OCM_DATA_ADDR)

2009-01-28 Thread Stefan Roese
On Wednesday 28 January 2009, Pawel Pastuszak wrote: > I was wondering if some one could give me an hand with OCM for PPC405EP > > So my goal is to Access *CFG_BOOTCOUNT_ADDR *value in Linux based on > http://www.denx.de/wiki/view/DULG/UBootBootCountLimit Please note that its CONFIG_SYS_BOOTCOUNT_

Re: [U-Boot] Reset command on u-boot command line not working

2009-01-28 Thread Ajeesh Kumar
Hi All, Reset problem got fixed, actually the reset command isn't doing a full board reset and just the core was regging resetted. Now its solved. Thanks a lot. Thanks, Ajeesh Kumar -Original Message- From: Jayakrishnan M [mailto:jay.krishn...@gmail.com] Sent: Tuesday, January 27, 200

Re: [U-Boot] [PATCH 31/31] 83xx, kmeter1: added bootcount feature

2009-01-28 Thread Kim Phillips
On Wed, 28 Jan 2009 10:41:02 +0100 Heiko Schocher wrote: > diff --git a/cpu/mpc83xx/cpu.c b/cpu/mpc83xx/cpu.c > +#ifdef CONFIG_BOOTCOUNT_LIMIT > + > +#if !defined(CONFIG_BOOTCOUNT_ADDR) > +#define CONFIG_BOOTCOUNT_ADDR0x11bff8 it's CONFIG_SYS and magic number, but now that I've found it

Re: [U-Boot] [PATCH 28/31] 8xx: add support for new keymile kmsupx4 board.

2009-01-28 Thread Kim Phillips
On Wed, 28 Jan 2009 10:40:50 +0100 Heiko Schocher wrote: > Signed-off-by: Heiko Schocher > --- > Makefile |9 +- > board/keymile/common/common.c|6 +++- > board/keymile/km8xx/km8xx.c |7 - > cpu/mpc8xx/cpu_init.c|2 + > cpu/mp

Re: [U-Boot] [PATCH 22/31] mpc83xx, kmeter1, mtd: set the default partition table

2009-01-28 Thread Kim Phillips
On Wed, 28 Jan 2009 10:40:24 +0100 Heiko Schocher wrote: > diff --git a/include/configs/kmeter1.h b/include/configs/kmeter1.h > index d66ba8b..feb6150 100644 > --- a/include/configs/kmeter1.h > +++ b/include/configs/kmeter1.h > @@ -322,6 +322,11 @@ > #define CONFIG_SYS_DTT_BUS_NUM

Re: [U-Boot] [PATCH 21/31] mpc83xx, kmeter1: autodetect size of DDR II Ram.

2009-01-28 Thread Kim Phillips
On Wed, 28 Jan 2009 10:40:20 +0100 Heiko Schocher wrote: > Signed-off-by: Heiko Schocher > --- please be more verbose in your commit messages. > @@ -135,6 +128,24 @@ int fixed_sdram(void) > udelay (200); > im->ddr.sdram_cfg |= SDRAM_CFG_MEM_EN; > > + msize = CONFIG_SYS_DDR_SIZ

Re: [U-Boot] [PATCH 20/31] mpc83xx, kmeter1: extract common I2C options in keymile header

2009-01-28 Thread Kim Phillips
On Wed, 28 Jan 2009 10:40:16 +0100 Heiko Schocher wrote: > Signed-off-by: Heiko Schocher > --- > include/configs/keymile-common.h |8 > include/configs/kmeter1.h| 19 --- a lot of patches in this patchseries touch a lot of the same files - can you please r

Re: [U-Boot] [PATCH 18/31] mpc83xx, kmeter1: add I2C, dtt, eeprom support

2009-01-28 Thread Kim Phillips
On Wed, 28 Jan 2009 10:40:04 +0100 Heiko Schocher wrote: > +static int board_init_i2c_busses (void) > +{ > + I2C_MUX_DEVICE *dev = NULL; > + uchar *buf; > + > + /* Set up the Bus for the DTTs */ > + buf = (unsigned char *) getenv ("DTT_bus"); the environment is case sensitive;

Re: [U-Boot] [PATCH 07/31] mpc83xx kmeter1: change some register settings

2009-01-28 Thread Kim Phillips
On Wed, 28 Jan 2009 10:39:12 +0100 Heiko Schocher wrote: > Signed-off-by: Heiko Schocher > --- can we get a better commit title & message here please? Thanks, Kim ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-b

Re: [U-Boot] [PATCH 03/31] netloop: speed up NetLoop

2009-01-28 Thread Kim Phillips
On Wed, 28 Jan 2009 10:38:42 +0100 Heiko Schocher wrote: > +++ b/common/cmd_nvedit.c > @@ -75,7 +75,12 @@ DECLARE_GLOBAL_DATA_PTR; > static const unsigned long baudrate_table[] = CONFIG_SYS_BAUDRATE_TABLE; > #define N_BAUDRATES (sizeof(baudrate_table) / sizeof(baudrate_table[0])) > > +sta

Re: [U-Boot] [PATCH/RFC, 0/2] I2C rework -- what do you think?

2009-01-28 Thread ksi
On Wed, 28 Jan 2009, Heiko Schocher wrote: > Hello ksi, > > k...@koi8.net schrieb: >> On Tue, 27 Jan 2009, Heiko Schocher wrote: >>> k...@koi8.net wrote: Hi everyone, Here is the first draft of major I2C subsystem rework. This is not a >>> patch > [...] the new code. It is a bi

[U-Boot] [PATCH] Marvell 88E1118 interrupt fix

2009-01-28 Thread Ron Madrid
This patch adjusts the LED control so that interrupt lines are not reading LEDs and effectively causing indefinite interrupts to the controller. Signed-off-by: Ron Madrid --- drivers/net/tsec.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/net/tsec.c b/drive

[U-Boot] [PATCH] rename CONFIG_CMD_ENV to CONFIG_CMD_SAVEENV

2009-01-28 Thread Mike Frysinger
The CONFIG_CMD_ENV option controls enablement of the `saveenv` command rather than a generic "env" command, or anything else related to the environment. So, let's make sure the define is named accordingly. Signed-off-by: Mike Frysinger --- README |2 +- common/

[U-Boot] [PATCH 26/27] Blackfin: add port muxing for BF51x SPI

2009-01-28 Thread Mike Frysinger
Signed-off-by: Mike Frysinger --- board/bf537-stamp/spi_flash.c | 20 +++- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/board/bf537-stamp/spi_flash.c b/board/bf537-stamp/spi_flash.c index 99caa96..b147ce7 100644 --- a/board/bf537-stamp/spi_flash.c +++ b/board/

[U-Boot] [PATCH 27/27] Blackfin: add driver for on-chip MMC/SD controller

2009-01-28 Thread Mike Frysinger
From: Cliff Cai This is a port of the Linux Blackfin on-chip SDH driver to U-Boot. Signed-off-by: Cliff Cai Signed-off-by: Mike Frysinger --- drivers/mmc/Makefile|1 + drivers/mmc/bfin_sdh.c | 546 +++ drivers/mmc/bfin_

[U-Boot] [PATCH 21/27] Blackfin: add driver for on-chip ATAPI controller

2009-01-28 Thread Mike Frysinger
From: Sonic Zhang This is a port of the Linux Blackfin on-chip ATAPI driver to U-Boot. Signed-off-by: Sonic Zhang Signed-off-by: Mike Frysinger --- drivers/block/Makefile |1 + drivers/block/pata_bfin.c| 1201 ++ drivers/bl

[U-Boot] [PATCH 25/27] Blackfin: output booting source when booting

2009-01-28 Thread Mike Frysinger
Knowing the booting source of the part is useful, especially when the part can switch dynamically between sources. Signed-off-by: Mike Frysinger --- include/asm-blackfin/blackfin-config-pre.h | 22 ++ lib_blackfin/board.c |6 +- 2 files changed

[U-Boot] [PATCH 24/27] Blackfin: set default CONFIG_ENV_SPI_CS based on bootrom

2009-01-28 Thread Mike Frysinger
Set the default CONFIG_ENV_SPI_CS value to match the SPI CS that is used by the Blackfin on-chip bootrom to boot out of SPI flash. Signed-off-by: Mike Frysinger --- include/asm-blackfin/blackfin-config-post.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/as

[U-Boot] [PATCH 23/27] Blackfin: update asm-blackfin/posix_types.h to latest Linux version

2009-01-28 Thread Mike Frysinger
Signed-off-by: Mike Frysinger --- include/asm-blackfin/posix_types.h | 20 +--- 1 files changed, 9 insertions(+), 11 deletions(-) diff --git a/include/asm-blackfin/posix_types.h b/include/asm-blackfin/posix_types.h index 39651d2..000ffe5 100644 --- a/include/asm-blackfin/posix

[U-Boot] [PATCH 20/27] Blackfin: add driver for on-chip NAND controller

2009-01-28 Thread Mike Frysinger
This is a port of the Linux Blackfin on-chip NFC driver to U-Boot. Signed-off-by: Mike Frysinger --- drivers/mtd/nand/Makefile|1 + drivers/mtd/nand/bfin_nand.c | 376 ++ 2 files changed, 377 insertions(+), 0 deletions(-) create mode 100644 drive

[U-Boot] [PATCH 22/27] Blackfin: add port I bits

2009-01-28 Thread Mike Frysinger
Some people need to access port I, so make sure the pins are defined. Signed-off-by: Mike Frysinger --- include/asm-blackfin/mach-bf548/ports.h | 20 +++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/include/asm-blackfin/mach-bf548/ports.h b/include/asm-blac

[U-Boot] [PATCH 19/27] Blackfin: build with -mno-fdpic

2009-01-28 Thread Mike Frysinger
Use the -mno-fdpic flag so that any Blackfin toolchain can be used to build up u-boot, including ones that output FDPIC ELF by default. Signed-off-by: Mike Frysinger --- blackfin_config.mk |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/blackfin_config.mk b/blackfin_con

[U-Boot] [PATCH 18/27] Blackfin: fix up EBIU defines

2009-01-28 Thread Mike Frysinger
The EBIU defines for EBSZ 256/512 were incorrect. Signed-off-by: Mike Frysinger --- include/asm-blackfin/mach-common/bits/ebiu.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/asm-blackfin/mach-common/bits/ebiu.h b/include/asm-blackfin/mach-common/bits/ebiu.

[U-Boot] [PATCH 17/27] Blackfin: use 8/16/32 bit transfer widths in dma_memcpy()

2009-01-28 Thread Mike Frysinger
Rather than using 8bit transfers for everything, use 8/16/32 bit transfers as usable with the source/destination addresses and the count size. Signed-off-by: Mike Frysinger --- lib_blackfin/string.c | 23 +++ 1 files changed, 19 insertions(+), 4 deletions(-) diff --git a/l

[U-Boot] [PATCH 16/27] Blackfin: only flag L1 instruction for DMA memcpy

2009-01-28 Thread Mike Frysinger
The performance difference from doing an 8 bit DMA memcpy vs an optimized core memcpy can be pretty big when you add in the overhead of setting up the MDMA registers, cache flushes, etc... So only use dma_memcpy() when we actually require it. Signed-off-by: Mike Frysinger --- include/asm-blackf

[U-Boot] [PATCH 15/27] Blackfin: dma_memcpy(): fix random failures

2009-01-28 Thread Mike Frysinger
We have to make sure the DMA channel is actually disabled in hardware before attempting to reprogram it. Otherwise the new settings are ignored and we end up with random hangs/failures. Signed-off-by: Mike Frysinger --- lib_blackfin/string.c | 19 +++ 1 files changed, 11 inser

[U-Boot] [PATCH 14/27] Blackfin: rewrite cache handling functions

2009-01-28 Thread Mike Frysinger
Take the cache flush functions from the kernel as they use hardware loops in order to get optimal performance. Signed-off-by: Mike Frysinger --- cpu/blackfin/cache.S | 118 - include/asm-blackfin/blackfin_local.h |4 + lib_blackfin/cache.c

[U-Boot] [PATCH 11/27] Blackfin: enable --gc-sections

2009-01-28 Thread Mike Frysinger
Start building all Blackfin boards with -ffunction-sections/-fdata-sections and linking with --gc-sections. Signed-off-by: Mike Frysinger --- blackfin_config.mk|3 +++ cpu/blackfin/Makefile |1 + 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/blackfin_config.mk b/blac

[U-Boot] [PATCH 13/27] Blackfin: setup bi_enetaddr for single nets

2009-01-28 Thread Mike Frysinger
For systems with CONFIG_NET_MULTI disabled, bi_enetaddr does not get setup based on $ethaddr, so set it up. Signed-off-by: Mike Frysinger --- lib_blackfin/board.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/lib_blackfin/board.c b/lib_blackfin/board.c index

[U-Boot] [PATCH 12/27] Blackfin: cache core/system clock values

2009-01-28 Thread Mike Frysinger
Calculating the clocks requires a bit of calls to gcc math functions, so cache the values after the first run since they'll most likely never change once U-Boot is up and running. Signed-off-by: Mike Frysinger --- include/asm-blackfin/blackfin_local.h |2 + lib_blackfin/Makefile

[U-Boot] [PATCH 10/27] Blackfin: dont check baud if it wont actually get used

2009-01-28 Thread Mike Frysinger
Signed-off-by: Mike Frysinger --- cpu/blackfin/initcode.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/cpu/blackfin/initcode.c b/cpu/blackfin/initcode.c index e733dd2..6091f8c 100644 --- a/cpu/blackfin/initcode.c +++ b/cpu/blackfin/initcode.c @@ -61,7 +61,11 @@ st

[U-Boot] [PATCH 06/27] Blackfin: bfin_mac: convert CONFIG_BFIN_MAC_RMII to CONFIG_RMII

2009-01-28 Thread Mike Frysinger
No point in having a Blackfin-specific define "CONFIG_BFIN_MAC_RMII" that does exactly the same thing as common "CONFIG_RMII". Signed-off-by: Mike Frysinger CC: Ben Warren --- drivers/net/bfin_mac.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/bfin_mac

[U-Boot] [PATCH 09/27] Blackfin: add driver for on-chip SPI controller

2009-01-28 Thread Mike Frysinger
This fills out the SPI backend for the Blackfin on-chip SPI peripheral. Signed-off-by: Mike Frysinger --- drivers/spi/Makefile |1 + drivers/spi/bfin_spi.c | 343 2 files changed, 344 insertions(+), 0 deletions(-) create mode 100644 driver

[U-Boot] [PATCH 07/27] Blackfin: bfin_mac: cleanup pointer/casts for aliasing issues

2009-01-28 Thread Mike Frysinger
Redo how pointers are managed to get rid of ugly casts and strict pointer aliasing issues that are highlighted by gcc 4.3. Signed-off-by: Mike Frysinger CC: Ben Warren --- drivers/net/bfin_mac.c | 75 +++ drivers/net/bfin_mac.h |5 ++- 2 files c

[U-Boot] [PATCH 08/27] Blackfin: only build post code when CONFIG_POST

2009-01-28 Thread Mike Frysinger
Save some time by using CONFIG_POST in the Makefile rather than C files. Signed-off-by: Mike Frysinger --- lib_blackfin/Makefile |3 +-- lib_blackfin/post.c |4 lib_blackfin/tests.c |3 --- 3 files changed, 1 insertions(+), 9 deletions(-) diff --git a/lib_blackfin/Makefile b

[U-Boot] [PATCH 03/27] Blackfin: bfin_mac: cleanup MII/PHY functions

2009-01-28 Thread Mike Frysinger
Cleanup and rewrite the MII/PHY related functions so that we can reuse the existing common linux/miiphy.h code and hook into the `mii` command. Signed-off-by: Mike Frysinger CC: Ben Warren --- drivers/net/bfin_mac.c | 284 +++- drivers/net/bfin_mac.h

[U-Boot] [PATCH 05/27] Blackfin: bfin_mac: use common debug()

2009-01-28 Thread Mike Frysinger
Rather then defining our own DEBUGF(), just use the common debug(). Signed-off-by: Mike Frysinger CC: Ben Warren --- drivers/net/bfin_mac.c | 14 +++--- 1 files changed, 3 insertions(+), 11 deletions(-) diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c index b875937..c14b5

[U-Boot] [PATCH 04/27] Blackfin: bfin_mac: respect CONFIG_PHY_{ADDR, CLOCK_FREQ}

2009-01-28 Thread Mike Frysinger
Rather than having the on-chip MAC hardcoded to phy address 1 and a speed of 2.5mhz, use these ase defaults if the board doesn't specify otherwise. Signed-off-by: Mike Frysinger CC: Ben Warren --- drivers/net/bfin_mac.c | 15 +++ drivers/net/bfin_mac.h |1 - 2 files changed, 1

[U-Boot] [PATCH 02/27] Blackfin: bfin_mac: set MDCDIV based on SCLK

2009-01-28 Thread Mike Frysinger
Rather than hardcoding MDCDIV to 24 (which is correct for ~125mhz SCLK), use the real algorithm so it gets set correctly regardless of SCLK. Signed-off-by: Mike Frysinger CC: Ben Warren --- drivers/net/bfin_mac.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/

[U-Boot] [PATCH 00/27] Blackfin updates for 2009.03 (part 2)

2009-01-28 Thread Mike Frysinger
A few more simple bug fixes, but now we get some fun stuff too: - major cleanup of the Blackfin on-chip MAC driver - new driver for Blackfin on-chip NAND controller - new driver for Blackfin on-chip ATAPI controller - new driver for Blackfin on-chip SDIO controller - improve cache performance

[U-Boot] [PATCH 01/27] Blackfin: bfin_mac: force board_get_enetaddr() usage

2009-01-28 Thread Mike Frysinger
Since the on-chip MAC does not have an eeprom or similar interface, force all Blackfin boards that use this to define their own board_get_enetaddr() function. Signed-off-by: Mike Frysinger CC: Ben Warren --- drivers/net/bfin_mac.c | 24 +++- include/common.h |2 +

[U-Boot] [PATCH] Exclude certain ns16550 functions from NAND_SPL builds

2009-01-28 Thread Ron Madrid
This patch will exclude all functions from drivers/serial/ns16550.c from NAND_SPL builds with exception of NS16550_putc and NS16550_init. This will save space and remove unused code from already tightly constrained bootstrap images for NAND_SPL builds. Signed-off-by: Ron Madrid --- drivers/seri

Re: [U-Boot] [PATCH v2 5/9] AVR32: macb - Disable 100mbps if clock is slow

2009-01-28 Thread Jean-Christophe PLAGNIOL-VILLARD
>> >>> > This patch makes it possible to limit the macb to 10 MBit for this > case. We are open for suggestions for other solutions. I guest you may need to disable the phy auto config mode and force him to be see as a 10Mbps phy evenif it's a 10/100

Re: [U-Boot] [PATCH v2 5/9] AVR32: macb - Disable 100mbps if clock is slow

2009-01-28 Thread Ben Warren
Jean-Christophe PLAGNIOL-VILLARD wrote: > On 22:42 Wed 28 Jan , Haavard Skinnemoen wrote: > >> Jean-Christophe PLAGNIOL-VILLARD wrote: >> On the EVK1100 board, the CPU (UC3A0512) is connected to the PHY via an RMII bus. This requires the CPU clock to be at least 50 MHz. U

Re: [U-Boot] [PATCH v2 5/9] AVR32: macb - Disable 100mbps if clock is slow

2009-01-28 Thread Jean-Christophe PLAGNIOL-VILLARD
On 22:42 Wed 28 Jan , Haavard Skinnemoen wrote: > Jean-Christophe PLAGNIOL-VILLARD wrote: > > > On the EVK1100 board, the CPU (UC3A0512) is connected to the PHY via an > > > RMII bus. This requires the CPU clock to be at least 50 MHz. > > > Unfortunately, the chip on current EVK1100 boards may

Re: [U-Boot] Coldfire: Compiler warnings when building M5271EVB

2009-01-28 Thread Richard Retanubun
Hi Tsi Chung, Liew Tsi Chung-R5AAHP wrote: > Richard, > > This error caused by no defines for CONFIG_SYS_CS0_BASE, > CONFIG_SYS_CS0_MASK and CONFIG_SYS_CS0_CTRL in configuration file. Need > to provide settings for each. The CS0 usually refer to the boot flash. > > Flexbus or chipselect is the s

[U-Boot] [PATCH 1/1] move ARM Ltd. to verdor dir

2009-01-28 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- Makefile |6 +++--- board/armltd/.gitignore|2 ++ board/{ => armltd}/integratorap/Makefile |0 board/{ => armltd}/integratorap/config.mk |0

Re: [U-Boot] IP_t should be a "packed" struct

2009-01-28 Thread Luigi Mantellini
Dear Wolfgang, 2009/1/28 Wolfgang Denk : > Dear Luigi Mantellini, > > In message you > wrote: >> >> I think that an audit of the code is important to understand if we >> have a problem (or not) and how large is the problem. > > We (i. e. all of us except you) do not have a problem. my question

Re: [U-Boot] [PATCH] mpc83xx: fix undefined reference to `flush_cache' error in simpc8313 build

2009-01-28 Thread Ron Madrid
--- On Wed, 1/28/09, Scott Wood wrote: > From: Scott Wood > Subject: Re: [U-Boot] [PATCH] mpc83xx: fix undefined reference to > `flush_cache' error in simpc8313 build > To: ron_mad...@sbcglobal.net > Cc: "Wolfgang Denk" , u-boot@lists.denx.de, "Kim Phillips" > > Date: Wednesday, January 28, 2

[U-Boot] proper changelog formatting

2009-01-28 Thread Mike Frysinger
Michael: could you make sure your patch changelogs follow proper git style in the future ? these two commits have broken formatting with the subject and so look messed up when looking at short history: 51ab142b8b546d5e627b2c8c36d0adae222565f7 db63299b1dd2894ade542278210bccd046de6435 -mike sign

Re: [U-Boot] IP_t should be a "packed" struct

2009-01-28 Thread Wolfgang Denk
Dear Luigi Mantellini, In message you wrote: > > I think that an audit of the code is important to understand if we > have a problem (or not) and how large is the problem. We (i. e. all of us except you) do not have a problem. > My compiler is not broken... Well, YMMV... > cassini linux # f

Re: [U-Boot] [PATCH] mpc83xx: fix undefined reference to `flush_cache' error in simpc8313 build

2009-01-28 Thread Scott Wood
Ron Madrid wrote: > It would seem that the drivers/serial/ns16550.c file currently being > included in my project has a few functions that are completely unused > by my board. Is it allowable to duplicate the two functions I do use > (NS16550_putc and NS16550_init) in my code within a #ifdef CONFI

Re: [U-Boot] [PATCH] mpc83xx: fix undefined reference to `flush_cache' error in simpc8313 build

2009-01-28 Thread Ron Madrid
--- On Wed, 1/28/09, Scott Wood wrote: > From: Scott Wood > Subject: Re: [U-Boot] [PATCH] mpc83xx: fix undefined reference to > `flush_cache' error in simpc8313 build > To: "Wolfgang Denk" > Cc: ron_mad...@sbcglobal.net, u-boot@lists.denx.de, "Kim Phillips" > > Date: Wednesday, January 28, 2

Re: [U-Boot] IP_t should be a "packed" struct

2009-01-28 Thread Wolfgang Denk
Dear Ben, In message <4980d38f.4020...@gmail.com> you wrote: > > > Here is for example a copy of /usr/include/netinet/ip.h : ... > > struct iphdr ... > Yeah, I made the same observation, but am not fluent enough in the black > magic of Linux header files to know if packing was being enforced > s

Re: [U-Boot] [PATCH] include/image.h: Use explicit function definitions instead of macro trickery

2009-01-28 Thread Wolfgang Denk
Dear Mike Frysinger, In message <200901281647.54413.vap...@gentoo.org> you wrote: > > Petri: > if you're worried about grepping, then perhaps you'd post a patch like so: > -image_get_hdr_l (dcrc); > +image_get_hdr_l (dcrc); /* image_get_dcrc() */ Excellent idea! Best regards, Wolfgang Denk --

Re: [U-Boot] IP_t should be a "packed" struct

2009-01-28 Thread Luigi Mantellini
Dear All, 2009/1/28 Wolfgang Denk : > Dear Ben Warren, > > In message <4980cc59.1070...@gmail.com> you wrote: >> >> > My idea should be to declare a define like this >> > >> > #define PKT_HEADER __attribute__((__packed__)) >> > >> > my 2EuroCents. >> > >> > best regards, >> > >> > luigi >> > >> >

[U-Boot] [PATCH v2] 85xx: Fix compile breakage with sbc8540 and sbc8560

2009-01-28 Thread Wolfgang Denk
This fixes an error which raises just a warning: sbc8560.c:250: warning: passing argument 2 of 'strmhz' makes integer from pointer without a cast Signed-off-by: Wolfgang Denk --- v2: fix typo in Subject board/sbc8560/sbc8560.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff -

[U-Boot] [PATCH] 85xx: Fix compile breakage with sbc850 and sbc8560

2009-01-28 Thread Wolfgang Denk
This fixes an error which raises just a warning: sbc8560.c:250: warning: passing argument 2 of 'strmhz' makes integer from pointer without a cast Signed-off-by: Wolfgang Denk --- board/sbc8560/sbc8560.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/board/sbc8560/sbc8

Re: [U-Boot] IP_t should be a "packed" struct

2009-01-28 Thread Ben Warren
Wolfgang Denk wrote: > Dear Ben Warren, > > In message <4980cc59.1070...@gmail.com> you wrote: > >>> My idea should be to declare a define like this >>> >>> #define PKT_HEADER __attribute__((__packed__)) >>> >>> my 2EuroCents. >>> >>> best regards, >>> >>> luigi >>> >>> >>> >> OK, soun

Re: [U-Boot] [PATCH] include/image.h: Use explicit function definitions instead of macro trickery

2009-01-28 Thread Mike Frysinger
On Wednesday 28 January 2009 16:20:13 Wolfgang Denk wrote: > Petri Lehtinen wrote: > > I got frustrated while grepping through the sources, trying to find > > the definitions of these functions. Thinking back, the obvious place > > to look in the first place would of course have been include/image.

Re: [U-Boot] Coldfire: Compiler warnings when building M5271EVB

2009-01-28 Thread Liew Tsi Chung-R5AAHP
Richard, This error caused by no defines for CONFIG_SYS_CS0_BASE, CONFIG_SYS_CS0_MASK and CONFIG_SYS_CS0_CTRL in configuration file. Need to provide settings for each. The CS0 usually refer to the boot flash. Flexbus or chipselect is the same definition. Regards, TsiChung -Original Message

Re: [U-Boot] [PATCH v2 5/9] AVR32: macb - Disable 100mbps if clock is slow

2009-01-28 Thread Haavard Skinnemoen
Jean-Christophe PLAGNIOL-VILLARD wrote: > > On the EVK1100 board, the CPU (UC3A0512) is connected to the PHY via an > > RMII bus. This requires the CPU clock to be at least 50 MHz. > > Unfortunately, the chip on current EVK1100 boards may be unable to run > > at more than 50 MHz, and with the oscil

Re: [U-Boot] IP_t should be a "packed" struct

2009-01-28 Thread Wolfgang Denk
Dear Ben Warren, In message <4980cc59.1070...@gmail.com> you wrote: > > > My idea should be to declare a define like this > > > > #define PKT_HEADER __attribute__((__packed__)) > > > > my 2EuroCents. > > > > best regards, > > > > luigi > > > > > OK, sounds good. Send a patch please. Hm... and

[U-Boot] 405EP U-boot/Linux Question (CFG_OCM_DATA_ADDR)

2009-01-28 Thread Pawel Pastuszak
Hi guys, I was wondering if some one could give me an hand with OCM for PPC405EP So my goal is to Access *CFG_BOOTCOUNT_ADDR *value in Linux based on http://www.denx.de/wiki/view/DULG/UBootBootCountLimit In u-boot it works fine but ... but how to i talk to this memory range in linux. I tried th

Re: [U-Boot] IP_t should be a "packed" struct

2009-01-28 Thread Wolfgang Denk
Dear Luigi Mantellini, In message you wrote: > > > I'd focus on fixing your toolchain. Your problem will not be confined to > > protocol headers. > > my toolchain works fine ;) Except that it adds padding where it doesn't make sense. I think you want to fix it. Best regards, Wolfgang Denk

Re: [U-Boot] [PATCH 0/5 v2] Command usage cleanup

2009-01-28 Thread Peter Tyser
Hi Wolfgang, On Wed, 2009-01-28 at 22:15 +0100, Wolfgang Denk wrote: > Dear Peter Tyser, > > In message <1233100992-30871-1-git-send-email-pty...@xes-inc.com> you wrote: > > Changes since v1: > > - Rebase on top of tree > > Are you sure? > > > This patch series attempts to clean up how the "usa

Re: [U-Boot] [PATCH] SPD823TS: do not define CONFIG_CMD_ENV

2009-01-28 Thread Wolfgang Denk
Dear Mike Frysinger, In message <200901281354.18466.vap...@gentoo.org> you wrote: > > btw, i find the "CONFIG_CMD_ENV -> saveenv" bindings a bit confusing. any > qualms with doing a giant sed to convert it to CONFIG_CMD_SAVEENV ? > sed -i 's:CONFIG_CMD_ENV\>:CONFIG_CMD_SAVEENV:g' \ > includ

Re: [U-Boot] [PATCH] SPD823TS: do not define CONFIG_CMD_ENV

2009-01-28 Thread Wolfgang Denk
Dear Mike Frysinger, In message <1233168535-16153-1-git-send-email-vap...@gentoo.org> you wrote: > Since the SPD823TS board does not actually have any writable flash to save > its environment, undefine CONFIG_CMD_ENV so the "saveenv" command is > disabled. > > This fixes the build error: > common

Re: [U-Boot] IP_t should be a "packed" struct

2009-01-28 Thread Ben Warren
Luigi Mantellini wrote: > Dear All > > From my point of view, when packing is formally required (ie packets > headers), the structs should be declared explicitly as __packed__. The > correctness of the object code should be independent from the compiler > optimizations and we should always remember

Re: [U-Boot] [PATCH] include/image.h: Use explicit function definitions instead of macro trickery

2009-01-28 Thread Wolfgang Denk
Dear Petri Lehtinen, In message <1233125286-29550-1-git-send-email-petri.lehti...@inoi.fi> you wrote: > Signed-off-by: Petri Lehtinen > --- > > I got frustrated while grepping through the sources, trying to find > the definitions of these functions. Thinking back, the obvious place > to look in

Re: [U-Boot] [PATCH 0/5 v2] Command usage cleanup

2009-01-28 Thread Wolfgang Denk
Dear Peter Tyser, In message <1233100992-30871-1-git-send-email-pty...@xes-inc.com> you wrote: > Changes since v1: > - Rebase on top of tree Are you sure? > This patch series attempts to clean up how the "usage" field > of the cmd_tbl_s structure is used. It does 3 things: > 1. Adds a cmd_usage

Re: [U-Boot] [PATCH v3] Add 16bpp BMP support

2009-01-28 Thread Wolfgang Denk
Dear Mark Jackson, In message <497f1732.6050...@mimc.co.uk> you wrote: > This patch adds 16bpp BMP support to the common lcd code. > > Use CONFIG_BMP_16BPP and set LCD_BPP to LCD_COLOR16 to enable the code. > > At the moment it's only been tested on the MIMC200 AVR32 board, but extending > this

Re: [U-Boot] [PATCH] Add support for the digsy MTC board.

2009-01-28 Thread Wolfgang Denk
Dear Grzegorz, In message <12331552753467-git-send-email-...@semihalf.com> you wrote: > This is the InterControl custom device based on the MPC5200B chip. ... General comment: there is a lot of code which could use a few comments so the reader has a chance to understand what exactly you are doing

Re: [U-Boot] IP_t should be a "packed" struct

2009-01-28 Thread Luigi Mantellini
2009/1/28 Ben Warren : .. > I'd focus on fixing your toolchain. Your problem will not be confined to > protocol headers. my toolchain works fine ;) -- Luigi 'Comio' Mantellini R&D - Software Industrie Dial Face S.p.A. Via Canzo, 4 20068 Peschiera Borromeo (MI), Italy Tel.: +39 02 5167 2813

Re: [U-Boot] IP_t should be a "packed" struct

2009-01-28 Thread Luigi Mantellini
Dear All >From my point of view, when packing is formally required (ie packets headers), the structs should be declared explicitly as __packed__. The correctness of the object code should be independent from the compiler optimizations and we should always remember that the offset of a struct field

Re: [U-Boot] [PATCH 30/31] 8xx, km8xx: update in dts node "flash", the reg value correct.

2009-01-28 Thread Wolfgang Denk
Dear Heiko Schocher, please chose a better Subject. In message <4980282a.5010...@denx.de> you wrote: > + ulong flash_reg[3] = {0}; > > memory_data[0] = cpu_to_be32 (bd->bi_memstart); > memory_data[1] = cpu_to_be32 (bd->bi_memsize); > @@ -184,6 +185,10 @@ void ft_blob_update (voi

[U-Boot] [PATCH] ppc4xx: Clean up configuration file for Korat board

2009-01-28 Thread Larry Johnson
This patch updates the default environmental variables for the Korat PPC 440EPx board, and makes additional minor fixes. Signed-off-by: Larry Johnson --- include/configs/korat.h | 84 --- 1 files changed, 50 insertions(+), 34 deletions(-) diff --git

[U-Boot] [PATCH] ppc4xx: Add variable "korat_usbcf" for Korat board

2009-01-28 Thread Larry Johnson
The new environment variable "korat_usbcf" selects the USB port used by the Korat board's CompactFlash controller. Signed-off-by: Larry Johnson --- board/korat/korat.c | 23 ++- doc/README.korat| 14 ++ 2 files changed, 36 insertions(+), 1 deletions(-) di

Re: [U-Boot] [PATCH 27/31] 8xx, mgsuvd: rename board to a more generic name

2009-01-28 Thread Wolfgang Denk
Dear Heiko Schocher, In message <4980281e.2040...@denx.de> you wrote: > renaming the "mgsuvd" board port into "km8xx", because there will > come more similar boards from keymile. > Compiling the mgsuvd board with "make mgsuvd_config" remains. > > Signed-off-by: Heiko Schocher > --- > Makefile

Re: [U-Boot] [PATCH 22/31] mpc83xx, kmeter1, mtd: set the default partition table

2009-01-28 Thread Wolfgang Denk
Dear Heiko Schocher, In message <49802808.4050...@denx.de> you wrote: > > Signed-off-by: Heiko Schocher > --- > include/configs/kmeter1.h |9 + > 1 files changed, 9 insertions(+), 0 deletions(-) > > diff --git a/include/configs/kmeter1.h b/include/configs/kmeter1.h > index d66ba8b.

Re: [U-Boot] [PATCH] mpc83xx: fix undefined reference to `flush_cache' error in simpc8313 build

2009-01-28 Thread Scott Wood
Wolfgang Denk wrote: > It fails for me, too, but differently: > > -> ./MAKEALL SIMPC8313_LP > ...Large Page NAND...Configuring for SIMPC8313 board... > ppc_5xx-ld: NAND bootstrap too big > ppc_5xx-ld: NAND bootstrap too big > make[1]: *** [/home/wd/git/u-boot/work/nand_spl/u-boot-spl] Error 1 > ma

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

2009-01-28 Thread Wolfgang Denk
Dear Remy Bohmer, In message <3efb10970901281141p25db7d5ao7e2c2f4c43c1a...@mail.gmail.com> you wrote: > The following changes since commit > 2b6fd5c77db9c6ed3cea9799c86ff922cf0107b2: > Kim Phillips (1): > mpc83xx: fix undefined reference to `flush_cache' error in > simpc8313 build > >

Re: [U-Boot] Pull request u-boot-blackfin.git

2009-01-28 Thread Wolfgang Denk
Dear Mike Frysinger, In message <1233167355-5901-1-git-send-email-vap...@gentoo.org> you wrote: > The following changes since commit 2b6fd5c77db9c6ed3cea9799c86ff922cf0107b2: > Kim Phillips (1): > mpc83xx: fix undefined reference to `flush_cache' error in simpc8313 > build > > are avai

  1   2   3   >