summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* fix malloc space sizesSascha Hauer2011-12-037-8/+8
| | | | | | end is start + size - 1, not start + size. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* update configs and default envs for uncompressSascha Hauer2011-11-2929-29/+29
| | | | | | | uncompress is the replacement for unlzo. Adjust environments and defconfigs accordingly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm bootm: remove unnecessary includeSascha Hauer2011-11-291-1/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* armlinux: remove unnecessary includeSascha Hauer2011-11-291-1/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootm: use initrd_address and initrd_sizeSascha Hauer2011-11-291-5/+5
| | | | | | Make these fields in struct image_data the reference for image handlers Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootm: push relocate_image up to the generic commandSascha Hauer2011-11-294-16/+0
| | | | | | | | | All handlers used to just relocate the image without any checks, so we are doomed if we write outside of SDRAM or will overwrite ourselves. Move the relocation up to the generic part where we have a chance of catching these issues. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM bootm: remove now obsolete argsSascha Hauer2011-11-291-29/+0
| | | | | | | | Now that the arch_number and system_rev variables can be set from the environment we don't need the old bootm command line switch mechanism anymore. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* armlinux: cleanup linux varsSascha Hauer2011-11-291-27/+65
| | | | | | | | | | | | arch_number is currently exported to the environment but not read back on boot time which is rather confusing. system_rev and system_serial are not exported to the environment but can be set in board specific code. This patch exports all these variables to the environment and reads them back on boot time. All variables get a armlinux_ prefix, so the arch_number environment variable gets renamed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'work/magicvars' into nextSascha Hauer2011-11-298-1/+36
|\
| * ARM i.MX boot: Add barebox_loc magicvarSascha Hauer2011-11-291-0/+3
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * add magicvar commandSascha Hauer2011-11-297-1/+33
| | | | | | | | | | | | | | The magicvar command gives an overview about all environment variables with a special meaning. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'master' into nextSascha Hauer2011-11-2910-13/+49
|\| | | | | | | | | | | | | Conflicts: drivers/ata/disk_drive.c Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Mini2440: Fix leftover from A9M2440 copyJuergen Beisert2011-11-272-5/+7
| | | | | | | | | | | | | | | | These symbols where defined for the A9M2440 platform. Rename them to the platform they now belong to. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * nios2: Include asm/unaligned.hFranck Jullien2011-11-241-0/+15
| | | | | | | | | | | | | | drivers/ata/disk_drive.c needs it.... Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Merge branch 'pu/imx53-nand-warning'Sascha Hauer2011-11-221-1/+1
| |\
| | * ARM i.MX53: silence compiler warning in nand.cSascha Hauer2011-11-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | nand.c issues a warning when imx_nand_set_layout is empty. We don't need this function on i.MX53, so silence the warning. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | x86: fix symbol size calculationLucas De Marchi2011-11-112-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The size is being calculated after changing to another section, which gives error with gcc 4.6: AS arch/x86/lib/traveler.o /tmp/ccP0z8xx.s: Assembler messages: /tmp/ccP0z8xx.s: Error: .size expression for real_to_prot does not evaluate to a constant /tmp/ccP0z8xx.s: Error: .size expression for prot_to_real does not evaluate to a constant make[1]: *** [arch/x86/lib/traveler.o] Error 1 Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | x86: fix build error because of missing headerLucas De Marchi2011-11-112-0/+16
| | | | | | | | | | | | | | | Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: mx53-loco: Remove duplicate call to loco_fec_reset()Fabio Estevam2011-11-111-2/+0
| | | | | | | | | | | | | | | | | | | | | Remove duplicate call to loco_fec_reset(). Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Merge branch 'next'Sascha Hauer2011-11-0926-1846/+1466
| |\ \ | | |/ | |/|
| * | 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>
* | | remove irq support fragmentsSascha Hauer2011-11-2814-689/+0
| | | | | | | | | | | | | | | | | | | | | | | | We never had interrupt support in barebox and we have no plans to add interrupt support. Even if we do I doubt the current fragments of irq support are helpful, so remove them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | arm: trivial renaming create_sectionsRobert Jarzmik2011-11-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename create_section into create_sections, as the function is used to create multiple sections, and in particular it creates the 4096 sections of 1MBytes to have a 1:1 flat mapping of the 4GBytes address space. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | spi/altera_spi: Add cs_change supportFranck Jullien2011-11-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Linux kernel says (spi.h) : * All SPI transfers start with the relevant chipselect active. Normally * it stays selected until after the last transfer in a message. Drivers * can affect the chipselect signal using cs_change. * * (i) If the transfer isn't the last one in the message, this flag is * used to make the chipselect briefly go inactive in the middle of the * message. Toggling chipselect in this way may be needed to terminate * a chip command, letting a single spi_message perform all of group of * chip transactions together. * * (ii) When the transfer is the last one in the message, the chip may * stay selected until the next transfer. On multi-device SPI busses * with nothing blocking messages going to other devices, this is just * a performance hint; starting a message to another device deselects * this one. But in other cases, this can be used to ensure correctness. * Some devices need protocol transactions to be built from a series of * spi_message submissions, where the content of one message is * determined by the results of previous messages and where the whole * transaction * ends when the chipselect goes intactive. In other words, cs_change changes the default chipselect *behavior*. Support of cs_change is necessary to implement the mci spi driver. This patch also fix few things: Passing the bus number to the brand new master device. Disable chipselect during master->setup. Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | sandbox: move ELFCLASS detection to asm/elf.hJean-Christophe PLAGNIOL-VILLARD2011-11-222-14/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | now we can detect the host build from gcc macro and cross compile the sandbox Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Loïc Minier <loic.minier@linaro.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Mini2440: Everything's now present to provide USB host featureJuergen Beisert2011-11-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | The S3C2440 CPU comes with an internal OHCI the generic part of Barebox already supports. Just add the missing part. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | omap: Unify run_shell() in xload configurationSanjeev Premi2011-11-115-81/+43
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | Currently, there are multiple definitions of run_shell() for each board that can be build in "xload" configuration. Now there is only one function used by all boards. The functions defined in xload.c are used only when "xload" configuration used; but it gets compiled unconditionally. This has been fixed as well. Signed-off-by: Sanjeev Premi <premi@ti.com> Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM i.MX53: enable l2 cacheSascha Hauer2011-11-021-7/+6
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'master' into nextSascha Hauer2011-10-237-10/+8
|\|
| * Only pass -P to cpp when generating ld scriptsLoïc Minier2011-10-186-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | sandbox: simplify linker scriptJean-Christophe PLAGNIOL-VILLARD2011-10-233-232/+10
| | | | | | | | | | | | | | | | | | let the linker to provide the basic linker script just insert the commands and initcalls before the .rodata section Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | sandbox: remove duplicate barebox.lds.SJean-Christophe PLAGNIOL-VILLARD2011-10-232-233/+0
| | | | | | | | | | | | | | | | today we have the same linker script in board and lib and only the board linker script is used Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | sandbox: move __SANDBOX__ to MakefileJean-Christophe PLAGNIOL-VILLARD2011-10-232-3/+1
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM Linux: Add device tree supportSascha Hauer2011-10-191-3/+12
| | | | | | | | | | | | | | | | If the user has parsed a tree, we start Linux using the device tree, otherwise we use the traditional ATAG mechanism. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | arm: cpuinfo: import ARM architecture detection code from LinuxAntony Pavlov2011-10-151-21/+70
| | | | | | | | | | | | | | This code correctly detects architecture (v7) for Cortex-A9. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'master' into nextSascha Hauer2011-10-1419-13/+35
|\|
| * Merge branch 'pu/omap'Sascha Hauer2011-10-141-1/+1
| |\
| | * ARM panda: fix default env path in configSascha 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>
| * ID fix for mx51 SDHC2Alexander Shiyan2011-10-121-1/+1
| | | | | | | | | | | | | | | | Hello. Please review this patch. 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>
| * Merge branch 'next'Sascha Hauer2011-10-09178-648/+1314
| |\
| * | sandbox: make asm/io.h nonemptySascha Hauer2011-10-081-0/+1
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM nomadik: Add missing includeSascha Hauer2011-10-081-0/+1
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | at91: add missing clkdev changesHubert Feurstein2011-10-083-10/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the following compile errors arch/arm/mach-at91/at91sam9g45.c:185:3: error: 'ohci_clk' undeclared here (not in a function) arch/arm/mach-at91/at91sam9g45.c:186:3: error: 'tcb1_clk' undeclared here (not in a function) arch/arm/mach-at91/at91sam9g45_devices.c: In function 'at91_add_device_mci': arch/arm/mach-at91/at91sam9g45_devices.c:258:2: warning: implicit declaration of function 'at91_clock_associate' [...] arch/arm/mach-at91/built-in.o: In function `at91_add_device_mci': sam9_smc.c:(.text.at91_add_device_mci+0x1d0): undefined reference to `at91_clock_associate' arch/arm/mach-at91/at91sam9260_devices.c: In function 'at91_add_device_mci': arch/arm/mach-at91/at91sam9260_devices.c:251:2: warning: implicit declaration of function 'at91_clock_associate' which were introduced in commit: "at91: swtich to clkdev" (ae19fe26cc230bc38238c2d66b8f464761286316) Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | at91: add spi clock connection id entriesHubert Feurstein2011-10-084-0/+18
| | | | | | | | | | | | | | | Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>