summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* EFI: introduce efi_strguid to convert GUID to human readable namesJean-Christophe PLAGNIOL-VILLARD2014-07-162-3/+5
| | | | | | | | | use in devinfo Protocols Tested today on qemu with all the GUID translated Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add initial EFI architecture supportSascha Hauer2014-07-1634-0/+2189
| | | | | | | This adds support for running barebox in an EFI environment on X86 PC hardware. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Revert "ARM: OMAP: Do not show MLO/SPI image options with OMAP_MULTI_BOARDS"Sascha Hauer2014-07-112-2/+1
| | | | | | | The assumption that OMAP_BUILD_IFT is unused for multi board support is wrong. It is indeed used, so revert the patch. This reverts commit d1ec6fb0c9bb66939e85964c2f5214b117c78ecf.
* PCM051: Update RAM timingsTeresa Gámez2014-07-091-15/+13
| | | | | | | | | Updated timings for new MT41J256M16HA15EIT RAM. Timings are backward compatible to the MT41J256M8HX15E RAMs Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: OMAP: Do not show MLO/SPI image options with OMAP_MULTI_BOARDSSascha Hauer2014-07-072-1/+2
| | | | | | | The MLO/SPI image options have no effect with OMAP_MULTI_BOARDS enabled, so do not show them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91mux: Fix both help info and Kconfig info.Robert P. J. Day2014-07-071-2/+2
| | | | | | | Correct options are, in fact, -p and -b. Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2014-07-0448-234/+22
|\ | | | | | | | | | | | | | | Conflicts: arch/arm/boards/chumby_falconwing/falconwing.c arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c arch/x86/mach-x86.dox scripts/setupmbr/setupmbr.c
| * sdma.h: Typo, "interupt" -> "interrupt"Robert P. J. Day2014-06-301-2/+2
| | | | | | | | | | | | | | Fix only two "interupt" misspellings in entire barebox codebase. Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Fix misspellings of "persistant" -> "persistent" in various placesRobert P. J. Day2014-06-306-19/+19
| | | | | | | | | | | | | | | | Fix misspellings of "persistent", including the renaming of a function to "register_persistant_environment". Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * sandbox: add bit manipulation stuffHolger Schurig2014-06-261-0/+7
| | | | | | | | | | | | | | | | The functions are already in the sandbox, just the #defines are missing. Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * remove unused boot-menu-add-entrySascha Hauer2014-06-2341-205/+0
| | | | | | | | | | | | | | The boot-menu-add-entry script no longer exists. Remove it from boot scripts. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: AM335x: beaglebone: add simple script to change usb current limitJan Luebbe2014-06-231-0/+5
| | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: AM335x: beaglebone: remove obsolete configJan Luebbe2014-06-231-19/+0
| | | | | | | | | | | | | | | | The bootargs are now autogenerated by barebox and the hostname should not be preconfigured. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mips'Sascha Hauer2014-07-0411-42/+442
|\ \
| * | MIPS: qemu-malta_defconfig: enable PCI & network stuffAntony Pavlov2014-07-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qemu usage: # ifconfig br0:1 172.20.0.1 # qemu-system-mips -nodefaults -nographic -M malta -m 256 \ -serial stdio -monitor null \ -bios ./barebox-flash-image \ -net nic,vlan=0,model=rtl8139 \ -net tap,vlan=0,script=net_br0.sh ... barebox:/ eth0.ipaddr=172.20.0.2 barebox:/ eth0.serverip=172.20.0.1 barebox:/ ping 172.20.0.1 phy0: Link is up - 100/Full host 172.20.0.1 is alive barebox:/ Sample net_br0.sh (for connecting to br0 interface, so you can connect barebox to your real network): #!/bin/sh brctl addif br0 $1 ifconfig $1 up Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: add PCI support for GT64120-based Malta boardAntony Pavlov2014-07-045-0/+293
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: add dma_alloc_coherent()Antony Pavlov2014-07-041-0/+25
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: ritmix-rzx50_defconfig: enable gpio stuffAntony Pavlov2014-06-271-13/+15
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: dts: jz4755.dtsi: add gpioAntony Pavlov2014-06-271-0/+42
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: XBurst: use gpiolibAntony Pavlov2014-06-271-0/+1
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: mach-ath79: drop extra 'select HAVE_CLK'Antony Pavlov2014-06-251-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | We already have 'select COMMON_CLK' so 'select HAVE_CLK' is redundant. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: qemu-malta_defconfig: enable gpio & i2c stuffAntony Pavlov2014-06-251-28/+32
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: dts: qemu-malta.dts: use i2c-gpio for accessing CBUS FPGA I2C busAntony Pavlov2014-06-251-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also we can enable m24c02 eeprom chip in dts-file e.g. &i2c0 { status = "okay"; eeprom: m24c02@50 { compatible = "spd"; reg = <0x50>; }; }; Alas! qemu mips malta spd m24c02 eeprom chip emulation is not perfect: the block read operation does not work properly. Here is an example. If we read eeprom content byte-by-byte then there is no problem: barebox:/ for i in 0x08 0x09 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f ; > do i2c_read -b 0 -a 0x50 -r $i -c 1 ; done 0x01 0x75 0x54 0x00 0x82 0x08 0x00 0x01 Compare this output with content of qemu.git/hw/mips/mips_malta.c: static eeprom24c0x_t spd_eeprom = { .contents = { ... /* 00000008: */ 0x01,0x75,0x54,0x00,0x82,0x08,0x00,0x01, But if we read several bytes at once the we have data corruption: barebox:/ i2c_read -b 0 -a 0x50 -r 0x8 -c 8 0x01 0xff 0xff 0xff 0xff 0xff 0xff 0xff Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: dts: qemu-malta.dts: enable CBUS FPGA I2C gpio driverAntony Pavlov2014-06-241-0/+7
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: malta: enable gpiolibAntony Pavlov2014-06-241-0/+1
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: add <asm/gpio.h> header fileAntony Pavlov2014-06-241-0/+6
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/marvell'Sascha Hauer2014-07-0430-193/+460
|\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: arch/arm/boards/Makefile arch/arm/dts/Makefile
| * | | pinctrl: mvebu: add pinctrl drivers for Dove and KirkwoodSebastian Hesselbarth2014-06-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds pinctrl drivers for Marvell Dove and Kirkwood SoCs based on a common driver stub. This design is based on the corresponding Linux driver and should ease additional drivers for Marvell Armada SoCs. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: mvebu: determine SoC id and revision from PCIe nodesSebastian Hesselbarth2014-06-252-0/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Marvell MVEBU SoC id and revision can be read out from any PCIe port registers. This adds corresponding code to read out id and revision and provides a helper function for drivers to use it. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: mvebu: select PCI specific DT bus translatorSebastian Hesselbarth2014-06-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Marvell MVEBU DT files contain some nodes mapped to PCI address space, add the translator Kconfig to be able to iomap those node's addresses. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: mvebu: remove dtb Makefile entriesSebastian Hesselbarth2014-06-241-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MULTI_PBL images have a built-in dtb by default. With all MVEBU SoCs converted to MULTI_PBL images, get rid of the extra Makefile rules for appended dtbs. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
| * | | ARM: mvebu: convert to multiple board selectionSebastian Hesselbarth2014-06-244-27/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With all SoCs converted to DT based probing, select PBL_MULTI_IMAGES support and get rid of SoCs Kconfig choice to allow multiple boards to be selected. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
| * | | ARM: mvebu: convert PlatHome Openblocks AX3-4 to PBL_MULTI_IMAGESSebastian Hesselbarth2014-06-245-1/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This converts Marvell Armada XP based PlatHome Openblocks AX3-4 to PBL_MULTI_IMAGES. A DT overlay is added to keep possible barebox-specific changes separated and added to lowlevel board init. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
| * | | ARM: mvebu: convert Marvell Armada XP GP to PBL_MULTI_IMAGESSebastian Hesselbarth2014-06-245-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This converts Marvell Armada XP based Marvell Armada XP GP to PBL_MULTI_IMAGES. A DT overlay is added to keep possible barebox-specific changes separated and added to lowlevel board init. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
| * | | ARM: mvebu: convert Globalscale Mirabox to PBL_MULTI_IMAGESSebastian Hesselbarth2014-06-245-1/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This converts Marvell Armada 370 based Globalscale Mirabox to PBL_MULTI_IMAGES. A DT overlay is added to keep possible barebox-specific changes separated and added to lowlevel board init. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
| * | | ARM: mvebu: convert USI Topkick to PBL_MULTI_IMAGESSebastian Hesselbarth2014-06-243-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This converts Marvell Kirkwood based USI Topkick to PBL_MULTI_IMAGES. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
| * | | ARM: mvebu: convert Globalscale Guruplug to PBL_MULTI_IMAGESSebastian Hesselbarth2014-06-243-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This converts Marvell Kirkwood based Globalscale Guruplug to PBL_MULTI_IMAGES. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
| * | | ARM: mvebu: convert Armada 370/XP devices to be probed from DTSebastian Hesselbarth2014-06-245-65/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With Armada 370/XP DT files available, convert Armada 370/XP SoC init to register basic devices from DT only. Makefile targets for dtbs will be removed again as soon as MULTI_PBL is available. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
| * | | ARM: mvebu: convert Kirkwood devices to be probed from DTSebastian Hesselbarth2014-06-244-47/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With Kirkwood DT files available, convert Kirkwood SoC init to register basic devices from DT only. Makefile targets for dtbs will be removed again as soon as MULTI_PBL is available. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
| * | | ARM: dts: sort pbl entries by alphabetSebastian Hesselbarth2014-06-241-12/+13
| | | | | | | | | | | | | | | | | | | | | | | | Clean up pbl Makefile entries, that are out of alphabetical order. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
| * | | ARM: mvebu: add 25MHz fixed clock for Armada XPSebastian Hesselbarth2014-06-241-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Armada XP timers can be run from a 25MHz fixed clock. Add the corrsponding clock and clock alias to SoC setup. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
| * | | ARM: mvebu: move lowlevel code to lowlevel.cSebastian Hesselbarth2014-06-243-41/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mach-mvebu has two files containing lowlevel code. Consolidate both into mach-mvebu/lowlevel.c. Also put the now empty mach-mvebu/common.c into non-lowlevel obj-y as it will be used for common non-lowlevel code later. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
| * | | ARM: mvebu: delete unused mach/mvebu.hSebastian Hesselbarth2014-06-241-22/+0
| | | | | | | | | | | | | | | | | | | | | | | | This removes the stale mach/mvebu.h include as there is no user of it. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
| * | | ARM: mvebu: set default TEXT_BASE by SoCSebastian Hesselbarth2014-06-241-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | All current boards use the same TEXT_BASE, therefore set the default TEXT_BASE by SoC instead of by board. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
| * | | ARM: mvebu: set model and default hostname for DoveSebastian Hesselbarth2014-06-241-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Set default model and hostname based on SoC name. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
* | | | Merge branch 'for-next/imx'Sascha Hauer2014-07-0456-1224/+428
|\ \ \ \
| * | | | arm: imx6: rename hummingboard directory to microsomLucas Stach2014-07-018-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The rule in barebox is to name the directories after the modules. As hummingboard is just one of the carriers for the MicroSOM module, name the directory accordingly. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | arm: imx6: move imx6_init_lowlevel to single initcallLucas Stach2014-07-0115-160/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of repeating the same lowlevel init for every board move it to it's own initcall. Avoids code bloat and shaves off almost 1.5kB of uncompressed barebox size for a default imx_v7_defconfig build. For boards wherethe hostname setup was done in the postcore initcall we move this to a device initcall to get it out of the way. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | imx6: add new chip revisionsChristian Hemp2014-06-302-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new chip revisions for the new tap-out TO1.5 (i.MX6Q/D) and TO1.2 (i.MX6DL/S) Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX: remove console= from env filesSascha Hauer2014-06-238-52/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For i.MX devicetree boards the console= parameter is automatically generated and can be dropped from the env files. If a file becomes empty then, remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>