summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* remove redundant .gitignore entriesBaruch Siach2010-12-131-2/+0
| | | | | | | | The ARCH and CROSS_COMPILE entries were introduced in commit cdfd8bdd, probably by mistake. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* console_simple: add fprintf / console_list for commands/loadb.cPeter Korsgaard2010-12-121-1/+25
| | | | | | | | | | commands/loadb.c doesn't build with CONFIG_CONSOLE_SIMPLE, because it uses fprintf / for_each_console (which uses console_list). Fix it by adding trivial implementations of both in console_simple. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add basic support from ARM Versatile/PBAlexey Zaytsev2010-12-1215-0/+888
| | | | | | | | | | | | | | | | | | | | | tested with qemu only qemu-system-arm -M versatilepb -monitor null -kernel barebox -net nic -net user -tftp "<uImage-path>/" -serial stdio add -nographic if you do not want the lcd via sdl Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com> update: - use default env - move arm_timer.h as in the kernel - add nor flash support - udpate defconfig - fix copyright copy from linux - fix ARCH_TEXT_BASE Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx: add IMX_GPIO_NR macro.Marc Reilly2010-12-121-0/+4
| | | | | | | | Simplifies specifying gpio numbers from bank/number info. From linux kernel. Signed-off-by: Marc Reilly <marc@cpdesign.com.au> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: update mach-typesMarc Reilly2010-12-101-13/+372
| | | | | Signed-off-by: Marc Reilly <marc@cpdesign.com.au> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* STM/MCI: Fix wrong register bitJuergen Beisert2010-12-091-1/+1
| | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cfi_flash_amd: Add manufacturer-specific fixupsJean-Christophe PLAGNIOL-VILLARD2010-12-031-1/+38
| | | | | | | | | | | | | | | | Run fixups based on the JEDEC manufacturer ID independent of the command set ID. This changes current behaviour: Previously, geometry reversal for AMD chips were done based on the command set ID, while they are now done based on the JEDEC manufacturer and device ID. Also add fixup for top-boot Atmel chips. based on U-Boot Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* cfi_flash: introduce flash cmdset fixupJean-Christophe PLAGNIOL-VILLARD2010-12-034-39/+52
| | | | | | | | | | | | Move fixing up like geometry reversal into separate functions. The geometry reversal fixup is now performed by altering the qry structure directly, which makes the sector init code slightly cleaner. based on U-Boot Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* cfi_flash: move reset command assigment to specific chipset init functionJean-Christophe PLAGNIOL-VILLARD2010-12-033-6/+6
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* cfi_flash: do not reset flash when probe failsJean-Christophe PLAGNIOL-VILLARD2010-12-031-1/+1
| | | | | | | | | | | | | | | | | The CFI flash driver starts at flash_init() which calls down into flash_get_size(). This starts by calling flash_detect_cfi(). If said function fails, flash_get_size() finishes by attempting to reset the flash. Unfortunately, it does this with an info->portwidth set to 0x10 which filters down into flash_make_cmd() and that happily smashes the stack by sticking info->portwidth bytes into a cfiword_t variable that lives on the stack. On a 64bit system you probably won't notice, but killing the last 8 bytes on a 32bit system usually leads to a corrupt return address. Which is what happens on a Blackfin system. based on U-Boot Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* cfi_flash: Read whole QRY structure in one goJean-Christophe PLAGNIOL-VILLARD2010-12-032-85/+97
| | | | | | | | | | | Read out the whole CFI Standard Query structure after successful cfi identification. This allows subsequent code to access this information directly without having to go through flash_read_uchar() and friends. based on U-Boot Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* cfi_flash: Introduce read and write accessorsJean-Christophe PLAGNIOL-VILLARD2010-12-034-79/+130
| | | | | | | | | | | | Introduce flash_read{8,16,32,64) and flash_write{8,16,32,64} and use them to access the flash memory. This makes it clearer when the flash is actually being accessed; merely dereferencing a volatile pointer looks just like any other kind of access. based on U-Boot Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* cfi_flash: update manufacturer id flash supportJean-Christophe PLAGNIOL-VILLARD2010-12-034-4/+25
| | | | | | | | several first banks can contain 0x7f instead of actual ID support as done in linux Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* cfi_flash: synchronize command offsets with Linux CFI driverJean-Christophe PLAGNIOL-VILLARD2010-12-032-11/+28
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* cfi_flash: use amd and standard reset flash command at probingJean-Christophe PLAGNIOL-VILLARD2010-12-031-1/+2
| | | | | | as we do not known which flash we have yet Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* cfi_flash: move flash_read_uchar from inline to noinlineJean-Christophe PLAGNIOL-VILLARD2010-12-032-14/+16
| | | | | | | | it will reduce the binary size of 28 bytes and fix some issue observerd during the porting of the at91rm9200ek when reading the device_id and manufacturor_id Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* cfi_flash: add Atmel real protect flash supportJean-Christophe PLAGNIOL-VILLARD2010-12-032-0/+21
| | | | | | based on U-Boot Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* cfi_flash: move intel real protect flash support to cfi_flash_intel.cJean-Christophe PLAGNIOL-VILLARD2010-12-034-6/+24
| | | | | | let an empty function for amd as we will add later atmel real protect flash Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* scripts: Adapt checkpatch.pl for barebox.Marek Belisko2010-11-291-3/+3
| | | | | | | | Add directories from root of barebox to top_of_kernel_tree() function for usage of script without additional parameters. Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts: Add checkpatch.pl script.Marek Belisko2010-11-291-0/+2950
| | | | | | | Overtake script checkpatch.pl from kernel source. Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* defaultenv/udpate: in xmodem mode load the data before erasingJean-Christophe PLAGNIOL-VILLARD2010-11-291-1/+8
| | | | | | | and abort the update if loadb failed or cancelled Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* defaultenv/udpate: fix typo in default barebox image nameJean-Christophe PLAGNIOL-VILLARD2010-11-291-1/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* miidev: allow multiple devJean-Christophe PLAGNIOL-VILLARD2010-11-291-0/+1
| | | | | | | now we need to set the dev id to -1 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clocksource: switch mask to CLOCKSOURCE_MASKJean-Christophe PLAGNIOL-VILLARD2010-11-2912-12/+12
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clocksource: import CLOCKSOURCE_MASK from the kernelJean-Christophe PLAGNIOL-VILLARD2010-11-291-0/+2
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'master' into nextSascha Hauer2010-11-191-1/+1
|\
| * fs: Fix bug found by sparse.Marek Belisko2010-11-191-1/+1
| | | | | | | | | | | | | | | | Patch fix following sparse warning: fs/fs.c:757:28: warning: dubious: !x & y Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | smc91111: Various sparse fixes.Marek Belisko2010-11-191-20/+20
| | | | | | | | | | | | | | | | | | | | | | Patch fix all similar warnings found by sparse: drivers/net/smc91111.c:488:9: warning: incorrect type in argument 1 (different base types) expected void const volatile [noderef] <asn:2>*<noident> got unsigned long [unsigned] offset Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | nand_s3c2410: Fix sparse warnings.Marek Belisko2010-11-192-14/+13
| | | | | | | | | | | | | | | | | | | | | | Patch fix following sparse warnings: drivers/mtd/nand/nand_s3c2410.c:125:9: warning: incorrect type in argument 1 (different base types) expected void const volatile [noderef] <asn:2>*<noident> got unsigned long Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mtd: Fix sparse warning.Marek Belisko2010-11-191-3/+4
| | | | | | | | | | | | | | | | | | | | | | Patch fix following sparse warning: drivers/mtd/nand/nand_base.c:123:16: warning: incorrect type in argument 1 (different address spaces) expected void const volatile [noderef] <asn:2>*<noident> got void *IO_ADDR_R Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | common: Add define for IOMEM helper macro.Marek Belisko2010-11-191-0/+2
| | | | | | | | | | | | | | | | IOMEM helper macro is used for address casting which then is used in read(bwl)/write(bwl) functions. Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | i.MX device macros: Fix esdhciSascha Hauer2010-11-185-6/+12
| | | | | | | | | | | | | | | | The patch introducing device macros for i.MX accidently registered a imx-mmc device for i.MX25/35/51. It should be a imx-esdhc device. This patch fixes tis Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'master' into nextSascha Hauer2010-11-175-6/+7
|\|
| * Merge branch 'x86' of git://git.jcrosoft.org/bareboxSascha Hauer2010-11-173-4/+5
| |\
| | * x86: fix out of tree build supportJean-Christophe PLAGNIOL-VILLARD2010-11-171-2/+2
| | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| | * x86: add 64bit host build supportJean-Christophe PLAGNIOL-VILLARD2010-11-171-1/+2
| | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| | * linux16: fix cmd_tbl_t as struct commandJean-Christophe PLAGNIOL-VILLARD2010-11-171-1/+1
| | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | serial_s3c24x0: Add missing brackets.Marek Belisko2010-11-171-1/+1
| |/ | | | | | | | | | | | | | | | | Fucntion s3c24x0_serial_flush() could behave wrong because of missing brackets. Correct condition logic. Problem found by sparse. Signed-off-by: Marek Belisko <marek.belisko@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mini2440: Fix compilation error.Marek Belisko2010-11-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Patch fix following compilation error: ../mini2440.c:33:28: error: asm/mach-types.h: No such file or directory ../mini2440.c: In function 'mini2440_devices_init': ../mini2440.c:113: error: 'MACH_TYPE_MINI2440' undeclared (first use in this function) ../mini2440.c:113: error: (Each undeclared identifier is reported only once ../mini2440.c:113: error: for each function it appears in.) Signed-off-by: Marek Belisko <marek.belisko@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-mainline-doc' of git://git.pengutronix.de/git/rsc/barebox ↵Sascha Hauer2010-11-174-5/+74
|\ \ | | | | | | | | | into next
| * | doc: put barebox version into documentationRobert Schwebel2010-11-153-3/+9
| | | | | | | | | | | | | | | | | | | | | Currently the documentation does always claim to be version 1. We add the revision plus the git version to the manual. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
| * | doc: add missing commandsRobert Schwebel2010-11-151-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | This patch adds command entries for all commands available in barebox. However, as there is no documentation for all of these commands, 'make docs' will now spit out warnings. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
| * | doc: sort list alphabeticallyRobert Schwebel2010-11-151-2/+2
| | | | | | | | | | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* | | Remove m68k supportSascha Hauer2010-11-17125-18837/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | The m68k support is compile broken for a long time now and nobody cared so far. We cannot keep the architecture uptodate with current development wihtout being able to compile it. It's still in the archives and can be re-added anytime once somebody cares for. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | pcm037: Enable nand driver in defaultconfigSascha Hauer2010-11-151-1/+5
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | pcm037: set nand_device in default environmentSascha Hauer2010-11-151-0/+1
|/ / | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | pcm037: Fix compilation warning.Marek Belisko2010-11-151-1/+1
| | | | | | | | | | | | | | | | | | | | This patch fix following compilation warning: ../devices-imx31.h: In function 'imx31_add_fb': ../devices-imx31.h:34: warning: passing argument 2 of 'imx_add_ipufb' from incompatible pointer type Signed-off-by: Marek Belisko <marek.belisko@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'master' into nextSascha Hauer2010-11-1215-2/+618
|\|
| * fb: set id for framebuffer device correctlySascha Hauer2010-11-121-0/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Add basic support for mini2440 dev board.Marek Belisko2010-11-0413-0/+614
| | | | | | | | | | | | | | | | | | | | | | This work is mainly based on a9m2440 board implementation from Juergen Beisert <jbe@pengutronix.de>. Functionality was tested only running barebox from ram. Loading to flash and booting will not work because missing lowlevel_init functionality (lack of jtag debugger on my side ;)). Signed-off-by: Marek Belisko <marek.belisko@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>