summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ARM: OMAP: consolidate am335x mlo defconfigswork/am335xSascha Hauer2013-11-272-36/+10
| | | | | | | The Beaglebone and the AM335x Phytec phyCORE can be compiled together, so merge the configs into a am335x_mlo_defconfig. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: OMAP: introduce multiboard support and move am33xx boards to itSascha Hauer2013-11-275-15/+25
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: beaglebone: configure console from devicetreeSascha Hauer2013-11-272-1/+5
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am335x Phytec phyCORE: configure environment from devicetreeSascha Hauer2013-11-272-16/+19
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: OMAP: Safe boot info in fixed SRAM addressSascha Hauer2013-11-2713-41/+28
| | | | | | | | | | | | | Storing the boot information in the image itself and passing a pointer around between images is cumbersome and doesn't fit well with multiimage support where the pointer we pass around is already occupied by the devicetree. Do the same as U-Boot does and store the boot information at the bottom of the SRAM public stack. To maintain the compatibility between new xloaders and older barebox binaries we still pass the boot information to the next stage via pointer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am335x Phytec phyCORE: Move partition descriptions to devicetreeSascha Hauer2013-11-273-25/+57
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: beaglebone: Switch to devicetree and multiimageSascha Hauer2013-11-278-137/+85
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: beaglebone: Add memory to devicetreesSascha Hauer2013-11-273-3/+20
| | | | | | | barebox needs it to initialize the memory. While at it, give the beabglebone black another name than the original beaglebone has. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am33xx: beaglebone: remove mlo_large_defconfigSascha Hauer2013-11-272-55/+0
| | | | | | | | As with devicetree support the binary will get too large for the SRAM drop the configuration. It was mainly meant for debugging purposes anyway. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: dts: Add am33xx beaglebone(black) dts filesSascha Hauer2013-11-275-0/+464
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am33xx Phytec phyCORE: update defconfigSascha Hauer2013-11-271-0/+11
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am33xx Phytec phyCORE: Switch to multiimage supportSascha Hauer2013-11-277-18/+63
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am33xx Phytec phyCORE: initialize debug UARTSascha Hauer2013-11-271-0/+3
| | | | | | | Add debug UART initialization to lowlevel init and print a '>'. Helps debugging lowlevel code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am335x phytec phyCORE: Switch to devicetree probe supportSascha Hauer2013-11-276-222/+32
| | | | | | | This switches the am335x Phytec phyCORE to devicetree probe support. For now we use a linked in dtb. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Add base am335x-phytec-phycore devicetree fileSascha Hauer2013-11-272-0/+235
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Make ENTRY_FUNCTION more robustSascha Hauer2013-11-2716-61/+33
| | | | | | | | | | An entry function should begin with a exception header. For this to work properly the entry function should not contain any code which gcc might put before the header. To make this sure change the ENTRY_FUNCTION macro so that it generates one function which only contains the exception header and a second function which contains the original body of the entry function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Make multi images startup process simplerSascha Hauer2013-11-274-63/+9
| | | | | | | | | | | The multi image startup process used to have three binaries involved: - The lowlevel board code to initialize SDRAM - the uncompressor - the regular (compressed) barebox binary Drop the uncompressor and put the uncompress code into the lowlevel board code binary. This makes the startup process easier. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/x86' into nextSascha Hauer2013-11-274-4/+7
|\
| * Makefile: Align "DTB" string to othersAlexander Shiyan2013-11-111-1/+1
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * scripts: Add fix_size & kernel-install to .gitignoreAlexander Shiyan2013-11-111-0/+2
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * arch/x86: fix link with recent gccThomas Petazzoni2013-11-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to unwind tables being generated by recent versions of gcc by default, the x86 Barebox link fails with: ld: section .eh_frame loaded at [00000000000197c4,000000000001f31f] overlaps section .barebox_initcalls loaded at [00000000000197c4,0000000000019833] Passing -fno-unwind-tables -fno-asynchronous-unwind-tables avoids this problem. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * scripts/setupmbr: fix documentationThomas Petazzoni2013-11-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The documentation says setupmbr should be used with the image named 'barebox', but it should instead be done with the 'barebox.bin' image. Attempting to use setupmbr on the ELF barebox image simply fails: $ ./scripts/setupmbr/setupmbr -s 32 -m ./barebox -d disk.img No MBR signature found barebox image seems not valid: Bad MBR signature Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/ppc' into nextSascha Hauer2013-11-273-2/+10
|\ \
| * | ppc: DA923RC: update board initialisationRenaud Barbier2013-11-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pull the board device reset GPIO pin high as this prevents PCI bus probing. The function da923rc_board_init_r is called at the postcore initcall level so that the udelay function can take advantage of the core initialisation. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ppc: mpc85xx: add fsl,mpic node frequency propertyRenaud Barbier2013-11-182-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | The clock frequency property of the device tree node fsl,mpic is added as it is needed by the PCI driver to function in newer Linux version. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/omap-drivers' into nextSascha Hauer2013-11-2730-140/+1251
|\ \ \
| * | | mmc: omap: Add devicetree supportSascha Hauer2013-11-271-0/+13
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | bus: Add omap gpmc driverSascha Hauer2013-11-274-0/+533
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a devicetree-only driver for to configure the gpmc and its child devices from dt. Currently only NAND is supported. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | device: Add functions to add resourcesSascha Hauer2013-11-272-13/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We currently have functions to add a device based on function parameters. This adds the corresponding functions to add resources to a device without registering the device itself. This is useful to manipulate devices before registering them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | string: Add (x)memdupSascha Hauer2013-11-274-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | It's a common task to duplicate some memory. Add (x)memdup functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mtd: omap gpmc: Use dev_add_param_enumSascha Hauer2013-11-271-26/+10
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | gpio: omap: Add devicetree probe supportSascha Hauer2013-11-271-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds devicetree probe support for the OMAP gpio ports and also makes sure the corresponding platform_devices don't get registered when they are already present from devicetree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | omap: gpmc: some refactoringSascha Hauer2013-11-271-11/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - make debug messages more meaningful - calculate value once and use it to print and configure instead of calculating it twice Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | gpio: omap: move to drivers/gpio/Sascha Hauer2013-11-274-1/+4
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: cpsw: straighten error pathSascha Hauer2013-11-271-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | This mainly has the effect of checking the return value of eth_register. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: cpsw: attach slave to edev->privSascha Hauer2013-11-271-14/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | An ethernet device belongs to a slave, so set edev->priv to the slave and not to the cpsw. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: cpsw: drop for_each_slaveSascha Hauer2013-11-271-26/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We currently only use one slave, so drop for_each_slave and hardcode slave[0] until we pass the proper context to the functions that makes this hack unnecessary. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: cpsw: move eth_device into slaveSascha Hauer2013-11-271-17/+16
| | | | | | | | | | | | | | | | | | | | | | | | An ethernet device is per slave, not per cpsw. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | cpsw: Add devicetree probe supportSascha Hauer2013-11-271-7/+159
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | pinctrl: Add functions to select pinctrl from device_nodeSascha Hauer2013-11-272-6/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of requiring a device pointer, add a functions to select the pinctrl state based on a device node. The AM33xx cpsw devicetree description has several subdevices with pinctrl information attached to them. In barebox we do not handle the subdevices as distinct devices, so the pinctrl is never configured correctly and the mdio bus subdevice stops working. This patch makes it possible to configure the pinctrl without having a device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: cpsw: inline slave_dataSascha Hauer2013-11-221-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Devicetree probed cpsw devices won't have platform_data, so inline the fields from slave_data instead of keeping a pointer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | i2c: omap: Add devicetree supportSascha Hauer2013-11-221-1/+27
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | spi: omap: Add devicetree probe supportSascha Hauer2013-11-221-0/+13
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | spi: omap: encode register offset into device_idSascha Hauer2013-11-223-4/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The omap3 and omap4/am33xx spi cores differ in the offset of the registers in the address space. Instead of encoding this into the resources use the platform_device_id mechanism. This is done in preparation for devicetree probe support where the address space is in the devicetree and can't be adjusted. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | pinctrl: Add pinctrl-single driverSascha Hauer2013-11-223-0/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on the kernel pinctrl-single driver. This one is just enough to make OMAP/AM33xx work. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | serial: ns16550: Add device ids for omapSascha Hauer2013-11-223-14/+56
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/omap-devicetree-prepare' into nextSascha Hauer2013-11-2731-134/+1216
|\ \ \ \
| * | | | mmc: omap: name mmc device after devicetree aliasSascha Hauer2013-11-251-0/+6
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: dts: am33xx: Add mmc aliasesSascha Hauer2013-11-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | barebox needs these for persistent mmc device names. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: OMAP: let UART selection depend on its only userSascha Hauer2013-11-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The UART selection is only meaningful to omap3evm, so hide it from other users. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>