Skip to content
Snippets Groups Projects
  1. Jul 26, 2011
  2. Jul 25, 2011
  3. Apr 30, 2011
    • Wolfgang Denk's avatar
      IDE: fix compiler warnings · 96d04c31
      Wolfgang Denk authored
      
      The changes introduced by commit 0abddf82 ``cmd_ide: enhance new
      feature "CONFIG_IDE_AHB"'' caused compiler warnings like
      
      cmd_ide.c: In function 'ide_init':
      cmd_ide.c:716: warning: assignment from incompatible pointer type
      
      Constify the respective function arguments to fix this.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      96d04c31
    • Macpaul Lin's avatar
      cmd_ide: enhance new feature "CONFIG_IDE_AHB" · 0abddf82
      Macpaul Lin authored
      
      Although most IDE controller is designed to be connected to PCI bridge,
      there are still some IDE controller support AHB interface for SoC design.
      
      The driver implementation of these IDE-AHB controllers differ from other
      IDE-PCI controller, some additional registers and commands access is required
      during CMD/DATA I/O. Hence a configuration "CONFIG_IDE_AHB" in cmd_ide.c is
      required to be defined to support these kinds of SoC controllers. Such as
      Faraday's FTIDE020 series and Global Unichip's UINF-0301.
      
      Signed-off-by: default avatarMacpaul Lin <macpaul@andestech.com>
      0abddf82
  4. Feb 05, 2011
  5. Jan 11, 2011
  6. Nov 28, 2010
  7. Sep 19, 2010
    • Wolfgang Denk's avatar
      Remove HMI10 board support · 77efe35f
      Wolfgang Denk authored
      
      Recent changes caused that the HMI10 board now is included in the
      boards built by MAKEALL, which revealed that compilation for this
      board has been broken for a long time:
      
      ps2ser.c: In function 'ps2ser_init':
      ps2ser.c:155: error: 'UART_LCR' undeclared (first use in this function)
      ps2ser.c:155: error: (Each undeclared identifier is reported only once
      ps2ser.c:155: error: for each function it appears in.)
      ps2ser.c:156: error: 'UART_DLL' undeclared (first use in this function)
      ps2ser.c:157: error: 'UART_DLM' undeclared (first use in this function)
      ps2ser.c:159: error: 'UART_IER' undeclared (first use in this function)
      ps2ser.c:160: error: 'UART_MCR' undeclared (first use in this function)
      ps2ser.c:161: error: 'UART_FCR' undeclared (first use in this function)
      ps2ser.c:162: error: 'UART_FCR_ENABLE_FIFO' undeclared (first use in this function)
      ps2ser.c:166: error: 'UART_LSR' undeclared (first use in this function)
      ps2ser.c: In function 'ps2ser_putc':
      ps2ser.c:198: error: 'UART_LSR' undeclared (first use in this function)
      ps2ser.c:200: error: 'UART_TX' undeclared (first use in this function)
      ps2ser.c: In function 'ps2ser_getc_hw':
      ps2ser.c:224: error: 'UART_LSR' undeclared (first use in this function)
      ps2ser.c:225: error: 'UART_RX' undeclared (first use in this function)
      ps2ser.c: In function 'ps2ser_interrupt':
      ps2ser.c:293: error: 'UART_IIR' undeclared (first use in this function)
      
      The board is orphaned, and AFAICT has reached EOL.
      Drop support for it.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      77efe35f
  8. Aug 07, 2010
  9. Jul 24, 2010
  10. Jul 04, 2010
    • Wolfgang Denk's avatar
      Make sure that argv[] argument pointers are not modified. · 54841ab5
      Wolfgang Denk authored
      
      The hush shell dynamically allocates (and re-allocates) memory for the
      argument strings in the "char *argv[]" argument vector passed to
      commands.  Any code that modifies these pointers will cause serious
      corruption of the malloc data structures and crash U-Boot, so make
      sure the compiler can check that no such modifications are being done
      by changing the code into "char * const argv[]".
      
      This modification is the result of debugging a strange crash caused
      after adding a new command, which used the following argument
      processing code which has been working perfectly fine in all Unix
      systems since version 6 - but not so in U-Boot:
      
      int main (int argc, char **argv)
      {
      	while (--argc > 0 && **++argv == '-') {
      /* ====> */	while (*++*argv) {
      			switch (**argv) {
      			case 'd':
      				debug++;
      				break;
      			...
      			default:
      				usage ();
      			}
      		}
      	}
      	...
      }
      
      The line marked "====>" will corrupt the malloc data structures and
      usually cause U-Boot to crash when the next command gets executed by
      the shell.  With the modification, the compiler will prevent this with
      an
      	error: increment of read-only location '*argv'
      
      N.B.: The code above can be trivially rewritten like this:
      
      	while (--argc > 0 && **++argv == '-') {
      		char *arg = *argv;
      		while (*++arg) {
      			switch (*arg) {
      			...
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      54841ab5
    • Wolfgang Denk's avatar
      cd47a83b
  11. Jun 23, 2010
    • Wolfgang Denk's avatar
      Remove AmigaOneG3SE board · 953b7e62
      Wolfgang Denk authored
      
      The AmigaOneG3SE board has been orphaned or a very long time, and
      broken for more than 12 releases resp. more than 3 years.  As nobody
      seems to be interested any more in this stuff we may as well ged rid
      of it, especially as it clutters many areas of the code so it is a
      continuous pain for all kinds of ongoing work.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      953b7e62
  12. Dec 08, 2009
  13. Oct 03, 2009
  14. Sep 24, 2009
  15. Jun 12, 2009
    • Wolfgang Denk's avatar
      MPC512x: remove include/mpc512x.h · 3b74e7ec
      Wolfgang Denk authored
      
      Move needed definitions (register descriptions etc.) from
      include/mpc512x.h  into  include/asm-ppc/immap_512x.h.
      
      Instead of using a #define'd register offset, use a function that
      provides the PATA controller's base address.
      
      All the rest of include/mpc512x.h are register offset definitions
      which can be eliminated by proper use of C structures.
      
      There are only a few register offsets remaining that are needed in
      cpu/mpc512x/start.S; for these we provide cpu/mpc512x/asm-offsets.h
      which is intended as a temporary workaround only. In a later patch
      this file will be removed, too, and then auto-generated from the
      respective C structs.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: John Rigby <jcrigby@gmail.com>
      3b74e7ec
    • Wolfgang Denk's avatar
      General help message cleanup · a89c33db
      Wolfgang Denk authored
      
      Many of the help messages were not really helpful; for example, many
      commands that take no arguments would not print a correct synopsis
      line, but "No additional help available." which is not exactly wrong,
      but not helpful either.
      
      Commit ``Make "usage" messages more helpful.'' changed this
      partially. But it also became clear that lots of "Usage" and "Help"
      messages (fields "usage" and "help" in struct cmd_tbl_s respective)
      were actually redundant.
      
      This patch cleans this up - for example:
      
      Before:
      	=> help dtt
      	dtt - Digital Thermometer and Thermostat
      
      	Usage:
      	dtt         - Read temperature from digital thermometer and thermostat.
      
      After:
      	=> help dtt
      	dtt - Read temperature from Digital Thermometer and Thermostat
      
      	Usage:
      	dtt
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      a89c33db
  16. May 20, 2009
  17. Apr 27, 2009
  18. Mar 20, 2009
    • Mike Frysinger's avatar
      vsprintf: pull updates from Linux kernel · 6c6166f5
      Mike Frysinger authored
      
      This brings in support for the %p modifier which allows us to easily print
      out things like ip addresses, mac addresses, and pointers.
      
      It also converts the rarely used 'q' length modifier to the common 'L'
      modifier when dealing with quad types.
      
      While this new code is a bit larger (~1k .text), most of it should be made
      up by converting the existing ip/mac address code to use format modifiers.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      6c6166f5
  19. Feb 03, 2009
  20. Jan 28, 2009
  21. Dec 07, 2008
  22. Oct 18, 2008
  23. Aug 20, 2008
  24. Aug 06, 2008
  25. Jul 29, 2008
  26. Jul 20, 2008
  27. Jun 30, 2008
  28. May 20, 2008
    • Wolfgang Denk's avatar
      Big white-space cleanup. · 53677ef1
      Wolfgang Denk authored
      
      This commit gets rid of a huge amount of silly white-space issues.
      Especially, all sequences of SPACEs followed by TAB characters get
      removed (unless they appear in print statements).
      
      Also remove all embedded "vim:" and "vi:" statements which hide
      indentation problems.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      53677ef1
  29. May 09, 2008
  30. Apr 28, 2008
  31. Apr 17, 2008
    • Martin Krause's avatar
      IDE: fix bug in reset sequence · e175eacc
      Martin Krause authored
      
      According to the ata (ata5) specification the RESET- signal
      shall be asserted for at least 25 us. Without this patch,
      the RESET- signal is asserted on some boards for only < 1 us
      (e. g. on the TQM5200). This patch adds a general delay of
      25 us to the RESET- signal.
      
      Without this patch a Platinum 4 GiB CF card is not recognised
      properly on boards with a TQM5200 (STK52xx, TB5200).
      
      Signed-off-by: default avatarMartin Krause <martin.krause@tqs.de>
      e175eacc
  32. Mar 12, 2008
Loading