Re: [U-Boot] compiled failed when turned off gcc optimazition

2013-07-02 Thread Mike Dunn
On 07/01/2013 12:51 PM, Wolfgang Denk wrote: > Dear Mike Dunn, > > In message <51d1c455.9010...@newsguy.com> you wrote: >> >> But there's a good motivation for wanting to turn off optimization. > > I disagree here. If you are hunting down a problem, you

Re: [U-Boot] compiled failed when turned off gcc optimazition

2013-07-01 Thread Mike Dunn
On 07/01/2013 04:37 AM, Wolfgang Denk wrote: > Dear tiger...@viatech.com.cn, > > please do not top post / full quote. > > In message > you wrote: >> >> During debug u-boot with JTAG tools, maybe turning off optimizations was >> recommended. > > Many people recommend many things. Even strange

[U-Boot] [PATCH] mtd/nand: docg4: fix compiler warnings

2013-06-26 Thread Mike Dunn
Newer gcc versions warn about unused variables. This patch corrects a few of those warnings that popped up in a build for the palmtreo680 board. Signed-off-by: Mike Dunn --- drivers/mtd/nand/docg4_spl.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a

[U-Boot] [PATCH] usb: pxa27x_udc: fix compiler warnings

2013-06-26 Thread Mike Dunn
Newer gcc versions warn about unused variables. This patch corrects a few of those warnings that popped up in a build for the palmtreo680 board. Signed-off-by: Mike Dunn --- drivers/usb/gadget/pxa27x_udc.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a

[U-Boot] [PATCH] pxa: fix compiler warnings about unused variables

2013-06-24 Thread Mike Dunn
Newer gcc versions warn about unused variables. This patch corrects a few of those warnings that popped up in a pxa build. Signed-off-by: Mike Dunn --- drivers/mtd/nand/docg4_spl.c| 15 +++ drivers/usb/gadget/pxa27x_udc.c | 14 +- 2 files changed, 12 insertions

Re: [U-Boot] [PULL] u-boot-pxa/master

2013-06-23 Thread Mike Dunn
On 06/23/2013 03:13 AM, Albert ARIBAUD wrote: > Hi Marek, > >>> FYI, I am using the ARM cross-toolchain available in my Ubuntu 13.04. >> >> For some reason, I feel the linaro ones were always stuffed with >> experimental >> and semi-broken stuff :-( > > Maybe they were; all I can say is, the Ub

Re: [U-Boot] [PULL] u-boot-pxa/master

2013-06-22 Thread Mike Dunn
: fix memory coherency problem after relocation (2013-06-22 15:25:28 >> +0200) >> >> >> Mike Dunn (5): >> pxa: add support for palmtreo680 board >> pxa: palmtreo680 flash programming utility >> pxa: turn icache off in cpu_init_crit() &

[U-Boot] [PATCH 1/2] pxa: use -mcpu=xscale compiler option

2013-06-21 Thread Mike Dunn
Pass '-mcpu=xscale' to the compiler instead of march and mtune. This will cause gcc to define the __XSCALE__ macro. Signed-off-by: Mike Dunn --- arch/arm/cpu/pxa/config.mk |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/cpu/pxa/config.mk b/arch/a

[U-Boot] [PATCH 2/2] pxa: fix memory coherency problem after relocation

2013-06-21 Thread Mike Dunn
On the xscale, the icache must be invalidated and the write buffers drained after writing code over the data bus, even if the caches are disabled. Tested on the pxa270. Signed-off-by: Mike Dunn --- arch/arm/lib/relocate.S |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff

[U-Boot] [PATCH 0/2] pxa: fix memory coherency problem after relocation

2013-06-21 Thread Mike Dunn
operations are performed before jumping to the relocated code. Whether other cores need a similiar operation after code relocation remains an open question. Thanks Albert. Mike Dunn (2): pxa: use -mcpu=xscale compiler option pxa: fix memory coherency problem after relocation arch/arm/cpu

Re: [U-Boot] [PATCH] arm: fix memory coherency problem after relocation

2013-06-20 Thread Mike Dunn
On 06/20/2013 06:56 AM, Marek Vasut wrote: > Dear Mike Dunn, > >> On the xscale, the icache must be invalidated and the write buffers drained >> after writing code over the data bus, even if the caches are disabled. >> After rebasing with the main git repository, u-bo

[U-Boot] [PATCH v6 2/2] pxa: palmtreo680 flash programming utility

2013-06-18 Thread Mike Dunn
integrated flash controller's "reliable mode" is used, requiring that alternate 2k regions (4 pages) are skipped when writing. For these reasons, a u-boot image can not be written using nandwrite from mtd-utils. Signed-off-by: Mike Dunn --- Changelog: v6: no change v5: on

[U-Boot] [PATCH v6 0/2] pxa: add support for palmtreo680 board

2013-06-18 Thread Mike Dunn
weeks ago, but I must have been mistaken. Sorry. I would have labeled these patches RESEND, but since I submitted v5 I learned that README files now go into the board/ directory, so I made that change and called it v6. Each patch contains its full changelog. Thanks! Mike Dunn (2): pxa: add su

[U-Boot] [PATCH v6 1/2] pxa: add support for palmtreo680 board

2013-06-18 Thread Mike Dunn
e, it does display the auto-boot progress nicely. Signed-off-by: Mike Dunn --- Changelog: v6: mv doc/README.palmtreo680 board/palmtreo680/README v5: do not use a custom linker script for spl build v4: - use CONFIG_MACH_TYPE instead of MACH_TYPE_TREO680 to initialize bi_arch_number

Re: [U-Boot] [PATCH] mtd: nand/docg4: fix driver after Linux resync

2013-06-18 Thread Mike Dunn
On 06/17/2013 03:29 PM, Scott Wood wrote: > On 06/17/2013 12:44:55 PM, Mike Dunn wrote: >> Commit dfe64e2c89731a3f9950d7acd8681b68df2bae03: >> >> mtd: resync with Linux-3.7.1 >> >> broke the docg4 driver. Specifically: >> - some of the prototyp

[U-Boot] [PATCH] arm: fix memory coherency problem after relocation

2013-06-17 Thread Mike Dunn
ran. This patch fixes it. Cache coherency problems are often hit-and-miss (ha ha), and this latent problem didn't rear its ugly head until now. Tested on the pxa270. Signed-off-by: Mike Dunn --- I realize that __ARM_ARCH_5TE__ does not necessarily mean xscale. But how else to test for p

[U-Boot] [PATCH] pxa: turn icache off in cpu_init_crit()

2013-06-17 Thread Mike Dunn
The comment in the low-level initialization function cpu_init_crit() says that the caches are being disabled, but (oddly) the icache is actually turned on. This is probably not a good idea prior to relocating code, so this patch turns it off. Tested on the pxa270. Signed-off-by: Mike Dunn

[U-Boot] [PATCH] mtd: nand/docg4: fix driver after Linux resync

2013-06-17 Thread Mike Dunn
docg4 on my palmtre680 board. Signed-off-by: Mike Dunn --- drivers/mtd/nand/docg4.c | 26 ++ 1 files changed, 14 insertions(+), 12 deletions(-) diff --git a/drivers/mtd/nand/docg4.c b/drivers/mtd/nand/docg4.c index 7dd9953..09f01c8 100644 --- a/drivers/mtd/nand/docg4.c

Re: [U-Boot] [PATCH] arm: pxa: PXA270 D-Cache as ram

2013-05-23 Thread Mike Dunn
the current >>>> project. Faster boot is always a good thing. Thanks for explaining in >>>> details. >>> >>> Sure, yet I think I just piled work onto you ;-) >> >> It's OK. I have plans to do th

[U-Boot] [PATCH v5] add support for the palm treo 680 board

2013-04-20 Thread Mike Dunn
ned-off-by: Mike Dunn --- Changelog: v5: do not use a custom linker script for spl build v4: - use CONFIG_MACH_TYPE instead of MACH_TYPE_TREO680 to initialize bi_arch_number - use offset from CONFIG_SYS_DRAM_BASE to initialize bi_boot_params, instead of hard-coding an absolu

Re: [U-Boot] [PATCH v5] palmtreo680: add utility that writes u-boot to flash

2013-04-20 Thread Mike Dunn
On 04/20/2013 11:01 AM, Marek Vasut wrote: > Dear Mike Dunn, > >> On 04/20/2013 03:25 AM, Marek Vasut wrote: >>> Dear Mike Dunn, >>> >>> >>> I fixed the calloc() semantics and applied, thanks. Please repost >>> whatever is still missi

Re: [U-Boot] [PATCH v5] palmtreo680: add utility that writes u-boot to flash

2013-04-20 Thread Mike Dunn
On 04/20/2013 03:25 AM, Marek Vasut wrote: > Dear Mike Dunn, > > > I fixed the calloc() semantics and applied, thanks. Please repost whatever is > still missing in u-boot-pxa/master and I'll then roll pullRQ for mainline. Oops, the board support patch is not in your tree

[U-Boot] [PATCH RESEND] arm: bootm: call udc_disable() before booting linux

2013-04-20 Thread Mike Dunn
On the pxa270, if the udc device is not disabled before jumping to linux, the device fails to initialize in linux because it was left in a running state, and the linux driver assumes that it is in a disabled state. Signed-off-by: Mike Dunn --- Arguably, this is a bug in the linux driver, but it

Re: [U-Boot] [PATCH v5] palmtreo680: add utility that writes u-boot to flash

2013-04-20 Thread Mike Dunn
On 04/20/2013 03:25 AM, Marek Vasut wrote: > Dear Mike Dunn, [...] > > I fixed the calloc() semantics and applied, thanks. Please repost whatever is > still missing in u-boot-pxa/master and I'll then roll pullRQ for mainline. Thanks Marek. Now I see your point regarding c

[U-Boot] [PATCH v5] palmtreo680: add utility that writes u-boot to flash

2013-04-19 Thread Mike Dunn
integrated flash controller's "reliable mode" is used, requiring that alternate 2k regions (4 pages) are skipped when writing. For these reasons, a u-boot image can not be written using nandwrite from mtd-utils. Signed-off-by: Mike Dunn --- Changelog: v5: on error, return sen

Re: [U-Boot] [PATCH v4] palmtreo680: add utility that writes u-boot to flash

2013-04-18 Thread Mike Dunn
On 04/18/2013 06:54 AM, Marek Vasut wrote: > Dear Mike Dunn, > > [...] > >> +if (argc != 3) { >> +printf("usage: %s \n", argv[0]); > > btw is this /dev/mtdX or /dev/mtdblockX ? /dev/mtdx You must have defined a partition that starts at

[U-Boot] [PATCH v4] palmtreo680: add utility that writes u-boot to flash

2013-04-16 Thread Mike Dunn
integrated flash controller's "reliable mode" is used, requiring that alternate 2k regions (4 pages) are skipped when writing. For these reasons, a u-boot image can not be written using nandwrite from mtd-utils. Signed-off-by: Mike Dunn --- Changelog: v4: - use return

Re: [U-Boot] [PATCH v3 8/8] palmtreo680: add utility that writes u-boot to flash

2013-04-16 Thread Mike Dunn
Thanks again Marek. A question below... On 04/14/2013 10:38 AM, Marek Vasut wrote: [...] >> + >> +if (argc != 3) { >> +printf("usage: %s \n", argv[0]); >> +exit(-1); > > Use proper errno and "return" as you're returning from main() anyway. Agreed regarding 're

[U-Boot] [PATCH v4] add support for the palm treo 680 board

2013-04-16 Thread Mike Dunn
ned-off-by: Mike Dunn --- Changelog: v4: - use CONFIG_MACH_TYPE instead of MACH_TYPE_TREO680 to initialize bi_arch_number - use offset from CONFIG_SYS_DRAM_BASE to initialize bi_boot_params, instead of hard-coding an absolute address - use shift operator to set one bit when in

Re: [U-Boot] [PATCH v3 7/8] add support for palm treo 680 board

2013-04-15 Thread Mike Dunn
On 04/15/2013 11:33 AM, Marek Vasut wrote: > Dear Mike Dunn, > > [...] > >>>> +#ifdef CONFIG_SPL_BUILD >>>> +void *memcpy(void *dest, const void *src, size_t count) >>>> +{ >>> >>> CONFIG_SPL_LIBCOMMON_SUPPORT shall give you memcp

Re: [U-Boot] [PATCH v3 7/8] add support for palm treo 680 board

2013-04-15 Thread Mike Dunn
On 04/14/2013 10:34 AM, Marek Vasut wrote: > Dear Mike Dunn, > > [...] > >> +int board_init(void) >> +{ >> +/* We have RAM, disable cache */ >> +dcache_disable(); >> +icache_disable(); >> + >> +gd->bd->bi_arch_numb

Re: [U-Boot] [PATCH v2 0/7] palm treo 680 smartphone board support

2013-04-14 Thread Mike Dunn
On 04/14/2013 10:44 AM, Marek Vasut wrote: > Hi Mike, > >> Hi, >> >> This patchset adds support for the Palm Treo 680 smartphone. I had to make >> some minor tweaks to u-boot to get things working. Most of these changes >> are small, and most only touch the pxa arch. >> >> Thanks for looking. >

[U-Boot] [PATCH v3 7/8] add support for palm treo 680 board

2013-04-12 Thread Mike Dunn
ned-off-by: Mike Dunn --- Changelog: v3: flash_u-boot utility split into separate patch v2: - tabs removed in #defines in palmtreo680.h - utility for programming u-boot to flash moved to tools/palmtreo680 CREDITS |4 + MAINTAINERS

[U-Boot] [PATCH v3 6/8] mtd: nand: add driver for diskonchip g4 nand flash

2013-04-12 Thread Mike Dunn
3.4 commit 570469f3bde7f71cc1ece07a18d54a05b6a8775d] Signed-off-by: Mike Dunn --- Changelog: v3: replace dbg macro with MTDDEBUG v2: remove commented-out code drivers/mtd/nand/Makefile|2 + drivers/mtd/nand/docg4.c | 1028 ++ drivers/mtd/nand

[U-Boot] [PATCH v3 8/8] palmtreo680: add utility that writes u-boot to flash

2013-04-12 Thread Mike Dunn
integrated flash controller's "reliable mode" is used, requiring that alternate 2k regions (4 pages) are skipped when writing. For these reasons, a u-boot image can not be written using nandwrite from mtd-utils. Signed-off-by: Mike Dunn --- Changelog: v3: new patch; split off fro

[U-Boot] [PATCH v3 4/8] arm: bootm: call udc_disable() before booting linux

2013-04-12 Thread Mike Dunn
On the pxa270, if the udc device is not disabled before jumping to linux, the device fails to initialize in linux because it was left in a running state, and the linux driver assumes that it is in a disabled state. Signed-off-by: Mike Dunn --- Changelog: v3: no change v2: no change Arguably

[U-Boot] [PATCH 5/8] lib: import bitrev library from the linux kernel

2013-04-12 Thread Mike Dunn
] [originally added: v2.6.20 by commit a5cfc1ec58a07074dacb6aa8c79eff864c966d12] Signed-off-by: Mike Dunn --- Changelog: v3: no change v2: remove 'extern' from function prototypes in bitrev.h include/linux/bitrev.h | 23 ++ lib/Makefile |1 + li

[U-Boot] [PATCH v3 2/8] pxa_lcd: make lcd_enable() a weak pointer

2013-04-12 Thread Mike Dunn
Make lcd_init() a weak pointer so that boards can overload it if necessary. The palmtreo680 board needs to wiggle some gpios and configure the pwm controller in order to get the lcd and its backlight working. Signed-off-by: Mike Dunn --- Changelog: v3: no change v2: - use __weak macro

[U-Boot] [PATCH v3 3/8] pxa27x_udc: remove call to unimplemented set_GPIO_mode()

2013-04-12 Thread Mike Dunn
It is invoked no where else in the code. While I was at it, I noticed that two other function prototypes in the same header file are also neither implemented nor invoked anywhere, so I removed them as well. Signed-off-by: Mike Dunn --- Changelog: v3: no change v2: no change arch/arm/includ

[U-Boot] [PATCH v3 0/8] palm treo 680 smartphone board support

2013-04-12 Thread Mike Dunn
e(), which runs after the driver initialization - userland utility for programming u-boot to flash moved to tools/palmtreo680 - commit message for patches that add bitrev library and docg4 driver contain the commit and linux version for when the code was added to linux Mike Dunn (8): pxa_lc

[U-Boot] [PATCH v3 1/8] pxa_lcd: add the ACX544AKN lcd device

2013-04-12 Thread Mike Dunn
This adds the definitions required to support the LCD device on the Palm Treo 680. Signed-off-by: Mike Dunn --- Changelog: v3: no change v2: no change drivers/video/pxa_lcd.c | 32 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/drivers/video

Re: [U-Boot] [PATCH v2 6/7] mtd: nand: add driver for diskonchip g4 nand flash

2013-04-12 Thread Mike Dunn
On 04/11/2013 02:00 PM, Scott Wood wrote: > On 04/10/2013 07:45:27 PM, Mike Dunn wrote: >> This patch adds a driver for the diskonchip G4 nand flash device. It is >> based >> on the driver from the linux kernel. >> >> This also includes a separate SPL drive

Re: [U-Boot] [PATCH v2 7/7] add support for palm treo 680 board

2013-04-12 Thread Mike Dunn
On 04/11/2013 12:20 PM, Marek Vasut wrote: > Dear Mike Dunn, > >> A quick overview of u-boot implementation on the treo 680... >> >> The treo 680 has a Diskonchip G4 nand flash chip. This device has a 2k >> region that maps to the system bus at the reset vector in

Re: [U-Boot] [PATCH v2 5/7] lib: import bitrev library from the linux kernel

2013-04-12 Thread Mike Dunn
On 04/11/2013 12:19 PM, Marek Vasut wrote: > Dear Mike Dunn, > >> This patch adds the bitrev library from the linux kernel. This is a simple >> algorithm that uses an 8 bit look-up table to reverse the bits in data >> types of 8, 16, or 32 bit widths. The docg4 n

Re: [U-Boot] [PATCH v2 8/8] ARM: Present a menu of bootable options on boot

2013-04-11 Thread Mike Dunn
On 04/10/2013 06:43 PM, Rob Herring wrote: > On Wed, Apr 10, 2013 at 8:12 AM, Suriyan Ramasami wrote: >> Initialize usb and ide. >> Scan through the usb for storage and boot capable partitions. >> Scan through the ide interface for boot capable partitions. >> Present such bootable options to the u

[U-Boot] [PATCH v2 7/7] add support for palm treo 680 board

2013-04-10 Thread Mike Dunn
ned-off-by: Mike Dunn --- CREDITS |4 + MAINTAINERS |3 + board/palmtreo680/Makefile| 34 ++ board/palmtreo680/palmtreo680.c | 179 +++ board/palmtreo680/palmtreo680_spl.lds | 51 +++

[U-Boot] [PATCH v2 6/7] mtd: nand: add driver for diskonchip g4 nand flash

2013-04-10 Thread Mike Dunn
3.4 commit 570469f3bde7f71cc1ece07a18d54a05b6a8775d] Signed-off-by: Mike Dunn --- drivers/mtd/nand/Makefile|2 + drivers/mtd/nand/docg4.c | 1035 ++ drivers/mtd/nand/docg4_spl.c | 222 + include/linux/mtd/docg4.h| 134 ++ 4 files

[U-Boot] [PATCH v2 5/7] lib: import bitrev library from the linux kernel

2013-04-10 Thread Mike Dunn
] Signed-off-by: Mike Dunn --- include/linux/bitrev.h | 23 ++ lib/Makefile |1 + lib/bitrev.c | 59 3 files changed, 83 insertions(+), 0 deletions(-) create mode 100644 include/linux/bitrev.h create

[U-Boot] [PATCH v2 4/7] arm: bootm: call udc_disable()before booting linux

2013-04-10 Thread Mike Dunn
On the pxa270, if the udc device is not disabled before jumping to linux, the device fails to initialize in linux because it was left in a running state, and the linux driver assumes that it is in a disabled state. Signed-off-by: Mike Dunn --- Arguably, this is a bug in the linux driver, but it

[U-Boot] [PATCH v2 3/7] pxa27x_udc: remove call to unimplemented set_GPIO_mode()

2013-04-10 Thread Mike Dunn
It is invoked no where else in the code. While I was at it, I noticed that two other function prototypes in the same header file are also neither implemented nor invoked anywhere, so I removed them as well. Signed-off-by: Mike Dunn --- arch/arm/include/asm/arch-pxa/hardware.h |

[U-Boot] [PATCH v2 2/7] pxa_lcd: make lcd_enable() a weak pointer

2013-04-10 Thread Mike Dunn
Make lcd_init() a weak pointer so that boards can overload it if necessary. The palmtreo680 board needs to wiggle some gpios and configure the pwm controller in order to get the lcd and its backlight working. Signed-off-by: Mike Dunn --- drivers/video/pxa_lcd.c |2 +- 1 files changed, 1

[U-Boot] [PATCH v2 1/7] pxa_lcd: add the ACX544AKN lcd device

2013-04-10 Thread Mike Dunn
This adds the definitions required to support the LCD device on the Palm Treo 680. Signed-off-by: Mike Dunn --- drivers/video/pxa_lcd.c | 32 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/drivers/video/pxa_lcd.c b/drivers/video/pxa_lcd.c

[U-Boot] [PATCH v2 0/7] palm treo 680 smartphone board support

2013-04-10 Thread Mike Dunn
runs after the driver initialization - userland utility for programming u-boot to flash moved to tools/palmtreo680 - commit message for patches that add bitrev library and docg4 driver contain the commit and linux version for when the code was added to linux Mike Dunn (7): pxa_lc

Re: [U-Boot] [PATCH 3/8] pxa_lcd: allow L_BIAS line to be unused

2013-04-09 Thread Mike Dunn
On 04/07/2013 10:28 PM, Marek Vasut wrote: > Dear Mike Dunn, > >> This patch adds a config option CONFIG_SYS_LCD_PXA_NO_L_BIAS, which causes >> the lcd controller initialization code to leave as an ordinary gpio the >> line that is typically configured as the lcd L

Re: [U-Boot] [PATCH 7/8] mtd: nand: add driver for diskonchip g4 nand flash

2013-04-09 Thread Mike Dunn
On 04/08/2013 05:59 PM, Scott Wood wrote: > On 04/08/2013 01:25:01 AM, Marek Vasut wrote: >> Dear Mike Dunn, >> >> > This patch adds a driver for the diskonchip G4 nand flash device. It is >> > based on the driver from the linux kernel. >> > >>

Re: [U-Boot] [PATCH 2/8] pxa_lcd: make lcd_enable() a weak pointer

2013-04-08 Thread Mike Dunn
On 04/07/2013 12:08 PM, Fabio Estevam wrote: > On Sun, Apr 7, 2013 at 1:40 PM, Mike Dunn wrote: > >> +void lcd_enable(void) >> + __attribute__((weak, alias("__lcd_enable"))); > > What about declaring it as: > > __weak void lcd_enable(void) > &g

Re: [U-Boot] [PATCH 7/8] mtd: nand: add driver for diskonchip g4 nand flash

2013-04-08 Thread Mike Dunn
On 04/07/2013 11:25 PM, Marek Vasut wrote: [..] > Try #ifdef U_BOOT instead of #if 0, no? Marek, can you clarify? Do you mean something like... #define U_BOOT ... #ifndef U_BOOT /* Currently u-boot does not have for_each_set_bit */ unsigned long bits = ~buf[i];

Re: [U-Boot] [PATCH 6/8] lib: import bitrev library from linux kernel

2013-04-08 Thread Mike Dunn
On 04/07/2013 11:23 PM, Marek Vasut wrote: > Dear Mike Dunn, > >> This patch adds the bitrev library from the linux kernel. This is a simple >> algorithm that uses an 8 bit look-up table to reverse the bits in data >> types of 8, 16, or 32 bit widths. The docg4 n

[U-Boot] [PATCH 7/8] mtd: nand: add driver for diskonchip g4 nand flash

2013-04-07 Thread Mike Dunn
ecc decoding algorithm (due to size constraints). Although the u-boot SPL *could* use ecc, it operates like an IPL for the sake of simplicity and uniformity, since the IPL and SPL share the task of loading the u-boot image. As a side benefit, the SPL driver is very small. Signed-off-by: Mike Dunn

[U-Boot] [PATCH 8/8] board support for palm treo 680

2013-04-07 Thread Mike Dunn
ned-off-by: Mike Dunn --- CREDITS |4 + MAINTAINERS |3 + board/palmtreo680/Makefile| 47 +++ board/palmtreo680/flash_u-boot.c | 170 ++ board/palmtreo680/palmtreo680.c | 184 +++ board/p

[U-Boot] [PATCH 6/8] lib: import bitrev library from linux kernel

2013-04-07 Thread Mike Dunn
This patch adds the bitrev library from the linux kernel. This is a simple algorithm that uses an 8 bit look-up table to reverse the bits in data types of 8, 16, or 32 bit widths. The docg4 nand flash driver uses it. Signed-off-by: Mike Dunn --- include/linux/bitrev.h | 16

[U-Boot] [PATCH 4/8] pxa27x_udc: remove call to unimplemented set_GPIO_mode()

2013-04-07 Thread Mike Dunn
It is invoked no where else in the code. While I was at it, I noticed that two other function prototypes in the same header file are also neither implemented nor invoked anywhere, so I removed them as well. Signed-off-by: Mike Dunn --- arch/arm/include/asm/arch-pxa/hardware.h |

[U-Boot] [PATCH 3/8] pxa_lcd: allow L_BIAS line to be unused

2013-04-07 Thread Mike Dunn
e lcd device on the palmtreo680 board does not use the L_BIAS line. PalmOS does not configure the gpio 77 line for the L_BIAS alternate function, and if it is configured as such, the lcd does not work. Signed-off-by: Mike Dunn --- This is a little ugly, I know, but I didn't want to try a

[U-Boot] [PATCH 1/8] pxa_lcd: add the ACX544AKN lcd device

2013-04-07 Thread Mike Dunn
This adds the definitions required to support the LCD device on the Palm Treo 680. Signed-off-by: Mike Dunn --- drivers/video/pxa_lcd.c | 32 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/drivers/video/pxa_lcd.c b/drivers/video/pxa_lcd.c

[U-Boot] [PATCH 5/8] arm: bootm: call udc_disable() before booting linux

2013-04-07 Thread Mike Dunn
On the pxa270 (at least), if the udc device is not disabled before jumping to linux, the device fails to initialize in linux because it was left in a running state, and the linux driver assumes that it is in a disabled state. Signed-off-by: Mike Dunn --- Arguably, this is a bug in the linux

[U-Boot] [PATCH 2/8] pxa_lcd: make lcd_enable() a weak pointer

2013-04-07 Thread Mike Dunn
Make lcd_init() a weak pointer aliased to the current (and currently empty) lcd_init(), so that boards can overload it if necessary. The palmtreo680 board needs to wiggle some gpios and configure the pwm controller in order to get the lcd and its backlight working. Signed-off-by: Mike Dunn

[U-Boot] [PATCH 0/8] palm treo 680 smartphone board support

2013-04-07 Thread Mike Dunn
ng usbtty for the console. Thanks for looking. Mike Mike Dunn (8): pxa_lcd: add the ACX544AKN lcd device pxa_lcd: make lcd_enable() a weak pointer pxa_lcd: allow L_BIAS line to be unused pxa27x_udc: remove call to unimplemented set_GPIO_mode() arm: bootm: call udc_disable() before bo