summaryrefslogtreecommitdiff
path: root/board/delta/delta.c
Commit message (Collapse)AuthorAgeLines
* PXA: Remove "delta" boardMarek Vasut2010-10-22-378/+0
| | | | Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
* PXA: pxa-regs.h cleanupMarek Vasut2010-10-19-18/+19
| | | | Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
* Make sure that argv[] argument pointers are not modified.Wolfgang Denk2010-07-04-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Wolfgang Denk <wd@denx.de> Acked-by: Mike Frysinger <vapier@gentoo.org>
* Convert SMC91111 Ethernet driver to CONFIG_NET_MULTI APIBen Warren2009-10-04-0/+12
| | | | | | | | | | | | | | All in-tree boards that use this controller have CONFIG_NET_MULTI added Also: - changed CONFIG_DRIVER_SMC91111 to CONFIG_SMC91111 - cleaned up line lengths - modified all boards that override weak function in this driver - modified all eeprom standalone apps to work with new driver - updated blackfin standalone EEPROM app after testing Signed-off-by: Ben Warren <biggerbadderben@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* General help message cleanupWolfgang Denk2009-06-12-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Wolfgang Denk <wd@denx.de>
* Command usage cleanupPeter Tyser2009-01-28-1/+1
| | | | | | | | Remove command name from all command "usage" fields and update common/command.c to display "name - usage" instead of just "usage". Also remove newlines from command usage fields. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
* rename CFG_ macros to CONFIG_SYSJean-Christophe PLAGNIOL-VILLARD2008-10-18-2/+2
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* More cleanup for the delta board and the generic usb_ohci driver. AddedMarkus Klotzbuecher2006-05-23-53/+2
| | | | | CFG_USB_BOARD_INIT and CFG_USB_CPU_INIT for enabling board and cpu specific initialization and cleanup hooks respectively.
* This patch adds USB storage support for the delta board. This is the firstMarkus Klotzbuecher2006-05-22-0/+52
| | | | | board to make use of a generic OHCI driver, that calls hooks for board dependant initialization.
* delta board: support for magic key detection and handling.Markus Klotzbuecher2006-04-25-0/+208
|
* * Add support for ymodem protocol downloadWolfgang Denk2006-04-01-14/+30
|\ | | | | | | | | | | | | | | Patch by Stefano Babic, 29 Mar 2006 * Memory Map Update for Delta board: U-Boot is at 0x80000000-0x84000000 Merge with /home/mk/8-benq/u-boot
| * delta board: one more DA9030 fix.Markus Klotzbuecher2006-03-30-11/+18
| |
| * delta board: minor update to DA9030 code.Markus Klotzbuecher2006-03-29-2/+4
| |
| * delta board: fix DA9030 reset procedure.Markus Klotzbuecher2006-03-27-3/+10
| |
* | GCC-4.x fixes: clean up global data pointer initialization for all boards.Wolfgang Denk2006-03-31-4/+2
|/
* delta board: DA9030 initialization and i2c support. Some minor changes toMarkus Klotzbuecher2006-03-24-0/+67
| | | | make the pxa i2c driver work with the monahans cpu.
* First steps implementing NAND support. Not working, fails to read ID.Markus Klotzbücher2006-02-28-1/+1
|
* New board directory and config for the benq delta board (copied fromMarkus Klotzbücher2006-02-20-0/+75
zylonite). Minor pxa-regs.h update.