[U-Boot] [RFC][PATCH 1/3] DDR2: Support new JEDEC DDR2 SPD 1.3 spec

2010-08-13 Thread Kyle Moffett
The new DDR2 SPD spec is backwards-compatible with the old one, but there are DIMMs which are being produced which have new SPD version fields that fail to work with U-boot. To make the code a bit more readable, we add some human-readable SPD_DIMM_TYPE_* constants. Signed-off-by: Kyle Moffett

[U-Boot] [RFC] Board support patches for the eXMeritus HWW-1U-1A devices

2010-08-13 Thread Kyle Moffett
There are a couple preliminary patches to common code, but basically everything else is limited to our own board-support code. I look forward to your comments and criticisms! Cheers, Kyle Moffett -- Overall diffstat below: MAKEALL |2 + Mak

[U-Boot] [RFC][PATCH 2/3] e1000: Intel 82571EB: Don't wait for MNG cycle on unmanaged chips

2010-08-13 Thread Kyle Moffett
, we disable the poll and error return on chips whose EEPROMS indicate no management. As a protection against misconfigured chipsets, we still delay for the entire management poll timeout. Signed-off-by: Kyle Moffett --- drivers/net/e1000.c |7 +++ 1 files changed, 7 insertions(+), 0

[U-Boot] [RFC] Board support patches for the eXMeritus HWW-1U-1A devices

2010-08-30 Thread Kyle Moffett
t code. A GIT tree containing these patches may be found here: git://opensource.exmeritus.com/hww-1u-1a/u-boot.git master http://opensource.exmeritus.com/git/hww-1u-1a/u-boot.git/master I look forward to your comments and criticisms. Cheers, Kyle Moffett -- Overall diffstat below

[U-Boot] [RFC][PATCH 2/3] e1000: Intel 82571EB: Don't wait for MNG cycle on unmanaged chips

2010-08-30 Thread Kyle Moffett
, we disable the poll and error return on chips whose EEPROMS indicate no management. As a protection against misconfigured chipsets, we still delay for the entire management poll timeout. Signed-off-by: Kyle Moffett --- Jeff Kirsher has already accepted a similar patch to the Linux kernel into his

[U-Boot] [RFC][PATCH 1/3] DDR2: Support new JEDEC DDR2 SPD 1.3 spec

2010-08-30 Thread Kyle Moffett
The new DDR2 SPD spec is backwards-compatible with the old one, but there are DIMMs which are being produced which have new SPD version fields that fail to work with U-boot. To make the code a bit more readable, we add some human-readable SPD_DIMM_TYPE_* constants. Signed-off-by: Kyle Moffett

Re: [U-Boot] [RFC][PATCH 1/3] DDR2: Support new JEDEC DDR2 SPD 1.3 spec

2010-09-02 Thread Kyle Moffett
_MINI_UDIMM     0x20 > > These aren't 8xxx-specific, so they should go somewhere common.  It > looks like many of them are already defined in include/ddr_spd.h; I'd > recommend adding new types there. Ok, I'll respin this using ddr_spd.h! Thanks for the comments! Cheers,

Re: [U-Boot] [RFC][PATCH 3/3] Add board support for the eXMeritus HWW-1U-1A devices

2010-09-02 Thread Kyle Moffett
bit. >> +/* DDR2 SO-RDIMM SPD EEPROM is at I2C0-0x51 */ >> +#define CONFIG_SYS_SPD_BUS_NUM 0 >> +#define SPD_EEPROM_ADDRESS1 0x51 >> +#if 0 >> +#define CONFIG_CMD_EEPROM >> +#endif > > Remove dead code.  Same comment applies for future if 0s. Same as ab

Re: [U-Boot] [RFC][PATCH 2/3] e1000: Intel 82571EB: Don't wait for MNG cycle on unmanaged chips

2010-09-12 Thread Kyle Moffett
heers, Kyle Moffett ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH 2/5] e1000: Add a small SPI driver wrapper around the EEPROM code

2010-09-13 Thread Kyle Moffett
To make it possible to use the "sspi" command with the e1000 firmware EEPROM we add a small "generic SPI" driver wrapper around the existing e1000 SPI backend. Signed-off-by: Kyle Moffett --- drivers/net/e1000.c | 92 ++-

[U-Boot] [PATCH 3/5] mpc85xx: Add inline GPIO acessor functions

2010-09-13 Thread Kyle Moffett
To ease the implementation of other MPC85xx board ports, several common GPIO helpers are added to . Since each of these compiles to no more than 4-5 instructions it would be very inefficient to call them out of line, therefore we put them entirely in the header file. Signed-off-by: Kyle Moffett

[U-Boot] [PATCH 1/5] e1000: New "e1000" commands for SPI EEPROM management

2010-09-13 Thread Kyle Moffett
looks like this on the wire: Time >>> -- ... [7, 6, 5, 4, 3, 2, 1, 0, 15, 14, 13, 12, 11, 10, 9, 8], ... -- (MSB is 15, LSB is 0). Signed-off-by: Kyle Moffet

[U-Boot] [PATCH 1/5] e1000: Clean up handling of dual-port NICs and support 82571

2010-09-13 Thread Kyle Moffett
Consolidate the test for a dual-port NIC to one location for easy modification, then fix support for the dual-port 82571. Signed-off-by: Kyle Moffett --- drivers/net/e1000.c | 66 +- drivers/net/e1000.h |6 2 files changed, 33

[U-Boot] [PATCH 2/5] e1000: Restructure and streamline PCI device probing

2010-09-13 Thread Kyle Moffett
hopefully make such EEPROM errors much more straightforward to handle correctly in boot scripts and the like. It is also necessary for a followup patch which allows SPI programming of an e1000 controller's EEPROM even if the checksum is invalid. Signed-off-by: Kyle Moffett --- d

[U-Boot] [PATCH 4/5] e1000: New "e1000" commands for SPI EEPROM management

2010-09-13 Thread Kyle Moffett
looks like this on the wire: Time >>> -- ... [7, 6, 5, 4, 3, 2, 1, 0, 15, 14, 13, 12, 11, 10, 9, 8], ... -- (MSB is 15, LSB is 0). Signed-off-by: Kyle Moffet

[U-Boot] [PATCH 5/5] e1000: Add a small SPI driver wrapper around the EEPROM code

2010-09-13 Thread Kyle Moffett
To make it possible to use the "sspi" command with the e1000 firmware EEPROM we add a small "generic SPI" driver wrapper around the existing e1000 SPI backend. Signed-off-by: Kyle Moffett --- drivers/net/e1000.c | 92 ++-

[U-Boot] [PATCH 3/5] e1000: Rewrite EEPROM checksum error to give more information

2010-09-13 Thread Kyle Moffett
As an aide to debugging, we should print out the expected value of the EEPROM checksum in addition to just saying that it is wrong. Signed-off-by: Kyle Moffett --- drivers/net/e1000.c | 48 ++-- 1 files changed, 30 insertions(+), 18 deletions

[U-Boot] [PATCH] mpc85xx: Add board support for the eXMeritus HWW-1U-1A devices

2011-12-07 Thread Kyle Moffett
hardware misfeature. Proper support for the hardware reset mechanism has been left for a later patch series to address. Signed-off-by: Kyle Moffett Cc: Andy Fleming Cc: Kumar Gala -- I believe all review comments have been addressed, please let me know if there is anything else I need to

[U-Boot] [PATCH] tools/setlocalversion: Update from the Linux Kernel

2011-12-12 Thread Kyle Moffett
xactly identical, but it is very close to the version in Linux v3.2-rc4. Signed-off-by: Kyle Moffett --- tools/setlocalversion | 138 - 1 files changed, 113 insertions(+), 25 deletions(-) diff --git a/tools/setlocalversion b/tools/setlocalvers

[U-Boot] [PATCH v2] tools/setlocalversion: Update from the Linux Kernel

2011-12-15 Thread Kyle Moffett
ion of tools/setlocalversion in the kernel correctly handles those situations by using different plumbing commands. The version from the kernel is not directly usable as it has code for supporting CONFIG_LOCALVERSION from Kconfig, but the version that was imported is very similar to the one in Lin

[U-Boot] [PATCH] mpc8xxx: Fix "DRAM" message formatting

2011-12-15 Thread Kyle Moffett
cted RDIMM VL493T5663D-E6M 2 GiB (DDR2, 64-bit, CL=4, ECC on) DDR Chip-Select Interleaving Mode: CS0+CS1 After this patch, it is: DRAM: Detected RDIMM VL493T5663D-E6M 2 GiB (DDR2, 64-bit, CL=4, ECC on) DDR Chip-Select Interleaving Mode: CS0+CS1 Signed-off-by: Kyle M

[U-Boot] [PATCH] Fix logic for selection of CONFIG_SYS_DEF_EEPROM_ADDR

2011-12-15 Thread Kyle Moffett
but always uses an address of 0x00. This fixes the logic for that particular case, hopefully without breaking any other board configurations. Signed-off-by: Kyle Moffett Cc: Heiko Schocher --- include/common.h |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/

[U-Boot] [PATCH] net/eth: Don't issue warnings for offboard ethernet chips

2011-12-15 Thread Kyle Moffett
code can be removed. Signed-off-by: Kyle Moffett Cc: Ben Warren --- drivers/net/ne2000_base.c | 17 +--- drivers/usb/eth/usb_ether.c |4 +-- net/eth.c | 56 -- 3 files changed, 35 insertions(+), 42 deletions(-) diff

[U-Boot] [PATCH 2/2] eXMeritus HWW-1U-1A: Minor environment variable tweaks

2011-12-15 Thread Kyle Moffett
, fix an incorrect address for the kernel in FLASH memory. Signed-off-by: Kyle Moffett Cc: Andy Fleming Cc: Kumar Gala --- include/configs/HWW1U1A.h |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/configs/HWW1U1A.h b/include/configs/HWW1U1A.h index 123fc

[U-Boot] [PATCH 1/2] eXMeritus HWW-1U-1A: Add support for the AT24C128N I2C EEPROM

2011-12-15 Thread Kyle Moffett
"run restore_eeprom && saveenv") Signed-off-by: Kyle Moffett Cc: Andy Fleming Cc: Kumar Gala --- include/configs/HWW1U1A.h | 29 +++-- 1 files changed, 27 insertions(+), 2 deletions(-) diff --git a/include/configs/HWW1U1A.h b/include/configs/HWW1U1A.h index

[U-Boot] [PATCH] Allow the "reset" command to be omitted with CONFIG_CMD_RESET

2011-12-15 Thread Kyle Moffett
This new #define is set in config_cmd_defaults.h (which is automatically included on every board by "mkconfig"), but this allows boards to elect to omit the "reset" command if necessary with "#undef CONFIG_CMD_RESET". Signed-off-by: Kyle Moffett Cc: Wolfgang Denk C

[U-Boot] [PATCH v3] tools/setlocalversion: Update from the Linux Kernel

2011-12-16 Thread Kyle Moffett
). Other than a few minor changes for Kconfig, the imported version is very similar to Linux v3.2-rc4. Signed-off-by: Kyle Moffett Cc: Wolfgang Denk Cc: Mike Frysinger -- Changelog: v3: Fix "localversion-*" file support and minimize kernel delta. --- tools/setlocalversion | 185 +

[U-Boot] Enable access to FAT filesystem in an ISO9660 El-Torito volume

2011-12-20 Thread Kyle Moffett
The included series of 3 patches fixes several bugs in the FAT code and the USB storage stack to make it possible to read from a FAT filesystem image embedded as an "El-Torito boot image" in an ISO9660 volume (IE: a CD or DVD). This has been tested on the eXMeritus HWW-1U-1A.

[U-Boot] [PATCH 1/3] fs/fat: Fix FAT detection to support non-DOS partition tables

2011-12-20 Thread Kyle Moffett
an ISO9660 boot volume (El-Torito format) by reordering the filesystem checks and reading the 0x55 0xAA "DOS boot signature" and FAT/FAT32 magic number from the first sector of the partition instead of from sector 0. Signed-off-by: Kyle Moffett --- fs/fat/fa

[U-Boot] [PATCH 2/3] fs/fat: Improve error handling

2011-12-20 Thread Kyle Moffett
ate an error but instead return 0 to indicate the number of blocks successfully read (IE: None). The FAT filesystem should defensively check to ensure that it got all of the sectors that it asked for when reading. Signed-off-by: Kyle Moffett --- fs/fat/fat.c | 18 ++ 1 files chan

[U-Boot] [PATCH 3/3] usb_storage: Fix EHCI "out of buffer pointers" with CD-ROM

2011-12-20 Thread Kyle Moffett
D-ROM media has a 2048-byte blocksize, resulting in a maximum transfer size of 40960 bytes, which does not fit. Since the EHCI specification is impossibly obtuse and far beyond my comprehension, I chose to dynamically compute the limit based on the blocksize. Signed-off-by: Kyle Moffett --- c

[U-Boot] [PATCH v2 0/3] Enable access to FAT filesystem in an ISO9660 El-Torito volume

2011-12-21 Thread Kyle Moffett
w commentary on these patches and I believe that they should be acceptable for merging into "next" now. Cheers, Kyle Moffett -- Interested in my work on the Debian powerpcspe port? I'm keeping a blog here: http://pureperl.blogspot.com/

[U-Boot] [PATCH v2 1/3] fs/fat: Fix FAT detection to support non-DOS partition tables

2011-12-21 Thread Kyle Moffett
an ISO9660 boot volume (El-Torito format) by reordering the filesystem checks and reading the 0x55 0xAA "DOS boot signature" and FAT/FAT32 magic number from the first sector of the partition instead of from sector 0. Signed-off-by: Kyle Moffett -- v2: I have removed the unnecess

[U-Boot] [PATCH v2 2/3] fs/fat: Improve error handling

2011-12-21 Thread Kyle Moffett
ate an error but instead return 0 to indicate the number of blocks successfully read (IE: None). The FAT filesystem should defensively check to ensure that it got all of the sectors that it asked for when reading. Signed-off-by: Kyle Moffett -- v2: No change --- fs/fat/fat.c |

[U-Boot] [PATCH v2 3/3] usb_storage: Fix EHCI "out of buffer pointers" with CD-ROM

2011-12-21 Thread Kyle Moffett
D-ROM media has a 2048-byte blocksize, resulting in a maximum transfer size of 40960 bytes, which does not fit. Since the EHCI specification is impossibly obtuse and far beyond my comprehension, I chose to dynamically compute the limit based on the blocksize. Signed-off-by: Kyle Moffett -- v2:

[U-Boot] [PATCH] fsl-ddr: Fix mixed-case macro names

2011-04-14 Thread Kyle Moffett
Signed-off-by: Kyle Moffett --- arch/powerpc/cpu/mpc8xxx/ddr/util.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/powerpc/cpu/mpc8xxx/ddr/util.c b/arch/powerpc/cpu/mpc8xxx/ddr/util.c index 02908b4..104d360 100644 --- a/arch/powerpc/cpu/mpc8xxx

[U-Boot] [PATCH 2/5] e1000: Restructure and streamline PCI device probing

2011-02-11 Thread Kyle Moffett
hopefully make such EEPROM errors much more straightforward to handle correctly in boot scripts and the like. It is also necessary for a followup patch which allows SPI programming of an e1000 controller's EEPROM even if the checksum is invalid. Signed-off-by: Kyle Moffett --- d

[U-Boot] [PATCH 4/5] e1000: New "e1000" commands for SPI EEPROM management

2011-02-11 Thread Kyle Moffett
looks like this on the wire: Time >>> - ... [7, 6, 5, 4, 3, 2, 1, 0, 15, 14, 13, 12, 11, 10, 9, 8], ... - (MSB is 15, LSB is 0). Signed-off-by: Kyle Moffet

[U-Boot] e1000: Driver additions for eXMeritus HWW-1U-1A

2011-02-11 Thread Kyle Moffett
1 insertions(+), 115 deletions(-) Most of the new code is hidden behind a couple of config options, so it won't affect other users of e1000 chips unless they explicitly request it. Cheers, Kyle Moffett ___ U-Boot mailing list U-Boot@lists.denx.de htt

[U-Boot] [PATCH 1/5] e1000: Clean up handling of dual-port NICs and support 82571

2011-02-11 Thread Kyle Moffett
Consolidate the test for a dual-port NIC to one location for easy modification, then fix support for the dual-port 82571. Signed-off-by: Kyle Moffett --- drivers/net/e1000.c | 66 +- drivers/net/e1000.h |6 2 files changed, 33

[U-Boot] [PATCH 5/5] e1000: Add a small SPI driver wrapper around the EEPROM code

2011-02-11 Thread Kyle Moffett
To make it possible to use the "sspi" command with the e1000 firmware EEPROM we add a small "generic SPI" driver wrapper around the existing e1000 SPI backend. Signed-off-by: Kyle Moffett --- drivers/net/e1000.c | 92 ++-

[U-Boot] [PATCH 3/5] e1000: Rewrite EEPROM checksum error to give more information

2011-02-11 Thread Kyle Moffett
As an aide to debugging, we should print out the expected value of the EEPROM checksum in addition to just saying that it is wrong. Signed-off-by: Kyle Moffett --- drivers/net/e1000.c | 48 ++-- 1 files changed, 30 insertions(+), 18 deletions

[U-Boot] [PATCH 1/7] mpc85xx: Support a board-specific processor reset routines

2011-02-21 Thread Kyle Moffett
() command function instead of directly poking at the MPC85xx "RSTCR" (reset control) register. Signed-off-by: Kyle Moffett --- arch/powerpc/cpu/mpc85xx/cpu.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/cpu/mpc85xx/cpu.c b/arch/powerpc/cpu/mpc

[U-Boot] Support patches for the eXMeritus HWW-1U-1A system (v3)

2011-02-21 Thread Kyle Moffett
Hello again everyone! After a relatively long hiatus working on other projects, I'm resubmitting updated versions of our board-support patches for review and inclusion. This patch series is based off the latest master branch as of Feb 11th, specifically, commit d1a79b71f7c5fd9e277e0feb35f049289df

[U-Boot] [PATCH 2/7] mpc8xxx: DDR2/3: Use human-readable SPD DIMM-type constants

2011-02-21 Thread Kyle Moffett
Use #define constants to enhance readability of DDR2/3 SPD parsing code. Also add the DDR2 type for an SO-RDIMM module to the switch statement. Signed-off-by: Kyle Moffett --- arch/powerpc/cpu/mpc8xxx/ddr/ddr2_dimm_params.c | 34 +++-- arch/powerpc/cpu/mpc8xxx/ddr

[U-Boot] [PATCH 4/7] fsl_ddr: Don't use full 64-bit divides on 32-bit PowerPC

2011-02-21 Thread Kyle Moffett
the Linux kernel seems to require a full 64-bit divide on any 32-bit PowerPC. Build-and-boot-tested on the HWW-1U-1A board using DDR2 SPD detection. Signed-off-by: Kyle Moffett --- Author's note: This patch really needs a bunch more review and testing, but I only have access to a very limit

[U-Boot] [PATCH 5/7] powerpc: Minimal private libgcc to build on Debian

2011-02-21 Thread Kyle Moffett
issue. Specifically, the routines are: _ashldi3(), _ashrdi3(), and _lshrdi3(). The Makefile framework was copied from the U-Boot ARM port. Signed-off-by: Kyle Moffett --- arch/powerpc/lib/Makefile | 28 - arch/powerpc/lib/_ashldi3.S | 45

[U-Boot] [PATCH 6/7] fdt_support: Fix buffer overflow in fdt_fixup_memory_banks

2011-02-21 Thread Kyle Moffett
ned-off-by: Kyle Moffett --- common/fdt_support.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/fdt_support.c b/common/fdt_support.c index 6c98e5b..edcf04a 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -394,7 +394,7 @@ int fdt_fixup_memory_banks(

[U-Boot] [PATCH 3/7] mpc85xx: Add inline GPIO acessor functions

2011-02-21 Thread Kyle Moffett
be enabled with CONFIG_MPC85XX_GENERIC_GPIO Signed-off-by: Kyle Moffett --- arch/powerpc/include/asm/mpc85xx_gpio.h | 124 +++ 1 files changed, 124 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/include/asm/mpc85xx_gpio.h diff --git a/arch/powerpc

[U-Boot] [PATCH 7/7] mpc85xx: Add board support for the eXMeritus HWW-1U-1A devices

2011-02-21 Thread Kyle Moffett
seems to work, but I don't yet have a usable 36-bit kernel or DTB, so it's mostly untested. * CPU reset is a little quirky due to hardware misfeature, see the extensive comments in the board_reset_r() function in hww-1u-1a.c Signed-off-by: Kyle Moffett --- M

[U-Boot] [PATCHv2 1/5] e1000: Clean up handling of dual-port NICs and support 82571

2011-02-23 Thread Kyle Moffett
Consolidate the test for a dual-port NIC to one location for easy modification, then fix support for the dual-port 82571. Signed-off-by: Kyle Moffett Cc: Ben Warren --- No changes since v1 drivers/net/e1000.c | 66 +- drivers/net/e1000.h

[U-Boot] [PATCHv2 3/5] e1000: Rewrite EEPROM checksum error to give more information

2011-02-23 Thread Kyle Moffett
As an aide to debugging, we should print out the expected value of the EEPROM checksum in addition to just saying that it is wrong. Signed-off-by: Kyle Moffett Cc: Ben Warren --- No changes since v1 drivers/net/e1000.c | 48 ++-- 1 files changed

[U-Boot] [PATCHv2 2/5] e1000: Restructure and streamline PCI device probing

2011-02-23 Thread Kyle Moffett
hopefully make such EEPROM errors much more straightforward to handle correctly in boot scripts and the like. It is also necessary for a followup patch which allows SPI programming of an e1000 controller's EEPROM even if the checksum is invalid. Signed-off-by: Kyle Moffett Cc: Ben Warren ---

[U-Boot] [PATCHv2 4/5] e1000: New "e1000" commands for SPI EEPROM management

2011-02-23 Thread Kyle Moffett
looks like this on the wire: Time >>> -- ... [7, 6, 5, 4, 3, 2, 1, 0, 15, 14, 13, 12, 11, 10, 9, 8], ... -- (MSB is 15, LSB is 0). Signed-off-by: Kyle Moff

[U-Boot] [PATCHv2 5/5] e1000: Add a small SPI driver wrapper around the EEPROM code

2011-02-23 Thread Kyle Moffett
To make it possible to use the "sspi" command with the e1000 firmware EEPROM we add a small "generic SPI" driver wrapper around the existing e1000 SPI backend. Signed-off-by: Kyle Moffett Cc: Ben Warren --- No changes since v1 driver

[U-Boot] [PATCHv2] fdt_support: Fix buffer overflow in fdt_fixup_memory_banks

2011-02-23 Thread Kyle Moffett
ned-off-by: Kyle Moffett Cc: Jerry Van Baren --- Changelog: v2: Resubmitted separately from the other HWW-1U-1A changes. common/fdt_support.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/fdt_support.c b/common/fdt_support.c index 6c98e5b..edcf04a 100644 --

[U-Boot] [PATCHv2] fsl_ddr: Don't use full 64-bit divides on 32-bit PowerPC

2011-02-23 Thread Kyle Moffett
the Linux kernel seems to require a full 64-bit divide on any 32-bit PowerPC. Build-and-boot-tested on the HWW-1U-1A board using DDR2 SPD detection. Signed-off-by: Kyle Moffett Cc: Andy Fleming Cc: Kumar Gala Cc: Wolfgang Denk Cc: Kim Phillips --- Ok, so this patch touches a rather sensitive p

[U-Boot] [PATCHv2] powerpc: Minimal private libgcc to build on Debian

2011-02-23 Thread Kyle Moffett
06706d6e4fbeb0216213, and are GPLv2+. The Makefile framework was copied from the U-Boot ARM port. Signed-off-by: Kyle Moffett Cc: Wolfgang Denk Cc: Kim Phillips Cc: Andy Fleming Cc: Kumar Gala Cc: Stefan Roese --- Changelog: v2: Resubmitted separately from the other HWW-1U-1A patches arch/

[U-Boot] [PATCH v4 3/4] mpc85xx: Add inline GPIO acessor functions

2011-02-23 Thread Kyle Moffett
be enabled with CONFIG_MPC85XX_GENERIC_GPIO Signed-off-by: Kyle Moffett Cc: Andy Fleming Cc: Kumar Gala Cc: Peter Tyser --- Changelog: v2: Moved the inline functions to a non-board-specific header v3: Added generic Linux-standard GPIO wrappers v4: Improved comments and fixed minor bugs in

[U-Boot] [PATCH v4 2/4] mpc8xxx: DDR2/DDR3: Clean up DIMM-type switch statements

2011-02-23 Thread Kyle Moffett
switch statement. Signed-off-by: Kyle Moffett Cc: Andy Fleming Cc: Kumar Gala Cc: Kim Phillips Cc: Wolfgang Denk --- Changelog: v2: Moved the constants to include/ddr_spd.h and also fixed DDR3. v3: No changes v4: Fixed up excessively long lines arch/powerpc/cpu/mpc8xxx/ddr

[U-Boot] [PATCH v4 4/4] mpc85xx: Add board support for the eXMeritus HWW-1U-1A devices

2011-02-23 Thread Kyle Moffett
seems to work, but I don't yet have a usable 36-bit kernel or DTB, so it's mostly untested. * CPU reset is a little quirky due to hardware misfeature, see the extensive comments in the board_reset() function in hww1u1a.c Signed-off-by: Kyle Moffett Cc: Andy Fleming Cc:

[U-Boot] [PATCH v4 1/4] Refactor do_reset() into board-specific and CPU-specific portions

2011-02-23 Thread Kyle Moffett
th of them. A new generic system_reset() function was introduced which simply calls board_reset() and cpu_reset() in that order, and all explicit callers of do_reset() were changed to use system_reset() instead. Signed-off-by: Kyle Moffett Cc: Wolfgang Denk Cc: Albert Aribaud Cc: Mike Frysinge

[U-Boot] [PATCH 0/21] Generic cross-architecture system restart support

2011-03-07 Thread Kyle Moffett
fically, the MIPS do_reset() function used to look like this: _machine_restart(); printf("*** restart failed ***\n"); When those platforms are fixed then it should be safe to remove the weak fallback __arch_restart() function. Cheers, Kyle Moffett _

[U-Boot] [PATCH 01/21] Define new system_restart() and emergency_restart()

2011-03-07 Thread Kyle Moffett
art() hook. This works for all hardware platforms which have a properly defined hardware reset capability. Signed-off-by: Kyle Moffett Cc: Wolfgang Denk --- api/api.c |3 +- common/cmd_boot.c | 128 - common/cmd_bootm.c

[U-Boot] [PATCH 02/21] Replace do_reset() calls with {system, emergency}_restart()

2011-03-07 Thread Kyle Moffett
do_reset() functions. Signed-off-by: Kyle Moffett Cc: Wolfgang Denk --- board/dave/PPChameleonEVB/PPChameleonEVB.c |4 ++-- board/esd/apc405/apc405.c |4 ++-- board/esd/ar405/ar405.c|2 +- board/esd/ash405/ash405.c |4 ++-- board

[U-Boot] [PATCH 03/21] arm: Call "panic()" instead of "hang()" for div-by-zero

2011-03-07 Thread Kyle Moffett
Divide-by-zero errors should be controlled by the CONFIG_PANIC_HANG configuration variable just like any other kind of trappable U-Boot bug. Signed-off-by: Kyle Moffett Cc: Albert Aribaud --- arch/arm/lib/div0.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch

[U-Boot] [PATCH 04/21] arm: Replace unnecessary bad_mode() with panic()

2011-03-07 Thread Kyle Moffett
: Kyle Moffett Cc: Albert Aribaud --- arch/arm/lib/interrupts.c | 21 +++-- 1 files changed, 7 insertions(+), 14 deletions(-) diff --git a/arch/arm/lib/interrupts.c b/arch/arm/lib/interrupts.c index 74ff5ce..156a23c 100644 --- a/arch/arm/lib/interrupts.c +++ b/arch/arm/lib

[U-Boot] [PATCH 05/21] arm: cpux9k2: Remove unnecessary XF_do_reset assignment

2011-03-07 Thread Kyle Moffett
The exported function table already assigns XF_do_reset properly, so there should be no need for this processor to manually reassign it. This change is required before ARM is converted away from using the legacy do_reset() handler. Signed-off-by: Kyle Moffett Cc: Albert Aribaud Cc: Reinhard

[U-Boot] [PATCH 06/21] arm: Rename nonstandard board_reset() as at91_board_reset()

2011-03-07 Thread Kyle Moffett
(). Signed-off-by: Kyle Moffett Cc: Albert Aribaud Cc: Reinhard Meyer --- arch/arm/cpu/arm920t/at91/reset.c |4 ++-- arch/arm/cpu/arm920t/at91rm9200/reset.c |6 +++--- board/atmel/at91rm9200dk/at91rm9200dk.c |2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch

[U-Boot] [PATCH 07/21] arm: Generic system restart support

2011-03-07 Thread Kyle Moffett
reset code will probably work even when the CPU is in a bad state, so no separate __arch_emergency_restart() function is required. Signed-off-by: Kyle Moffett Cc: Albert Aribaud --- arch/arm/lib/reset.c |6 +- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/arch/arm/lib

[U-Boot] [PATCH 09/21] blackfin: Replace "bfin_reset_or_hang()" with "panic()"

2011-03-07 Thread Kyle Moffett
The bfin_reset_or_hang function unnecessarily duplicates the panic() logic based on CONFIG_PANIC_HANG. This patch deletes 20 lines of code and just calls panic() instead. This also makes the following generic-restart conversion patch simpler. Signed-off-by: Kyle Moffett Cc: Mike Frysinger

[U-Boot] [PATCH 08/21] avr32: Generic system restart support

2011-03-07 Thread Kyle Moffett
-off-by: Kyle Moffett Cc: Reinhard Meyer --- arch/avr32/cpu/cpu.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/avr32/cpu/cpu.c b/arch/avr32/cpu/cpu.c index e4489bb..ca2226b 100644 --- a/arch/avr32/cpu/cpu.c +++ b/arch/avr32/cpu/cpu.c @@ -76,7 +76,7 @@ void

[U-Boot] [PATCH 11/21] i386: Generic system restart support

2011-03-07 Thread Kyle Moffett
reset code will probably work even when the CPU is in a bad state, so no separate __arch_emergency_restart() function is required. Signed-off-by: Kyle Moffett Cc: Graeme Russ --- arch/i386/cpu/cpu.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/i386/cpu/cpu.c b

[U-Boot] [PATCH 10/21] blackfin: Generic system restart support

2011-03-07 Thread Kyle Moffett
CPU may be in a bad or undefined state, but it *appears* to be OK. As a result no separate __arch_emergency_restart() function should be needed. Signed-off-by: Kyle Moffett Cc: Mike Frysinger --- arch/blackfin/cpu/cpu.h |1 - arch/blackfin/cpu/reset.c |4 +--- board/bf537

[U-Boot] [PATCH 14/21] mips: Generic system restart support

2011-03-07 Thread Kyle Moffett
back to their FLASH reset vector, therefore they have no-op __board_emergency_restart() functions. (If the CPU is in an invalid state then that probably won't work). Signed-off-by: Kyle Moffett Cc: Shinya Kuribayashi --- arch/mips/cpu/cpu.c| 13 - arch/mips/includ

[U-Boot] [PATCH 15/21] nios2: Generic system restart support

2011-03-07 Thread Kyle Moffett
an invalid state then jump-to-FLASH probably won't work. Signed-off-by: Kyle Moffett Cc: Scott McNutt --- arch/nios2/cpu/cpu.c | 12 +++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/arch/nios2/cpu/cpu.c b/arch/nios2/cpu/cpu.c index ef360ee..9f40188 100644

[U-Boot] [PATCH 18/21] sh: Generic system restart support

2011-03-07 Thread Kyle Moffett
-off-by: Kyle Moffett Cc: Nobuhiro Iwamatsu --- arch/sh/lib/board.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/sh/lib/board.c b/arch/sh/lib/board.c index 07361b4..9206311 100644 --- a/arch/sh/lib/board.c +++ b/arch/sh/lib/board.c @@ -204,7 +204,7 @@ void

[U-Boot] [PATCH 16/21] powerpc: Generic system restart support

2011-03-07 Thread Kyle Moffett
y_restart() function. If the CPU is in an invalid state then jump-to-RAM probably won't work. All of the rest of the reset code will probably work even when the CPU is in a bad state, so they should be fine with the defaults. Signed-off-by: Kyle Moffett Cc: Wolfgang Denk Cc: Stefan Roese C

[U-Boot] [PATCH 13/21] microblaze: Generic system restart support

2011-03-07 Thread Kyle Moffett
ther or not the code properly supports emergency restart. A new __board_emergency_restart() may need to be implemented. Signed-off-by: Kyle Moffett Cc: Michal Simek --- .../xilinx/microblaze-generic/microblaze-generic.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/boa

[U-Boot] [PATCH 12/21] m68k: Generic system restart support

2011-03-07 Thread Kyle Moffett
appear to either use a CPU hardware feature or an onboard watchdog unit to perform the system reset. As a hardware reset that will probably work even when the CPU is in a bad state, so no separate __arch_emergency_restart() is required. Signed-off-by: Kyle Moffett Cc: Jason Jin --- arch/m68k/cpu

[U-Boot] [PATCH 21/21] Remove legacy do_reset() function

2011-03-07 Thread Kyle Moffett
All of the users of the legacy do_reset() function have been converted to __arch_restart() or __board_restart() as appropriate, so the compatibility calls to do_reset() may be removed. In addition the do_generic_reset() function is renamed to the now-unused name do_reset(). Signed-off-by: Kyle

[U-Boot] [PATCH 19/21] sparc: Unify duplicate reset code

2011-03-07 Thread Kyle Moffett
together and moving them into common code. Signed-off-by: Kyle Moffett Cc: Daniel Hellstrom --- arch/sparc/cpu/leon2/cpu.c | 18 -- arch/sparc/cpu/leon3/cpu.c | 19 --- arch/sparc/lib/board.c | 11 +++ 3 files changed, 11 insertions(+), 37

[U-Boot] [PATCH 20/21] sparc: Generic system restart support

2011-03-07 Thread Kyle Moffett
invalid state then jump-to-FLASH probably won't work. Signed-off-by: Kyle Moffett Cc: Daniel Hellstrom --- arch/sparc/lib/board.c | 12 +++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/arch/sparc/lib/board.c b/arch/sparc/lib/board.c index 128ece7..e250274 1

[U-Boot] [PATCH 17/21] sh: Unify duplicate reset code

2011-03-07 Thread Kyle Moffett
together and moving them into common code. Signed-off-by: Kyle Moffett Cc: Nobuhiro Iwamatsu --- arch/sh/cpu/sh2/cpu.c |7 --- arch/sh/cpu/sh2/watchdog.c |9 - arch/sh/cpu/sh3/cpu.c |7 --- arch/sh/cpu/sh3/watchdog.c |9 - arch/sh/cpu/sh4/cpu.c

[U-Boot] [PATCH v5 0/3] Board support series for the eXMeritus HWW-1U-1A

2011-03-14 Thread Kyle Moffett
ardware without those patches. It will not cause a build failure however, as this board port simply defines an otherwise-unused __board_restart() function. I believe these 3 patches at least are ready to be merged, as all concerns presented so far have been resolved. Cheer

[U-Boot] [PATCH v5 2/3] mpc85xx: Add inline GPIO acessor functions

2011-03-14 Thread Kyle Moffett
functions. This can be enabled with the config option CONFIG_MPC85XX_GENERIC_GPIO. Signed-off-by: Kyle Moffett Cc: Andy Fleming Cc: Kumar Gala Cc: Peter Tyser --- arch/powerpc/include/asm/mpc85xx_gpio.h | 120 +++ 1 files changed, 120 insertions(+), 0 deletions

[U-Boot] [PATCH v5 1/3] mpc8xxx: DDR2/DDR3: Clean up DIMM-type switch statements

2011-03-14 Thread Kyle Moffett
switch statement. Signed-off-by: Kyle Moffett Cc: Andy Fleming Cc: Kumar Gala Cc: Kim Phillips --- arch/powerpc/cpu/mpc8xxx/ddr/ddr2_dimm_params.c | 23 +++- arch/powerpc/cpu/mpc8xxx/ddr/ddr3_dimm_params.c | 43 ++ common/ddr_spd.c

[U-Boot] [PATCH v5 3/3] mpc85xx: Add board support for the eXMeritus HWW-1U-1A devices

2011-03-14 Thread Kyle Moffett
seems to work, but I don't yet have a usable 36-bit kernel or DTB, so it's mostly untested. * CPU reset is a little quirky due to hardware misfeature, see the extensive comments in the __board_restart() function in hww1u1a.c Signed-off-by: Kyle Moffett Cc: Andy Fleming Cc:

[U-Boot] [PATCH v3] fsl_ddr: Don't use full 64-bit divides on 32-bit PowerPC

2011-03-15 Thread Kyle Moffett
to require a full 64-bit divide on my 32-bit PowerPC. Build-and-boot-tested on the HWW-1U-1A board using DDR2 SPD detection. Signed-off-by: Kyle Moffett Acked-by: York Sun Cc: Andy Fleming Cc: Kumar Gala -- Changelog: v2: Resubmitted separately from the other HWW-1U-1A patches v3: Rebased on

[U-Boot] [PATCH v6 0/4] Board support series for the eXMeritus HWW-1U-1A

2011-03-15 Thread Kyle Moffett
ies. I believe these 4 patches are ready to be merged, as all concerns presented so far have been addressed. Cheers, Kyle Moffett ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v6 2/4] mpc85xx: Add inline GPIO acessor functions

2011-03-15 Thread Kyle Moffett
be enabled with CONFIG_MPC85XX_GENERIC_GPIO Signed-off-by: Kyle Moffett Cc: Andy Fleming Cc: Kumar Gala Cc: Peter Tyser --- Changelog: v2: Moved the inline functions to a non-board-specific header v3: Added generic Linux-standard GPIO wrappers v4: Improved comments and fixed minor bugs in the

[U-Boot] [PATCH v6 1/4] mpc8xxx: DDR2/DDR3: Clean up DIMM-type switch statements

2011-03-15 Thread Kyle Moffett
switch statement. Signed-off-by: Kyle Moffett Cc: Andy Fleming Cc: Kumar Gala Cc: Kim Phillips --- Changelog: v2: Moved the constants to include/ddr_spd.h and also fixed DDR3 v3: No changes v4: Fixed up excessively long lines v5: No changes v6: Rebased onto the 'next' bra

[U-Boot] [PATCH v6 3/4] mpc85xx: Add a board-specific restart hook

2011-03-15 Thread Kyle Moffett
The HWW-1U-1A board needs to be able to override the "reset" command due to hardware design limitations. Signed-off-by: Kyle Moffett Cc: Andy Fleming Cc: Kumar Gala --- Changelog: v2: Removed in favor of more involved reset rework v6: Resurrected again (the more involved rework

[U-Boot] [PATCH v6 4/4] mpc85xx: Add board support for the eXMeritus HWW-1U-1A devices

2011-03-15 Thread Kyle Moffett
seems to work, but I don't yet have a usable 36-bit kernel or DTB, so it's mostly untested. * CPU reset is a little quirky due to hardware misfeature, see the extensive comments in the board_reset() function in hww1u1a.c Signed-off-by: Kyle Moffett Cc: Andy Fleming Cc:

[U-Boot] [PATCH v7 0/4] Board support series for the eXMeritus HWW-1U-1A

2011-03-28 Thread Kyle Moffett
eady to be merged. Cheers, Kyle Moffett ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v7 1/4] mpc8xxx: DDR2/DDR3: Clean up DIMM-type switch statements

2011-03-28 Thread Kyle Moffett
switch statement. Signed-off-by: Kyle Moffett Cc: Andy Fleming Cc: Kumar Gala Cc: Kim Phillips -- Changelog: v2: Moved the constants to include/ddr_spd.h and also fixed DDR3 v4: Fixed up excessively long lines v6: Rebased onto the 'next' branch of git://git.denx.de/u-boot-mpc85xx.

[U-Boot] [PATCH v7 2/4] mpc85xx: Add inline GPIO acessor functions

2011-03-28 Thread Kyle Moffett
be enabled with CONFIG_MPC85XX_GENERIC_GPIO. Signed-off-by: Kyle Moffett Cc: Andy Fleming Cc: Kumar Gala Cc: Peter Tyser -- Changelog: v2: Moved the inline functions to a non-board-specific header v3: Added generic Linux-standard GPIO wrappers v4: Improved comments and fixed minor bugs in the

[U-Boot] [PATCH v7 3/4] mpc85xx: Add a board-specific restart hook

2011-03-28 Thread Kyle Moffett
The HWW-1U-1A board needs to be able to override the "reset" command due to hardware design limitations. Signed-off-by: Kyle Moffett Cc: Andy Fleming Cc: Kumar Gala -- Changelog: v2: Removed in favor of more involved reset rework v6: Resurrected again (the more involved rework was

[U-Boot] [PATCH v7 4/4] mpc85xx: Add board support for the eXMeritus HWW-1U-1A devices

2011-03-28 Thread Kyle Moffett
seems to work, but I don't yet have a usable 36-bit kernel or DTB, so it's mostly untested. * CPU reset is a little quirky due to hardware misfeature, see the extensive comments in the board_reset() function in hww1u1a.c Signed-off-by: Kyle Moffett Cc: Andy Fleming Cc:

[U-Boot] [PATCH 0/5] HWW-1U-1A: e1000 driver cleanups and new features

2011-10-18 Thread Kyle Moffett
, "e1000_spi.c", and it calls a few exported functions in the main e1000.c file to coordinate EEPROM access. Comments, critiques, and compliments are highly appreciated. Cheers, Kyle Moffett -- Curious about my work on the Debian powerpcspe port? I'm keeping a blog here: http://purepe

  1   2   >