summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into nextSascha Hauer2011-08-151-0/+19
|\
| * clkdev: factorize macroJean-Christophe PLAGNIOL-VILLARD2011-08-121-0/+19
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | login: add timeout supportJean-Christophe PLAGNIOL-VILLARD2011-08-111-1/+1
| | | | | | | | | | | | | | | | If a timeout is specified and expired the command will be executed by default boot Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | MIPS: import header filesAntony Pavlov2011-08-051-0/+78
|/ | | | | | | | | | | | from linux-2.6.39: * arch/mips/include/asm/* * include/asm-generic/int-ll64.h from barebox-2011.07.0 arch/x86: * arch/mips/include/asm/sections.h Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: rework MMU supportSascha Hauer2011-08-031-0/+1
| | | | | | | | | | | | | | | | | | In barebox we used 1MiB sections to map our SDRAM cachable. This has the drawback that we have to map our sdram twice: cached for normal sdram and uncached for DMA operations. As address space gets sparse on newer systems we are sometines unable to find a suitably big enough area for the dma coherent space. This patch changes the MMU code to use second level page tables. With it we can implement dma_alloc_coherent as normal malloc, we just have to remap the allocated area uncached afterwards and map it cached again after free(). This makes arm_create_section(), setup_dma_coherent() and mmu_enable() noops. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* init: introduce mem, mmu and postmmu initcallJean-Christophe PLAGNIOL-VILLARD2011-08-012-5/+11
| | | | | | | on ARM we need to init all the memory before the mmu and before any drivers use dma_alloc_coherent Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Merge branch 'resource' of git://uboot.jcrosoft.org/barebox into nextSascha Hauer2011-08-013-13/+32
|\
| * driver: remove map_baseJean-Christophe PLAGNIOL-VILLARD2011-08-011-6/+0
| | | | | | | | | | | | | | as now all the drivers and board have been switch to resource whe can drop map_base and size from device_d Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * ns16550: switch to resourceJean-Christophe PLAGNIOL-VILLARD2011-08-012-2/+4
| | | | | | | | | | | | | | use generic read/write depending on the memory size if no reg_read/write defined Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * resource: introduce add_usb_ehci_device to register echi deviceJean-Christophe PLAGNIOL-VILLARD2011-07-291-0/+17
| | | | | | | | | | | | | | | | | | pass the hccr and hcor register base via resource instroduce add_generic_usb_echi_device with hccr = base + 0x100 and hcor = base + 0x140 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * dm9000: introduce add_dm9000_device to register dm9000 deviceJean-Christophe PLAGNIOL-VILLARD2011-07-292-1/+11
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * dm9000: replace DM9000_WIDTH_8/16/32 by IORESOURCE_MEM_8/16/32BITJean-Christophe PLAGNIOL-VILLARD2011-07-291-4/+0
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | remove unused U-Boot header file include/ioports.hAntony Pavlov2011-08-011-65/+0
|/ | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: add support for the i.MX53Marc Kleine-Budde2011-07-291-1/+1
| | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
*---. Merge branches 'pu-ethaddr', 'pu-fec', 'pu-imx-iim', 'pu-resources' and ↵Sascha Hauer2011-07-291-0/+8
|\ \ \ | | | | | | | | | | | | 'pu-resources1' into next
| | | * add a ns16550 registration helper and use itSascha Hauer2011-07-291-0/+8
| | |/ | |/| | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | net: Add a possibility for boards to give network devices a MAC addressSascha Hauer2011-07-291-0/+6
| |/ |/| | | | | | | | | | | | | | | MAC addresses are sometimes stored at unusual places. This patch makes it possible to give a MAC address to a ethernet device id. This is independent of the device actually being present. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'pu' into nextSascha Hauer2011-07-292-3/+1
|\ \ | |/ |/|
| * fix typoSascha Hauer2011-07-291-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: remove unused fields from struct eth_deviceSascha Hauer2011-07-291-2/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | resource: introduce add_cfi_device to register simple cfi deviceJean-Christophe PLAGNIOL-VILLARD2011-07-231-0/+7
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | resource: introduce add_generic_device to register simple deviceJean-Christophe PLAGNIOL-VILLARD2011-07-211-2/+14
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | add a add_mem_device functionSascha Hauer2011-07-181-5/+6
| | | | | | | | | | | | | | | | | | | | | | Add a helper function for boards to register their memory devices. This makes the board code smaller and also helps getting rid of map_base and struct memory_platform_data. And switch all of the memory to it Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | mem: replace DEVFS_RDWR by IORESOURCE_MEM_WRITEABLEJean-Christophe PLAGNIOL-VILLARD2011-07-181-1/+0
| | | | | | | | | | | | | | we keep struct memory_platform_data for now on we will switch off the memories resources to struct resource Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | device: Add a dev_request_mem_region functionSascha Hauer2011-07-181-0/+14
| | | | | | | | | | | | | | | | | | | | | | We might want to add real resource tracking later. Also The first resource may not be a IORESOURCE_MEM at all. For these reasons introduce a wrapper function for driver so that they do not have to fiddle with resources directly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | debug_ll.h: add PUTS_LL() functionAntony Pavlov2011-07-181-0/+13
| | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | dm9200: use "struct resource" instead of platform_dataJean-Christophe PLAGNIOL-VILLARD2011-07-181-2/+0
| | | | | | | | | | | | drop iobase and iodata in favor of resources Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | device: introduce resource structure to simplify resource declarationJean-Christophe PLAGNIOL-VILLARD2011-07-182-0/+119
|/ | | | | | | | | | | and add multi resource per device support for now we keep the old map_base and size temporary but will switch all of the used step by step to them resource way and mirror the first resource to the map_base and size if available Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* fix: commands/bootm.c:346:2: warning: statement with no effectJean-Christophe PLAGNIOL-VILLARD2011-07-171-2/+8
| | | | | | | | convert enable_interrupts() and disable_interrupts() to static inline if no IRQ supoprt enable Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* spi: add bits_per_word to proxy structureFranck Jullien2011-07-061-0/+1
| | | | | | | | | | | | | During the creation of a new spi device, we need to have the possiblility to give the bits_per_word value to master->setup. As a matter of fact, spi master could check the spi device bits_per_word and compare this value against its capabilities. Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* include/linux/stat.h: make struct stat unifiedAntony Pavlov2011-06-281-58/+0
| | | | | | | | | | | | | The current version of struct stat has been taken from an ancient Linux Kernel. It looks different on different architectures to support different userspace formats of struct stat. As we do not have a userspace on barebox there is no need to keep different versions. Also, this unification make MIPS arch possible. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* shift and clocksourceCarlo Caione2011-06-221-0/+2
| | | | | | | Added clocks_calc_mult_shift() Signed-off-by: Carlo Caione <carlo.caione@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* eeprom: add at25 eeprom driverHubert Feurstein2011-06-211-0/+22
| | | | | | | | This commit adds support for most spi eeproms, such as the Atmel at25 models. Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* spi: add more spi transfer functionsHubert Feurstein2011-06-211-0/+74
| | | | | | | | | | | | | This commit adds the following spi transfer functions: - spi_write - spi_read - spi_write_then_read - spi_w8r8 The code has been ported from the linux kernel. Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* spi: add platform_data pointer to spi_board_infoHubert Feurstein2011-06-211-2/+2
| | | | | | | | | In the spi layer this pointer will be assigned to the platform_data pointer of the new spi device, thus it can be accessed in the drivers 'probe' handler. Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pr_warn() must be pr_warning()Dirk Behme2011-06-011-0/+2
| | | | | | | | | | | | | Fix the warning/error: drivers/mci/mci-core.c: In function 'mci_card_probe': drivers/mci/mci-core.c:1195: warning: implicit declaration of function 'pr_warn' ... drivers/built-in.o: In function `mci_card_probe': mc13892.c:(.text.mci_card_probe+0x68): undefined reference to `pr_warn' Signed-off-by: Dirk Behme <dirk.behme@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Revert "fix printf warnings"Sascha Hauer2011-05-261-5/+0
| | | | | | | | | | | | | | | | | | While getting rid of all the format(barebox_printf) warnings was nice, it caused the printf calls in arch/sandbox/os/common.c to get directed to the barebox versions rather than the libc ones causing a crash: E.G. before this revert: nm -a barebox|grep -w printf 0000000000404fa3 T print And after: nm -a barebox|grep -w printf U printf@@GLIBC_2.2.5 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> This reverts commit 6b082cfe9f9b5b2bea294918ad916c739490cea7.
* Merge branch 'next'Sascha Hauer2011-05-0614-61/+77
|\
| * ARM: compile in image size and magic into barebox imageSascha Hauer2011-05-061-0/+3
| | | | | | | | | | | | | | | | This is useful to detect a barebox image and to be able to copy only the image size if barebox is stored on raw partitions which are bigger than the image. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * kfifo: kfifo_put takes a const bufferSascha Hauer2011-04-121-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * move simple_itoa to libbb so that others can use itSascha Hauer2011-04-121-0/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * environment: make default env path configurableSascha Hauer2011-04-121-0/+3
| | | | | | | | | | | | | | | | Normally the default path to save the environment is /dev/env0. However, we can't map a file in a fat filesystem to /dev/env0. So if we want to store the environment in a file in fat we have to make it configurable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: add a context to the packet handlerSascha Hauer2011-04-121-3/+5
| | | | | | | | | | | | | | This is not yet used, but with this the different network commands can get rid of their global data. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * nand bb: add proper bb remove functionSascha Hauer2011-04-121-0/+5
| | | | | | | | | | | | | | | | The old way happily removed cdev entries which were no bb dev at all. Fix this by checking if the given device actually is a bb device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * malloc: put common memory functions to seperate fileSascha Hauer2011-04-111-0/+1
| | | | | | | | | | | | | | These functions are needed independently of the specific malloc implementation, so move them out. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * env: Make environment variable support optionalSascha Hauer2011-04-111-0/+12
| | | | | | | | | | | | | | Environment variables are only useful in interactive environments. Make it optional on our way to support a noninteractive barebox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * add block supportSascha Hauer2011-04-111-0/+32
| | | | | | | | | | | | | | | | This adds a simple block layer to barebox. Reading and writing to block devices can be painfully slow without caching, so add a simple caching layer here. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * commands: seperate usb command from usb coreSascha Hauer2011-04-111-0/+2
| | | | | | | | | | | | | | | | This patch makes the USB command optional and makes usb_rescan a global function. This way we can use USB in noninteractive environments. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * move version_string to seperate fileSascha Hauer2011-04-111-0/+1
| | | | | | | | | | | | | | | | | | In a noninteractive environment barebox will be compiled without command support. So move version_string to a seperate file which is compiled unconditionally. Also, display the banner when the simple console support is used. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * nand: remove unused header fileSascha Hauer2011-04-111-46/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>