summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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>
* 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
|\
| * 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>
| * 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>
| * 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-271-31/+24
| | | | | | | | | | | | | | | | | | | | 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-2710-53/+4
| | | | | | | | | | | | 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>
| * ppc: remove mgt5100 support from codeSascha Hauer2011-09-273-27/+2
| | | | | | | | | | | | | | This has never been used in barebox and likely is incomplete and bitrotted over time, so remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * sandbox: make asm/io.h nonemptySascha Hauer2011-09-231-0/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: switch to generic memory banksSascha Hauer2011-09-236-49/+30
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM mmu: find second level descriptors by walking the page tableSascha Hauer2011-09-232-20/+20
| | | | | | | | | | | | | | By doing this we can remove the ptes field in struct arm_memory which won't be present in a generic memory bank structure anymore. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * rename include/mem_malloc.h to include/memory.hSascha Hauer2011-09-237-7/+7
| | | | | | | | | | | | | | Which is a better name and also better to collect other things. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc pcm030: remove puts in early initSascha Hauer2011-09-231-2/+1
| | | | | | | | | | | | puts does not work at this stage, so remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * arm: use asm-generic/io.hSascha Hauer2011-09-221-48/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * introduce io.hSascha Hauer2011-09-22124-124/+124
| | | | | | | | | | | | | | To allow for some generic io accessors introduce io.h and use this instead of asm/io.h throughout the tree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * i.MX NAND: pass second base address as resourceSascha Hauer2011-09-211-1/+24
| | | | | | | | | | | | | | | | The nand controller on i.MX51/53 uses two base addresses. Instead of hardcode the second address use the new shiny resources two specify it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * imx25: imx_spi: support CSPI v0.7 as found on i.MX25Paul Fertser2011-09-214-0/+12
| | | | | | | | | | | | | | | | | | | | Based on the Linux driver. Tested with m25p80 with CS in GPIO mode. Clock setting support is ad-hoc as the corresponding mach is not using the generic clock infrastructure. Signed-off-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * at91sam9260ek: fix broken defconfigHubert Feurstein2011-09-201-0/+1
| | | | | | | | | | Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * at91: add missing clkdev changesHubert Feurstein2011-09-203-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-09-204-0/+18
| | | | | | | | | | Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * at91: add Calao USB-A9263Jean-Christophe PLAGNIOL-VILLARD2011-09-205-1/+133
| | | | | | | | | | | | | | http://www.calao-systems.com Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * at91: add Calao USB-A960 and USB-A9G20 C01 & C11 board supportJean-Christophe PLAGNIOL-VILLARD2011-09-209-0/+440
| | | | | | | | | | | | | | http://www.calao-systems.com Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * at91: add ohci supportJean-Christophe PLAGNIOL-VILLARD2011-09-206-0/+105
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * at91: nand switch ecc base to resourceJean-Christophe PLAGNIOL-VILLARD2011-09-208-17/+45
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * at91/boards: switch to software ecc as in linux kernelJean-Christophe PLAGNIOL-VILLARD2011-09-204-4/+4
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * at91: Fix uhpck clock rate in upll caseJean-Christophe PLAGNIOL-VILLARD2011-09-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | from linux commit 8251544f9e28058e54c4f35b7cd13b0d191d7555 Author: Ryan Mallon <ryan@bluewatersys.com> The uhpck clock should be divided from the utmi clock, not its parent (main). This change is mostly cosmetic as the uhpck rate value is not used anywhere except for the debugfs clock output. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>