summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* pbl: add lz4 supportJean-Christophe PLAGNIOL-VILLARD2013-07-224-2/+16
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: generate imx dcd.S files as *.dcd.SSascha Hauer2013-07-103-6/+6
| | | | | | | | The compiled in dcd images generate an intermediate assembly file. Instead of generating them as *.S generate them as *.dcd.S to better identify them as generated files. These are then added to .gitignore. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* friendlyarm-tiny210: do not restart barebox twiceAlexey Galakhov2013-07-091-8/+23
| | | | | | | | | | The old way to boot tiny210 was to restart barebox after loading stage2 image. This turned out to be unstable and stopped working after barebox refactoring. Now jump to the same position in the loaded code instead of starting it from the very beginning. Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Revert "ARM: i.MX27 pcm038: switch to multi image"Sascha Hauer2013-07-092-4/+1
| | | | | | | | | | | This reverts commit 08c0e206b3614eeecc1c3cee63665077360212e5. The external NAND boot code currently uses the _text linker variable to determine a place for the image. This doesn't work with multi image support which will link the binary at 0x0. Revert multi image support for the pcm038 for now until a solution is found. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: at91: animeo IP: fix partition tableJean-Christophe PLAGNIOL-VILLARD2013-07-091-2/+2
| | | | | | | | we now use a UBI Volume instead of user_block, kernel and root the bootloader size is 320KiB not 256KiB Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX6: Fix usbmisc label in devicetreePhilipp Zabel2013-07-041-1/+1
| | | | | Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pcm049: Add platformcode for omap4 framebufferChristoph Fritz2013-07-025-32/+262
| | | | | | | | | | | | For splashscreen support on pcm049, this patch adds omap4 framebuffer platform data and configures display pd050vl1, g104x1, pm070wl4, pd104slf, edt_etm0350G0dh6, edt_etm0430G0dh6, edt_etmv570G2dhu and edt_etm0700G0dh6 Also add extra muxing and defconfig Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com> Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* tegra: add peripheral clocksLucas Stach2013-07-021-0/+49
| | | | | | | | Only UART clocks are included for now, but the code should cover other peripherals needs, too. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* tegra: add new clock framework driverLucas Stach2013-07-024-121/+37
| | | | | | | | | | | This removes the existing Tegra CAR driver and replaces it with code ported from the Linux clock framework. In the current state only the relevant PLLs are supported, but this is no functional regression from the existing code. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* tegra: deduplicate clk definesLucas Stach2013-07-022-63/+33
| | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* tegra: change clocksource driver to be more lowlevelLucas Stach2013-07-022-13/+26
| | | | | | | | | In order to properly bring up the system PLLs we need a reliable clocksource. To break the circular dependency between the clocksource and the CAR driver, get the OSC frequency with a lowlevel function. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Add a imx_v7_defconfigSascha Hauer2013-07-021-0/+131
| | | | | | | | | | | | | | This is a nearly full-blown config for the v7 i.MX (i.MX51, i.MX53 and i.MX6). currently the following images are built: barebox-imx51-babbage.img barebox-imx53-loco.img barebox-imx6-realq7.img barebox-genesi-efikasb.img Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX51 efikasb: switch to multiboard supportSascha Hauer2013-07-029-101/+94
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX6 realq7: switch to multiboardSascha Hauer2013-07-022-7/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX6 realq7: prepare multiboard supportSascha Hauer2013-07-021-8/+11
| | | | | | Protect initcalls with the corrent of compatible. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX53 loco: Move over to multiboardSascha Hauer2013-07-022-8/+6
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX53 loco: prepare multiboard supportSascha Hauer2013-07-021-2/+8
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX53 loco: add board name to flash header fileSascha Hauer2013-07-023-5/+6
| | | | | | | | This is necessary because the C name for the flash header matches the filename. For multiple board support we have to make the name unique to prevent linker errors. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX51 babbage: Move over to multiboardSascha Hauer2013-07-022-8/+15
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX51 babbage: prepare for multiboard supportSascha Hauer2013-07-021-9/+5
| | | | | | Merge two initcalls to one and add a protector for the board type. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX51 babbage: add board name to flash header fileSascha Hauer2013-07-023-5/+6
| | | | | | | | This is necessary because the C name for the flash header matches the filename. For multiple board support we have to make the name unique to prevent linker errors. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: select SoC from boardSascha Hauer2013-07-029-101/+76
| | | | | | | In principle we could build barebox for multiple i.MX SoCs, so select the correct SoC from the board selection. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: remove now unused ARCH_IMX_INTERNAL_BOOT_USE_IMXIMAGESascha Hauer2013-07-022-19/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Turn most board directories into regular build directoriesSascha Hauer2013-07-022-69/+77
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: use device_detect_by_name where applicableSascha Hauer2013-07-022-8/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX51 babbage: switch to multi image supportSascha Hauer2013-07-024-6/+14
| | | | | | | | The image will be named: barebox-freescale-imx51-babbage.img Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: dmo realq7: switch to multi image supportSascha Hauer2013-07-024-6/+12
| | | | | | | | The image will be named after the official name of this board: barebox-datamodul-edm-qmx6.img Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX53 loco: Switch to multi image supportSascha Hauer2013-07-024-6/+16
| | | | | | | | | This converts the Freescale i.MX53 loco aka qsb board to multi image. The image will be named: barebox-freescale-imx53-loco.img Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX53 loco: Switch to imximageSascha Hauer2013-07-026-113/+60
| | | | | | | Use the imximage tool to generate an imximage instead of the linker based process. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next-manual/oftree-linux-sync'Sascha Hauer2013-07-024-23/+13
|\
| * OF: base: remove of_find_child_by_nameSebastian Hesselbarth2013-06-201-1/+1
| | | | | | | | | | | | | | With of_get_child_by_name from Linux API, we can now convert and remove of_find_child_by_name. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
| * OF: base: remove of_tree_for_each_node from public APISebastian Hesselbarth2013-06-202-17/+9
| | | | | | | | | | | | | | | | This patch converts users of of_tree_for_each_node to recently added for_eacg_compatible_node helper. Also of_tree_for_each_node is removed from public OF API. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
| * OF: base: sync of_find_node_by_path with linux OF APISebastian Hesselbarth2013-06-202-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Barebox of_find_node_by_path requires a node to be passed as start node to start searching. Linux OF API does not pass this node and no current user of it in barebox is passing anything else than the root node. Therefore, we rename current function to of_find_node_by_path_from and introduce a Linux OF API compatible of_find_node_by_path that always passes the current root_node. Also, all current users of that function are updated to reflect the API change. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc: remove strcasecmp/strncasecmp prototypesSascha Hauer2013-06-201-2/+0
| | | | | | | | | | | | | | ppc does not implement these, so remove the prototypes and use the ones from include/linux/string.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/ppc'Sascha Hauer2013-07-0117-24/+2100
|\ \
| * | ppc 85xx: early I2C supportRenaud Barbier2013-06-272-0/+270
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Early I2C support is introduced to read SPD data from memory modules prior to the loading of the I2C driver. This code is based on the equivalent file fsl_i2c.c in directory drivers/i2c from U-Boot version git-a71d45d. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ppc 8xxx: core DDR driver functionsRenaud Barbier2013-06-272-0/+296
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These files are the driver interface to handle the memory initialisation from reading the SPD data to writing the memory controller registers. This code is based on the equivalent files main.c in directory arch/powerpc/cpu/mpc8xxx/ddr and ddr-gen2.c in directory arch/powerpc/cpu/mpc85xx. Both are from U-Boot version git-a71d45d. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ppx 8xxx: DDR registers value calculationRenaud Barbier2013-06-271-0/+425
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The functions in this file calculate and store the value for each register of the memory controller. This code is based on the equivalent file in directory arch/powerpc/cpu/mpc8xxx/ddr from U-Boot version git-a71d45d. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ppc 8xxx: DDR utility and memory optionsRenaud Barbier2013-06-272-0/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds functions to calculate clock cycles, configure the LAW registers and populate board memory options. This code is based on the equivalent files in directory arch/powerpc/cpu/mpc8xxx/ddr from U-Boot version git-a71d45d. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ppc 8xxx: DIMM parameters calculationRenaud Barbier2013-06-272-0/+517
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code calculates the DIMM characteritics i.e DIMM organization parameters and timings for DDR2 memory based on SPD data. It also provides a function to find out the lowest common DIMM parameters to be used for all DIMMs. This code is based on the equivalent files in directory arch/powerpc/cpu/mpc8xxx/ddr from U-Boot version git-a71d45d. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ppc 8xxx: DDR headersRenaud Barbier2013-06-272-0/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Structures are defined to record the common DIMM parameters and memory options on a per DIMM basis. This code is based on the equivalent files in directory arch/powerpc/cpu/mpc8xxx/ddr from U-Boot version git-a71d45d. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ppc asm: DDR headersRenaud Barbier2013-06-272-4/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Definitions and structures have been added to record DIMM parameters and configure memory options. The code is based on the equivalent files in the directory arch/powerpc/include/asm from U-boot version git-a71d45d. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | P2020RDB: update build configurationRenaud Barbier2013-06-251-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Update the P2020RDB build configuration to enable useful development commands. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ppc: gianfar MDIO busesRenaud Barbier2013-06-253-19/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit creates MDIO bus devices to separate the MDIO bus abstraction from the Ethernet device initialisation. It also updates the configuration of the P2020RDB ports. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/omap'Sascha Hauer2013-07-0122-69/+346
|\ \ \
| * | | ARM omap-fb: add board helper codeChristoph Fritz2013-06-243-1/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds OMAP machine dependent framebuffer code so that board files can make use of driver omap-fb. Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | OMAP4 do not set TPS62361_REG_ADDR_SET0Jan Weitzel2013-06-231-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't set SET0 voltage, because it acts as boot voltage for OPP boot. Take care that the kernel doesn't drive vset gpio to low. This may happen while reseting the gpio module at initialization, look for HWMOD_INIT_NO_RESET. Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Reviewed-by: Nishanth Menon <nm@ti.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | i2c-omap: Remove cpu_is functions completelyTeresa Gámez2013-06-235-18/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the call of the cpu_is_* functions completely and uses id_tables instead. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: OMAP: pcm051: Add i2c0 and at24 eeprom supportTeresa Gámez2013-06-212-0/+22
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: AM33xx: Add i2c support for AM33xxTeresa Gámez2013-06-213-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added device register functions and cpu_is_am33xx() function. Adapted the i2c-omap driver. AM335x has a lower clock rate and the timeout of polling the isr function had to be increased. Based on a patch from Shravan Kumar <shravan.k@phytec.in>. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>