summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fix typo funtion -> functionAntony Pavlov2012-05-135-5/+5
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Removed duplicate definition for DEVFS_PARTITION_xxxAlexander Shiyan2012-05-1352-131/+128
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PCM038: Initial PCM970 development board supportAlexander Shiyan2012-05-134-6/+40
| | | | | | | | Some devices need to be moved to the PCM970 source file later, because in fact these devices are not installed on the main unit PCM038. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PCM038: Remove unused includesAlexander Shiyan2012-05-131-3/+0
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PCM038: Call power_init() after initializing SPI.Alexander Shiyan2012-05-131-77/+63
| | | | | | | Power and frequency should be setup before initialize other devices. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PCM038: Update board descriptionAlexander Shiyan2012-05-131-2/+3
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* defaultenv: don't overwrite $user in configUwe Kleine-König2012-05-131-1/+3
| | | | | | | | | | | | | | | | | This patch prooved to be useful while working with a colleague on a single machine. It allows to switch the user without editing /env/config by just issuing: export user=me . Note, in bash this construct (i.e. an if without body) bails out with: Syntax error: "fi" unexpected but in hush it seems to do the right thing. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* NOR flash: reduce size of cfiword_t if not using 64-bit bus.Krzysztof Halasa2012-05-131-0/+10
| | | | | | | This is done to reduce the binary size a bit. Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: malta: use common DEBUG_LL code for NS16550Antony Pavlov2012-05-132-10/+2
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: add common header file for DEBUG_LL via NS16550Antony Pavlov2012-05-131-0/+40
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c: Added switch for allowing usage 16bit register addressesAlexander Shiyan2012-05-131-9/+17
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fix typo addreee -> addressUwe Kleine-König2012-05-136-6/+6
| | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc reloc.S: use a common trap relocation functionRenaud Barbier2012-05-113-14/+48
| | | | | | | | | The trap relocation function trap_reloc can be used across several PPC platforms and is added to the ppc library. Accordingly, the definition of trap_reloc is removed from mach-mpc5xxx/start.S Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc io.h: update following MMIO primitives fixRenaud Barbier2012-05-111-0/+28
| | | | | | | | Following the MMIO primitives fix, the definitions of __raw_* function is sourced from Linux and added. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: bootm: add "MIPS barebox" handlerAntony Pavlov2012-05-114-0/+47
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: start.S: add "barebox" label at _start + 0x10Antony Pavlov2012-05-111-0/+12
| | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: put a valid "barebox" signature in the header on big-endian systems.Krzysztof Halasa2012-05-101-2/+1
| | | | | Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Fix big endian MMIO primitives.Krzysztof Halasa2012-05-071-15/+6
| | | | | | | | | | | cpu_read*() and cpu_wrire*() are precisely equal to __raw_read*() and __raw_write*(). Striving for correctness we can replace all those __raw_*() with cpu_*() as that's exactly what the former ones do. Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: remove unused struct param_struct and related info.Krzysztof Halasa2012-05-061-53/+0
| | | | | Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Preparation stage to support multiple PPC architecturesRenaud Barbier2012-05-0214-265/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | arch/ppc/Kconfig is reworked to make the configuration environment architecture neutral. All MPC5200 configuration is moved to the MPC5200 architecture specific configuration file. These modifications are reflected in the PCM030 board support. arch/ppc/Makefile compilation directives are updated in preparation for the introduction of future cpus/machines. lib/time.c is moved to the architecture specific directory and the building instructions updated in the Make files. The file is cleaned up of unused code. The definition of L1_CACHE_... is updated and CACHELINE_SIZE is defined in ppc/include/asm/cache.h for future use by the mpc85xx. The file mach-mpc5xxx/pci_mpc5200.c and mach-mpc5xxx/start.S are updated accordingly. The declaration of search_exception_table is moved in include/asm/common.h because it is used across architectures. mach-mpc5xxx/traps.c is also updated to reflect this change. The definition of exception in asm/ppc_asm.tmpl is updated for future use by the mpc85xx. The file starts.S in mach-mpc5xxx is updated accordingly. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc mmu.h: update for future mpc85xx supportSascha Hauer2012-05-021-8/+27
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc processor.h: Update for future mpc85xx supportSascha Hauer2012-05-021-0/+44
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc: add clr/setbits operationsSascha Hauer2012-05-021-0/+20
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ppc: Add fls, fls64, __ilog2_u64 and ffs64 bitopsSascha Hauer2012-05-021-0/+42
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* complete: eth typo fixJean-Christophe PLAGNIOL-VILLARD2012-05-021-1/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge tag 'complete_update_support' of git://git.jcrosoft.org/barebox into nextSascha Hauer2012-05-0130-34/+312
|\ | | | | | | | | | | | | | | | | | | | | | | | | improve complete support The following patch serie improve the complete support by adding a complete framework to allow commands complete support. The add also car complete support for eval and setting and executable file support This also include an update of the stringlist API to support asprintf API
| * complete: add executable file supportJean-Christophe PLAGNIOL-VILLARD2012-04-301-11/+19
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * complete: add delpart complete supportJean-Christophe PLAGNIOL-VILLARD2012-04-303-0/+22
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * complete: add go and sleep supportJean-Christophe PLAGNIOL-VILLARD2012-04-304-0/+10
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * complete: add eth interface complete supportJean-Christophe PLAGNIOL-VILLARD2012-04-303-0/+24
| | | | | | | | | | | | use it on ethact Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * complete: add empty complete supportJean-Christophe PLAGNIOL-VILLARD2012-04-3019-0/+40
| | | | | | | | | | | | | | | | | | | | for cpuinfo, clear, dhcp, false, login, lsmod, meminfo, passwd, pwd, reginfo, reset, true, usb, version for mach-imx and mach-mxs: dump_clocks for u_serial: mycdev Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * complete: add help complete supportJean-Christophe PLAGNIOL-VILLARD2012-04-301-0/+2
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * complete: add device name complete support for devinfoJean-Christophe PLAGNIOL-VILLARD2012-04-303-0/+23
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * complete: add generic command complete frameworkJean-Christophe PLAGNIOL-VILLARD2012-04-303-15/+55
| | | | | | | | | | | | introduce generic command specific complete callback Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * complete: add var and device param complete supportJean-Christophe PLAGNIOL-VILLARD2012-04-301-6/+90
| | | | | | | | | | | | with $xx or xx= or if device $xx.yy or xx.yy= Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * stringlist: implement string_list_add_asprintfSascha Hauer2012-04-302-0/+25
| | | | | | | | | | | | | | Useful for allocating a string list entry on the fly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * stringlist: use seperately allocated stringSascha Hauer2012-04-302-8/+8
| | | | | | | | | | | | | | | | | | | | Allocate the string in string list seperately instead of embedding a zero length string into struct stringlist. Besides looking cleaner this allows us to implement a string_list_asprintf. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | Merge tag 'malta-cfi-flash' of git://git.jcrosoft.org/barebox into nextSascha Hauer2012-05-014-1/+25
|\ \ | | | | | | | | | Mips: malta add cfi flash support
| * | qemu-malta: add nor flash supportJean-Christophe PLAGNIOL-VILLARD2012-04-302-0/+19
| | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | qemu-malta: rename serial.c to init.cJean-Christophe PLAGNIOL-VILLARD2012-04-302-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | as the garbage collector will remove the empty function and the add_ns16550_device is a empty inline if the driver is not enabled. This will simplify add device adding. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | mips: add in_be16/32 and out_be16/32 for cfi supportJean-Christophe PLAGNIOL-VILLARD2012-04-301-0/+5
| |/ | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | bootm: fix initrd handlingSascha Hauer2012-05-011-14/+10
| | | | | | | | | | | | | | | | bootm_initrd tests for data->initrd, but this never becomes true because the settingof data->initrd is inside a if(bootm_initrd()). Fix this. Also, do not support the initrd options when initrd is disabled. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'pu/assorted' into nextSascha Hauer2012-05-014-3295/+28
|\ \
| * | tlsf_malloc: return valid pointer for malloc(0)Sascha Hauer2012-04-301-0/+7
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | dhcp: set start timeSascha Hauer2012-04-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | The dhcp command starts with an unitialized start time. The start time is often long in the past which results in an immediate timeout and resend of the dhcp packet. Fix this by initializing the start time correctly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | remove dlmalloc.srcSascha Hauer2012-04-301-3265/+0
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | edit: Add proper screen size handlingSascha Hauer2012-04-301-30/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We used to have a quite slow algorithm to detect the screen size which was unused for long time. This patch changes this to first set the cursor to x=999, y=999 and the read back the actual cursor position. Since I am not confident that this works on all terminals this is only used when edit is called as 'sedit'. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'work/hush' into nextSascha Hauer2012-05-014-319/+476
|\ \ \ | |_|/ |/| |
| * | defaultenv: remove now unnecessary hush-hackSascha Hauer2012-04-302-5/+1
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | hush: allow to run interactive shell in do_shSascha Hauer2012-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | | This allows to call 'sh' in scripts without arguments in which case an interactive shell will be started. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>