summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* barebox: remove double semicolonsAlexander Aring2013-11-181-1/+2
| | | | | Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX boards: Remove duplicate dependency of ARCH_IMX21 for IMX_IIMAlexander Shiyan2013-11-131-1/+1
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX boards: Remove useless selectAlexander Shiyan2013-11-131-4/+0
| | | | | | | | Symbols HAVE_DEFAULT_ENVIRONMENT_NEW & HAVE_PBL_MULTI_IMAGES are already selected by IMX_MULTI_BOARDS. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: mxs: support overwriting the device name via platform dataUwe Kleine-König2013-11-111-0/+1
| | | | | | | | | | | | | The current implementation of the bootloader specification depends on the hardware name and the name of the device in /dev to match. As the default hardware name is mciX and the device name is diskY the bootloader spec cannot be used as is. This patch implements a way to overwrite the device name similar to what is possible for the imx-esdhc driver. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: mxs: Fix signed/unsigned arguments for printfAlexander Shiyan2013-11-112-5/+5
| | | | | | | | "%d" in format string requires a signed integer. "%u" in format string requires a unsigned integer. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Cleanup Kconfig filesAlexander Shiyan2013-11-114-8/+6
| | | | | | | | | This patch provides a global cleanup barebox Kconfig files. This includes replacing spaces to tabs, formatting in accordance format. No functional changes. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: at91: Fix signed/unsigned arguments for printfAlexander Shiyan2013-11-111-2/+2
| | | | | | | "%d" in format string requires a signed integer. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: remove asm/hardware.hSascha Hauer2013-11-0834-51/+33
| | | | | | | asm/hardware.h does not have any content except including mach/hardware.h. include mach/hardware.h directly where needed and get rid of asm/hardware.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Phytec pfla02: Add I2C EEPROM to devicetreeSascha Hauer2013-11-081-0/+11
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: Add missing includesSascha Hauer2013-11-0815-1/+15
| | | | | | | | A lot of files rely on include/driver.h including include/of.h (and this including include/errno.h. include the files explicitly so we can eventually get rid of including of.h from driver.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/rpi'Sascha Hauer2013-11-0714-56/+760
|\
| * of: Add a context pointer to fixup functionsSascha Hauer2013-11-064-8/+8
| | | | | | | | | | | | | | If drivers want to fixup their specific instance they need some context to know which instance they have to fixup. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * video: add a BCM2835 framebuffer driverAndre Heider2013-11-062-0/+6
| | | | | | | | | | | | | | | | Use the mailbox driver to set up a framebuffer based on the firmware configuration. Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: bcm2835: add missing mbox overscan response fieldAndre Heider2013-11-061-0/+1
| | | | | | | | | | | | | | Add the missing "right" field to struct bcm2835_mbox_tag_overscan. Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bcm2835: move mci register at board levelJean-Christophe PLAGNIOL-VILLARD2013-11-043-1/+9
| | | | | | | | | | | | | | not all board have a SD card. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: rpi: use the proper ARM memory sizeAndre Heider2013-10-221-2/+33
| | | | | | | | | | | | | | | | | | | | Use the mailbox driver to query the size. This properly takes the firmware's VideoCore/ARM memory split into account. Linux can now be booted with more than 128 MiB. Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: rpi: register a clkdev for the eMMC clockAndre Heider2013-10-221-0/+40
| | | | | | | | | | | | | | | | Use the mailbox driver to query the clock frequency and create a clkdev for the bcm2835_mci driver. Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: bcm2835: add a mailbox driver for VideoCoreAndre Heider2013-10-223-1/+573
| | | | | | | | | | | | | | | | | | This allows exchanging data with the on-SoC GPU. Based on U-Boot code by Stephen Warren. Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: bcm2835: register the clocksource device earlierAndre Heider2013-10-221-1/+2
| | | | | | | | | | | | | | | | | | | | RPi's mailbox driver is used early and it needs clock functions to handle timeouts. Register the driver straight after its clkdev. Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: bcm2835: cleanup clock registeringAndre Heider2013-10-221-24/+7
| | | | | | | | | | | | | | Sync exposed names while at it. Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: cache: do not crash when the MMU isn't yet setupAndre Heider2013-10-221-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drivers currently cannot implement explicit cache handling and rely on running the same code before and after mmu_initcall() without crashing. Depending on the chosen config options, the cache functions are not yet setup and using them early on ends in a null pointer dereference. The RPi's mailbox driver is such a case; it requires cache handling once the MMU is fully set up and yet the RPi setup needs to use the driver to get the memory size before mem_initcall() and hence mmu_initcall(). Fix this by checking the cache_fns pointer before dereferencing it. Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: cache: restore cache functions from the PBLAndre Heider2013-10-221-1/+3
| | | | | | | | | | | | | | | | | | | | | | When using CONFIG_MMU_EARLY combined with CONFIG_PBL_IMAGE, the barebox setup reuses the MMU setup from the PBL, but doesn't setup the cache functions. Set these up to guarantee proper early cache handing before mmu_initcall(). Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: rpi: add SD card environment supportSascha Hauer2013-10-161-2/+31
| | | | | | | | | | | | | | Similar to the OMAP boards mount the SD card to /boot and expect the environment as /boot/barebox.env Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: rpi: Update defconfigSascha Hauer2013-10-161-10/+35
| | | | | | | | | | | | Enable MMU, stack dumps and a lot of other features Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: rpi: fix tty device name in bootargs-baseAndre Heider2013-10-161-1/+1
| | | | | | | | | | Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/ppc'Sascha Hauer2013-11-0728-10/+1142
|\ \
| * | ppc: mpc85xx: build directivesRenaud Barbier2013-11-063-7/+28
| | | | | | | | | | | | | | | | | | | | | | | | Add the Kconfig and Makefile directives to build barebox for the GEIP DA923RC board. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ppc: DA923RC: add board supportRenaud Barbier2013-11-0613-0/+977
| | | | | | | | | | | | | | | | | | | | | Add the GEIP DA923RC board support. This includes core files as well as defconfig and make files. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ppc: mpc85xx: enable DDR driverRenaud Barbier2013-11-065-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The use of the DDR driver as well as early I2C support is enabled for board initialising their memory through SPD EEPROM data. A SOC specific function returning the DDR bus frequency is added for the DDR driver to translate DDR timings to register values. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ppc: mpc85xx: define Ethernet port countRenaud Barbier2013-11-062-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because the port count is different between the MPC8544 and existing CPU support, the Ethernet port count is defined on a per CPU basis. Accordingly, the TBI PHY initialisation code is updated. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ppc: mpc85xx: mpc8544 supportRenaud Barbier2013-11-068-0/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Definitions are added to support the mpc8544 sOC. The function returning the I2C bus frequency is updated to take into account the mpc8544 specific clock ratio. A mininal GPIO API is added to enable and set the GPIO out pins. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/mtd'Sascha Hauer2013-11-072-7/+7
|\ \ \
| * | | mtd: raw: rename raw deviceSascha Hauer2013-10-292-7/+7
| |/ / | | | | | | | | | | | | | | | | | | The name of the raw device is mtdraw<num> which is inconsistent to other mtd devices which are named mtd<num>.<partname>. Rename it to mtd<num>.raw. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/mips'Sascha Hauer2013-11-076-5/+125
|\ \ \
| * | | MIPS: qemu-malta: doc: add gxemul documentationAntony Pavlov2013-10-281-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GXemul is another MIPS emulator with Malta board support. As opposed to qemu GXemul supports only fixed GT64120 YAMON-compatible PCI mapping. As now barebox uses YAMON-style mapping we can use GXemul for barebox run. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | MIPS: qemu-malta: use YAMON-style GT64120 memory mapAntony Pavlov2013-10-285-3/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are some reasons for using YAMON-style memory map: * we can run Linux kernel from barebox; * we can use GXemul for running barebox. YAMON-style GT64120 memory map make move UART to the new position. The files gt64120.h and mach-gt64120.h are imported from Linux. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | MIPS: qemu-malta: update qemu-malta.doxAntony Pavlov2013-10-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only PBL-enabled barebox-flash-image can correctly get round BoadrID address (0x1fc00010), so let's recommend barebox-flash-image. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | MIPS: qemu-malta: don't use BoardID address for executable codeAntony Pavlov2013-10-281-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On MIPS Technologies boards 0x1fc00010 address is reserved for BoardID. The hardware or emulator intercepts accesses to this address and we can't use this address for storing code. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | MIPS: qemu-malta: doc: drop broken mips.com linkAntony Pavlov2013-10-281-1/+0
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | On 8 February 2013 MIPS Technologies was acquired by Imagination Technologies. Now the http://www.mips.com/ site is redirected to http://www.imgtec.com/, the Malta development board page is unreachable. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/mci'Sascha Hauer2013-11-074-2/+25
|\ \ \
| * | | vexpress: mmc supportJean-Christophe PLAGNIOL-VILLARD2013-10-224-2/+25
| |/ / | | | | | | | | | | | | | | | | | | qemu-system-arm -m 1024 -smp 1 -M vexpress-a15 -monitor pty -kernel zbarebox -drive if=sd,cache=unsafe,file=sd -nographic -tftp . -net nic -net user Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/imx'Sascha Hauer2013-11-0710-334/+413
|\ \ \ | |_|/ |/| |
| * | USB: i.MX5x: Remove usage of MXC_EHCI_INTERNAL_PHY for OTG portAlexander Shiyan2013-11-041-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | i.MX5x OTG port is hardwired to the internal UTMI PHY, so having this configurable makes no sense and helps using this port with DT. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | USB: i.MX: Make DT dr_mode & phy_type parameters kernel compatibleAlexander Shiyan2013-10-304-13/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since the mainline kernel now has its own dr_mode and phy_type DT-options for setting modes of USB ports, do these kernel parameters compatible by removing "barebox" prefix. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX6: Add spi aliases to devicetreeSascha Hauer2013-10-292-0/+8
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX5x: Make IIM driver kernel-compatibleAlexander Shiyan2013-10-292-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Since kernel uses "imx27-iim" compatible string in i.MX5x DTS templates, do IIM driver compatible. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX51: Update DTS templateAlexander Shiyan2013-10-221-317/+393
| |/ | | | | | | | | | | | | Update i.MX51 DT template from kernel. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / bcb: fix compilationEric Bénard2013-10-281-2/+2
|/ | | | | | | | | | | this fix : arch/arm/mach-mxs/bcb.c:268: error: too few arguments to function 'chip->ecc.read_page_raw' arch/arm/mach-mxs/bcb.c:309: error: too few arguments to function 'chip->write_page' caution : this is NOT runtime tested. Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: fix typo in Kconfig descriptionJan Luebbe2013-10-151-1/+1
| | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* x86: Fix compiler warningsSascha Hauer2013-10-141-2/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>