summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Release v2011.11.0v2011.11.0Sascha Hauer2011-11-091-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM pcm043: Use external bootmodeSascha Hauer2011-11-021-0/+1
| | | | | | | The pcm043 uses external bootmode, update the defconfig accordingly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb: ehci-hcd.c: fix 'value computed is not used' warningAntony Pavlov2011-10-261-2/+2
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fix bug introduced with fixing path_check_prereq()Sascha Hauer2011-10-191-2/+6
| | | | | | | | | | | | | | | | | | | | | | This fixes a bug introduced with: commit 74c36329c3531acf59d76a09cd0c4cf11ce6b6a0 Author: Antony Pavlov <antonynpavlov@gmail.com> Date: Tue Oct 18 13:48:44 2011 +0400 fs: fix path_check_prereq() This patch makes impossible the situations than path_check_prereq() can make 'return 0' without changing errno. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> path_check_prereq is supposed to return 0 when a file does not exist and S_UB_DOES_NOT_EXIST is given. stat() changes errno, so we have to set errno back to 0 before returning. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs: fix chdir()Antony Pavlov2011-10-181-1/+2
| | | | | | | | chdir() allocates memory using mormalise_path(). But if path_check_prereq() returns error than memory isn't freed. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs: fix path_check_prereq()Antony Pavlov2011-10-181-3/+4
| | | | | | | | This patch makes impossible the situations than path_check_prereq() can make 'return 0' without changing errno. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Avoid warnings by using format(__printf__)Loïc Minier2011-10-183-8/+8
| | | | | | | | | | | | | | | | When building sandbox, barebox is built with -Dprintf=barebox_printf as to not collide with the printf provided by libc. This would also match the format(printf) function __attribute__. Since gcc documents that __printf__ can be used instead of printf as a format attribute, use this instead and avoid a lot of noisy warnings. NB: this relates to 6b082cfe9f9b5b2bea294918ad916c739490cea7 which was an earlier attempt at solving this, which got reverted due to other regressions. Signed-off-by: Loïc Minier <loic.minier@linaro.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Only pass -P to cpp when generating ld scriptsLoïc Minier2011-10-188-8/+6
| | | | | | | | | | | | | | | | | | | | | | | When building sandbox with ccache, one would hit warnings such as: warning: 'struct mmsghdr' declared inside parameter list on random files; a way to reproduce this issue is to build a simple file doing just: #include <sys/socket.h> int main(void) { return 0; } gcc -Wall -P -c -o foo foo.c But actually the -P flag is only useful when generating non-C files, such as linker scripts in the case of barebox. Removing the -P flag from all the gcc invocations, except when generating .lds files makes the warning go away. It turns out that this is what linux/scripts/Makefile.build also does nowadays. Signed-off-by: Loïc Minier <loic.minier@linaro.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Really fix the 'bootz' commandJuergen Beisert2011-10-181-3/+3
| | | | | | | | | | | | | Running the 'bootz' command always fails with could not read <some file> due to wrong usage of pointers and structures. This is the second try to fix the 'bootz' command. At least on my target it is now be able again to load a kernel without any error. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* 'bootz' command fails to load the zImage's headerJuergen Beisert2011-10-141-1/+1
| | | | | | | | | | | | Running the 'bootz' command always fails with could not read <some file> due to it loads only a size of a pointer, instead of the size of the expected header structure. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'pu/omap'Sascha Hauer2011-10-142-2/+2
|\
| * ARM panda: fix default env path in configSascha Hauer2011-10-131-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mci omap: do not fail on nonexistent pdataSascha Hauer2011-10-131-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | nios2: remove warnings generated by include/io.hFranck Jullien2011-10-141-0/+2
| | | | | | | | | | | | | | | | | | | | This patch remove those warnings in nios2 drivers: include/io.h:7:5: warning: "__BYTE_ORDER" is not defined include/io.h:7:21: warning: "__BIG_ENDIAN" is not defined Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | arm: at91: Add Atmel NAND support in config for at91sam9m10g45ekThomas Petazzoni2011-10-141-0/+1
| | | | | | | | | | | | | | | | | | | | Contrary to other Atmel boards, the AT91SAM9M10G45EK board file only describes the case where NAND is used as the storage for Barebox and its environment. Therefore, it makes sense to enable the Atmel NAND driver in the default configuration for this board. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | arm: at91: fix environment location in flash for multiple boardsThomas Petazzoni2011-10-143-3/+3
| | | | | | | | | | | | | | | | | | The environment partition was overlapping the Barebox partition in those three Atmel boards. Saving the environment resulted in the Barebox being overwritten. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Fix spelling of "omitted"; found by lintianLoïc Minier2011-10-142-2/+2
|/ | | | | Signed-off-by: Loïc Minier <loic.minier@linaro.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ID fix for mx51 SDHC2Alexander Shiyan2011-10-121-1/+1
| | | | | | | | Hello. Please review this patch. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci-core: fix typo for pr_warnRobert Schwebel2011-10-121-1/+1
| | | | | | | It is pr_warning(), not pr_warn(). Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* menu: fix alinmentRobert Schwebel2011-10-121-1/+1
| | | | | | | Fixes alignment for the "System Type" menu entry. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Fixed unaligned accessFabian van der Werf2011-10-091-5/+10
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'next'Sascha Hauer2011-10-09282-1154/+6494
|\
| * Allow data-only i2c transfersRosen Kolev2011-10-072-24/+29
| | | | | | | | | | | | | | | | | | | | Modified the i2c_imx driver to support data-only transfers, without command byte. This allows to construct more complex i2c transfers and support non genuine devices like Atmel ATxx secure memory, where the master reads data after a write command. Signed-off-by: Rosen Kolev <rosen.kolev@amk-drives.bg> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * x86: Define byteorderJuergen Beisert2011-10-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | This is required to avoid warnings like this: In file included from <some file>: include/io.h:7:5: warning: "__BYTE_ORDER" is not defined include/io.h:7:21: warning: "__BIG_ENDIAN" is not defined Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * spi: indicate in the docs that per-transfer bpw setting is not supportedPaul Fertser2011-09-291-1/+2
| | | | | | | | | | | | | | | | Currently it's not implemented by any driver so add a note to the documentation. Signed-off-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * spi: enfore default bits_per_word valuePaul Fertser2011-09-291-1/+1
| | | | | | | | | | | | | | | | Documentation says it should default to 8 when not specified explicitly by the device data. Signed-off-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * spi: let master a chance to setup device before registering itPaul Fertser2011-09-291-3/+2
| | | | | | | | | | | | | | | | | | Call setup() before registering the device because registering leads to a probe routine of the slave device and that requires an initialised master. Signed-off-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mach-imx: iim: cosmetic changes to the code to make it easier to followPaul Fertser2011-09-281-10/+10
| | | | | | | | | | | | | | | | | | | | This brings consistency to the way variables are named and used according to the Freescale documentation. Also, since user is supplying row indicies, and not offsets, it's reasonable to amend the error message accordingly. Signed-off-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mach-imx: iim: clarify documentationPaul Fertser2011-09-281-0/+10
| | | | | | | | | | | | | | | | This adds additional Kconfig help to clarify the way to use barebox for eFuses handling. Signed-off-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * image: move map_image amd unmap_image to image.cJean-Christophe PLAGNIOL-VILLARD2011-09-283-114/+122
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * image: add multi image support for bootmJean-Christophe PLAGNIOL-VILLARD2011-09-282-2/+83
| | | | | | | | | | | | | | you can choose the initrd via @<num> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * image: use data base addr for image_print_contents, image_multi_count/getimgJean-Christophe PLAGNIOL-VILLARD2011-09-284-23/+23
| | | | | | | | | | | | | | | | as in barebox the data could be the mapped file or a allocated memory with just the data (non header) Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Merge branch 'pu-ppc' into nextSascha Hauer2011-09-2824-538/+231
| |\
| | * net fec_mpc5200: disable fec on shutdownSascha Hauer2011-09-271-0/+8
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * ppc common.h: remove unused function declarationsSascha Hauer2011-09-271-6/+0
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * ppc mpc5200: remove various board specific register setup from generic codeSascha Hauer2011-09-272-23/+0
| | | | | | | | | | | | | | | | | | The boards can do this themselves, no need for ifdef orgies. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * ppc mpc5200: remove cs setup from cpu_initSascha Hauer2011-09-271-87/+0
| | | | | | | | | | | | | | | | | | If a board wishes to setup a chipselect, it can use mpc5200_setup_cs. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * pcm030: cleanup config.hSascha Hauer2011-09-271-64/+2
| | | | | | | | | | | | | | | | | | Remove several now unnecessary defines. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * ppc mpc5200: remove bus clock switching from generic codeSascha Hauer2011-09-271-15/+0
| | | | | | | | | | | | | | | | | | | | | The only user (pcm030) already setups the bus clocks in its board code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * pcm030: fix /dev/self0 and /dev/env0Sascha Hauer2011-09-271-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | /dev/self0 and /dev/env0 are in the last MB of nor flash. The offset depends on the size of the flash, so detect this at runtime. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * mpc5200: hardcode internal sram for initramSascha Hauer2011-09-271-3/+2
| | | | | | | | | | | | | | | | | | Why should we use other ram? No need to configure this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * mpc5200: hardcode MBAR to 0xf0000000Sascha Hauer2011-09-271-0/+2
| | | | | | | | | | | | | | | | | | We use 0xf0000000 in barebox, no need to configure this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * ppc: hardcode sdram base to 0x0Sascha Hauer2011-09-272-2/+2
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * pcm030: use new functionalitySascha Hauer2011-09-272-32/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We introduced several new functions to ease our life on ppc, use themn on the pcm030: - setup iomux and bus clocks in board code - add sdram memory according to detected size Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * ppc mpc5200b: cleanup lowlevel startupSascha Hauer2011-09-271-55/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old startup process consisted of several CFG_LOWBOOT, CFG_RAMBOOT ifdeffery which I do not understand. So remove all this and replace it with: - put the entry point for second stage loaders to offset 0x0 so that we can do a go /dev/ram0 to start a second barebox - When we come from the reset vector assume MBAR is at 0x80000000 - When we come from the second stage entry assume that SPR 311 is in sync with the current MBAR address. - Switch MBAR to 0xf0000000 and we are done. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * ppc mpc5200: add function to setup bus clocksSascha Hauer2011-09-272-0/+41
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * ppc mpc5200: add function to configure a chipselectSascha Hauer2011-09-272-0/+74
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * ppc mpc5200: add function to determine configured sdram sizeSascha Hauer2011-09-272-0/+20
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * remove EARLY_INIT and EARLY_CONSOLE supportSascha Hauer2011-09-2718-224/+10
| | | | | | | | | | | | | | | | | | Bitrotted over time and nearly unused, so remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * ppc: add a get_pc() functionSascha Hauer2011-09-271-0/+17
| | | | | | | | | | | | | | | | | | Useful to determine whether sdram has to be setup or not. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>