summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* ARM: set rev instead of returning itvicencb@gmail.com2012-10-021-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX pca100: Fix nand bootSascha Hauer2012-10-022-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | The following missed to add a jump to board_init_lowlevel_return for the phycard pca100 board: | commit 244198ea8bdf592799ebfd430fe9ab165284e480 | Author: Sascha Hauer <s.hauer@pengutronix.de> | Date: Sun Jul 8 18:30:42 2012 +0200 | | ARM boards: Use _text rather than TEXT_BASE | | With compressed image support TEXT_BASE will become the base | address of the uncompressed image. What the boards want instead | is the base address of the decompressor code or, if not compressed, | the base address of the uncompressed image. Use _text which is | the correct one for both cases. | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> This fixes it by adding the jump. Also imx_nand_load_image is directly called from lowlevel_init.S which fixes compilation with pbl support enabled. Tested with both compression enabled and disabled. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: cfa10036: Add proper resource lengthMaxime Ripard2012-09-281-2/+3
| | | | | | | | | | | The cfa10036 board file were missing the length parameter when adding devices. This made barebox crash early in the boot, in the mxs-mci driver. Provide the resources lengths in a consistent format. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX51 babbage: update defconfigSascha Hauer2012-09-211-1/+1
| | | | | | Reenable DEFAULT_ENVIRONMENT_GENERIC_NEW which got lost somewhere. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* sandbox: do not register device before barebox is startedJean-Christophe PLAGNIOL-VILLARD2012-09-205-3/+55
| | | | | | | This will crash when use registered bus with device registered to it. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* sandbox: check only image option in the second getoptJean-Christophe PLAGNIOL-VILLARD2012-09-201-11/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nios2: Fix DMA functions when CPU has no dcacheFranck Jullien2012-09-191-1/+13
| | | | | Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM mmu: use xmemalignSascha Hauer2012-09-161-1/+1
| | | | | | So we do not silently fail. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX6: fix usb_ehci warnings for sabreliteSteffen Trumtrar2012-09-161-0/+1
| | | | | | | | | | | This fixes the following warnings: arch/arm/boards/freescale-mx6-sabrelite/board.c: In function 'sabrelite_ehci_init': arch/arm/boards/freescale-mx6-sabrelite/board.c:265:2: warning: implicit declaration of function 'imx6_usb_phy1_disable_oc' [-Wimplicit-function-declaration] arch/arm/boards/freescale-mx6-sabrelite/board.c:266:2: warning: implicit declaration of function 'imx6_usb_phy1_enable' [-Wimplicit-function-declaration] Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX6: add usb function prototypesSteffen Trumtrar2012-09-161-0/+3
| | | | | | | Add missing prototypes to mach/usb.h Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mips: remove undefined local_irq_save/local_irq_restoreSascha Hauer2012-09-161-4/+0
| | | | | | | | mips currently uses local_irq_save and local_irq_restore which are not defined. Drop them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Cc: Antony Pavlov <antonynpavlov@gmail.com>
* ARM i.MX21: Add missing includeSascha Hauer2012-09-141-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: armlinux: get the architecture before shutdown bareboxJean-Christophe PLAGNIOL-VILLARD2012-09-121-2/+1
| | | | | | | As we may try to get it from the env. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fsl TSEC: register map boundaryRenaud Barbier2012-09-111-3/+3
| | | | | | | | The end boundary of each registers set may overlap with the start of the next register set. Subtract 1 to the end boundary. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: mxs: add proper resource lengthWolfram Sang2012-09-112-11/+11
| | | | | | | | | | | For some reason, the mxs-boards missed some length parameters when adding devices. This made reading from ocotp crash in the current version. Provide missing lengths, use a consistent format and fix the length for the LCDIF. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX51: unbreak FEC iomuxEric Bénard2012-09-071-7/+7
| | | | | | | | | | | | in commit 2bdc9f57a86dff41cfc1f87b644a2e53fdcce2b6 the iomux was synced with the kernel but this leads to some changes in the PAD_CTRL of some FEC pins leading to a non working FEC on our cpuimx51 board. This patch set back the PAD_CTRL of the missing pins to the initial value. Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PCM049: nand_bootstrap add shebangJan Weitzel2012-09-061-1/+1
| | | | | Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Atmel sam9x boards: enable the pblJean-Christophe PLAGNIOL-VILLARD2012-09-067-0/+7
| | | | | | | so we are smaller than the 256KiB reserved for barebox Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Calao boards: enable the pblJean-Christophe PLAGNIOL-VILLARD2012-09-0610-0/+10
| | | | | | | so we are smaller than the 256KiB reserved for barebox Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/smc911x'Sascha Hauer2012-09-051-1/+6
|\
| * smc911x: add support to pass the shift via platform dataJean-Christophe PLAGNIOL-VILLARD2012-09-031-1/+6
| | | | | | | | | | | | | | switch ipe337: to it at the same time to do not brake it Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/sandbox'Sascha Hauer2012-09-053-32/+64
|\ \
| * | sandbox: fix malloc argumentAlexander Aring2012-09-031-30/+57
| | | | | | | | | | | | | | | | | | | | | Fix malloc argument for sandbox system. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | sandbox: fix whitespaces in board fileAlexander Aring2012-09-031-1/+1
| | | | | | | | | | | | | | | | | | | | | Fix whitespaces in board file. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | sandbox: add asm-generic/io.hAlexander Aring2012-09-031-1/+6
| |/ | | | | | | | | | | | | | | Add in sandbox asm/io.h the asm-generic/io.h header file. Needed by NAND support. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/ppc'Sascha Hauer2012-09-056-0/+108
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: arch/ppc/boards/freescale-p2020rdb/p2020rdb.c arch/ppc/configs/p2020rdb_defconfig arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h
| * | ppc: P2020RDB Ethernet configurationRenaud Barbier2012-08-102-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | Minimal support of the Ethernet interface on the P2020RDB board. Only the eTSEC3 interface is supported. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | fsl: Freescale TSEC specific initialization.Renaud Barbier2012-08-102-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | The fsl_eth_init function maps the TSEC registers (MAC, TBI and external PHY access registers). It also passes the PHY address and TBI registers initialization values. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: GIANFAR driverRenaud Barbier2012-08-101-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | This update adds the GIANFAR driver along with the configuration and build files. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ppc: GIANFAR base address definitionRenaud Barbier2012-08-101-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | In view of the introduction of the GIANFAR Ethernet driver, the mdio and gianfar base address are defined. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/pbl'Sascha Hauer2012-09-0564-149/+626
|\ \ \
| * | | create a common ARM flush_icache functionSascha Hauer2012-08-133-6/+14
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM pbl: enable MMU during decompressionSascha Hauer2012-08-132-0/+75
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM MMU: call __mmu_cache_* as regular C functionsSascha Hauer2012-08-132-19/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that __mmu_cache_* restore the registers they can be called as regular C functions. Create a header file for them and use C functions rather than inline assembly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM __mmu_cache_*: Do not clobber registersSascha Hauer2012-08-132-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Save/restore the registers used in __mmu_cache_* so that they can be called as regular C functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM pbl: generate zbarebox.map in $(obj)Sascha Hauer2012-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All other linker generated files are there, too, so it seems logical to put the map file there aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | | ARM: fix netx/MLO/s5p image build for pblSascha Hauer2012-08-121-16/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If pbl support is enabled only zbarebox.bin was built, but not the SoC specific images. Fix this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | | ARM Makefile: Do not hardcode targets in MLO/netx/davinci/s5pSascha Hauer2012-08-121-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | use $< rather than barebox.bin directly Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | | ARM boards: Make boards pbl safeSascha Hauer2012-08-1237-5/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With pbl support enabled most boards need a pbl-y for their lowlevel stuff. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | | ARM s3c boards: Do not hardcode image sizesSascha Hauer2012-08-123-21/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing nand_boot functions all do the same, so move it to a common place. To be flexible enough for future boards the real image size is used instead of hardcoded 256k. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Juergen Beisert <jbe@pengutronix.de> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | | ARM eukrea cpuimx25: Move flash_header to seperate fileSascha Hauer2012-08-123-34/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The flash header is needed for pbl support, so move it to separate file to be able to add it to pbl-y Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | | Makefile: generate a barebox-flash-image linkSascha Hauer2012-08-124-10/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Depending on the SoC a barebox.bin, barebox.netx, barebox.s5p, MLO image is generated. With pbl support there now is an additional arch/arm/pbl/zbarebox.bin image. To help the user to determine which image should be flashed to his device, generate a barebox-flash-image link. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | | arm: always enable the garbage collector for pblJean-Christophe PLAGNIOL-VILLARD2012-08-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | This allow to save arround 1KiB on at91 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | | at91: add lowlevel init to the pblJean-Christophe PLAGNIOL-VILLARD2012-08-031-0/+2
| | | | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | | ARM pbl: Add .gitignore for generated filesSascha Hauer2012-08-031-0/+5
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | | compressed image: add gzip supportJean-Christophe PLAGNIOL-VILLARD2012-08-033-0/+11
| | | | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | | ARM: add early malloc support needed by the decompressorJean-Christophe PLAGNIOL-VILLARD2012-08-031-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | This is not needed by lzo but by gunzip, xz and others. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | | Add compressed image supportJean-Christophe PLAGNIOL-VILLARD2012-08-032-4/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows for creating a lzo compressed binary unsing the pbl. Only copy the piggydata if needed. Add CONFIG_PBL_FORCE_PIGGYDATA_COPY option In some case we need to copy the PIGGYDATA as the link address as example we run from SRAM and shutdown the SDRAM/DDR for reconfiguration but most of the time we just need to copy the executable code. based on Sascha Hauer Add compressed image support Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | | pbl: discard unwind symbol if enable in bareboxJean-Christophe PLAGNIOL-VILLARD2012-08-035-2/+29
| | | | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | | Add pre-bootloader (pbl) image supportJean-Christophe PLAGNIOL-VILLARD2012-08-0310-40/+277
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows for creating a pre-bootloader binary for - nand boot - mmc boot - compressed image The pbl will be incharge of the lowlevel init if needed. The barebox will skip it. Import string functions from linux 3.4 (arch/arm/boot/compressed/string.c) and implement a dummy panic. For now on introduce dummy zbarebox* targets and c code that will contain later the decompressor. This only implemeted on ARM. This patch is based on Sascha Hauer <s.hauer@pengutronix.de> Add compressed image support patch Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>