summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/randconfig-1'Sascha Hauer2014-12-081-0/+1
|\
| * ARM: AM335x: Select OFTREESascha Hauer2014-11-281-0/+1
| | | | | | | | | | | | All AM335x boards are devicetree only, so select support for it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: omap: Add bootsource serial to xloadJan Weitzel2014-11-192-0/+55
|/ | | | | | | | | | | If booted from serial via xmodem, also get barebox.bin per xmodem For first stage you need the .pblx file instead of MLO. Add serial boot to am335x_mlo_defconfig introduce some cleanups by savedefconfig Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am335x: Add register of boot devicesTeresa Gámez2014-11-032-0/+32
| | | | | | | | | | Add support for registering disabled boot devices from oftree. Creating a device tree with all bootable devices disabled, makes it possible to only enable and register the devices needed to load the next stage bootloader. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: am33xx: Add rmii2_crs_dv mux selection in SMA2 registerWadim Egorov2014-11-032-0/+18
| | | | | | | | | | | | | "Silicon revision 1.0 devices only provide the MMC2_DAT7 signal when Mode3 is selected. Silicon revision 2.0 and newer devices implement another level of pin multiplexing which provides the original MMC2_DAT7 signal or RMII2_CRS_DV signal when Mode3 is selected. This new level of of pin multiplexing is selected with bit zero of the SMA2 register." See AM335x Sitara Processors Manual. Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* boards: Add phytec-phyflex-am335xStefan Müller-Klieser2014-10-081-0/+5
| | | | | | | | | Add support for PHYTEC's phyFLEX-AM335x. Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de> [clean ups] Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/musb'Sascha Hauer2014-10-024-2/+18
|\
| * ARM: AM33xx: Enable USB and USB phy clocksRolf Evers-Fischer2014-09-264-2/+18
| | | | | | | | | | | | | | | | These are necessary for USB support. To make sure they are actually enabled when a USB capable barebox is started call the clock enable function during startup also for the full barebox, not only the MLO. Signed-off-by: Rolf Evers-Fischer <rolf.evers.fischer@delphi.com>
* | ARM: am335x: NAND MLO update: always let the user confirm updatingSascha Hauer2014-09-301-4/+4
| | | | | | | | | | | | | | Before actually doing something the user should always confirm the update. Move the question out of the if() block. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: am335x: Add a NAND update handler for the regular bareboxSascha Hauer2014-09-304-7/+53
| | | | | | | | | | | | | | | | | | | | To be able to not only update the MLO in NAND but also the regular barebox image. Since this is implemented with help of the corresponding xload handler this also removes the 'xload' from the Kconfig options and the filename. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: am33xx update SPI NOR: Ask use before flashingSascha Hauer2014-09-301-0/+4
| | | | | | | | | | | | | | Let the user confirm the update process before flashing the new image. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: am33xx update SPI NOR: Check image size before flashingSascha Hauer2014-09-301-0/+13
| | | | | | | | | | | | | | Test if the image fits into the partition before flashing it. Makes the update process more safe. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: AM33xx: Add AFI GF board supportSascha Hauer2014-09-263-2/+10
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: AM33xx SPI MLO update handler: detect non CH imagesSascha Hauer2014-09-261-2/+3
|/ | | | | | | | | | | | The AM3xxx can boot images containing a Configuration Header (generated with omap_signGP) or images with GP Header (simple size/address information in front of raw image). Update the SPI NOR barebox update handler to detect the GP Header images. These have 0x65726162 ('bare') at the offset header[10]. Also automatically swap the endianess for non swapped images so that the regular non swapped images can also be flashed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/metadata'Sascha Hauer2014-08-072-0/+2
|\ | | | | | | | | | | | | Conflicts: arch/arm/dts/Makefile common/Makefile lib/Makefile
| * move file helper functions to separate fileSascha Hauer2014-08-072-0/+2
| | | | | | | | | | | | | | | | | | | | We have our file helper functions in several places. Move them all to lib/libfile.c. With this we no longer have file helpers in fs/fs.c which contains the core fs functions and no functions in lib/libbb.c which are not from busybox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: AM33xx: Add SDRAM size detectionSascha Hauer2014-08-014-0/+110
|/ | | | | | | | This adds a function which reads back the SDRAM controller settings. This is used in a AM33xx specific barebox entry function and a SDRAM driver which registers a SDRAM memory bank. 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-111-2/+0
| | | | | | | 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.
* ARM: OMAP: Do not show MLO/SPI image options with OMAP_MULTI_BOARDSSascha Hauer2014-07-071-0/+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>
* Documentation: remove doxygen documentationSascha Hauer2014-06-261-96/+0
| | | | | | | The doxygen documentation is long outdated. Remove it. It will be replaced with sphinx based documentation later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: remove address of the Free Software FoundationAntony Pavlov2014-06-113-12/+0
| | | | | | | | | | | | | | | | | | The FSF address has changed; The FSF site says that address is Free Software Foundation 51 Franklin Street, Fifth Floor Boston, MA 02110-1301 USA (see http://www.fsf.org/about/contact/) Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/omap'Sascha Hauer2014-06-048-8/+236
|\ | | | | | | | | | | Conflicts: arch/arm/configs/am335x_beaglebone_defconfig arch/arm/configs/am335x_defconfig
| * ARM: omap: barebox update nand xloadslots handlerWadim Egorov2014-05-194-0/+146
| | | | | | | | | | | | | | | | - Added barebox nand xloadslots update handler - This handler updates all given xload slots in nand Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: AM33xx: Add SPI bbu handlerSascha Hauer2014-05-152-0/+62
| | | | | | | | | | | | | | We already have an update handler for the MLO on SPI, add a update handler for the regular barebox aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: AM33xx: swap MLO SPI image automaticallySascha Hauer2014-05-151-1/+14
| | | | | | | | | | | | | | | | | | The MLO image for SPI differs in the normal MLO in that the SPI version is big endian. As both types of images are floating around detect whether or not the image is swapped automatically. This also adds a check whether we have a valid MLO image. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: am33xx: Add missing includeSascha Hauer2014-05-151-0/+1
| | | | | | | | | | | | am33xx-generic.h needs memcpy, so include string.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: am33xx: Pass uart_base to soft_reset functionSascha Hauer2014-05-152-7/+7
| | | | | | | | | | | | | | To make am33xx_uart0_soft_reset more flexible rename it to am33xx_uart_soft_reset and pass the UART base to it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * arm: omap: am33xx_generic: detect more boot sourcesJan Luebbe2014-05-151-0/+6
| | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
* | Merge branch 'for-next/doc'Sascha Hauer2014-06-042-13/+7
|\ \ | |/ |/|
| * commands: move CMD_BOOT_ORDER to commands/KconfigHolger Schurig2014-05-141-7/+0
| | | | | | | | | | | | | | | | | | * this places the command into the "Boot commands" section of Kconfig * while at it, improve Kconfig documention Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * commands: harmonize in-barebox documentationHolger Schurig2014-05-141-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch does probably too much, but it's hard (and very cumbersome/time consuming) to break it out. What is does is this: * each command has one short description, e.g. "list MUX configuration" * made sure the short descriptions start lowercase * each command has one usage. That string contains just the options, e.g. "[-npn]". It's not part of the long help text. * that is, it doesn't say "[OPTIONS]" anymore, every usable option is listed by character in this (short) option string (the long description is in the long help text, as before) * help texts have been reworked, to make them - sometimes smaller - sometimes describe the options better - more often present themselves in a nicer format * all long help texts are now created with BUSYBOX_CMD_HELP_ macros, no more 'static const __maybe_unused char cmd_foobar_help[]' * made sure the long help texts starts uppercase * because cmdtp->name and cmdtp->opts together provide the new usage, all "Usage: foobar" texts have been removed from the long help texts * BUSYBOX_CMD_HELP_TEXT() provides the trailing newline by itself, this is nicer in the source code * BUSYBOX_CMD_HELP_OPT() provides the trailing newline by itself * made sure no line gets longer than 77 characters * delibertely renamed cmdtp->usage, so that we can get compile-time errors (e.g. in out-of-tree modules that use register_command() * the 'help' command can now always emit the usage, even without compiled long help texts * 'help -v' gives a list of commands with their short description, this is similar like the old "help" command before my patchset * 'help -a' gives out help of all commands Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * commands: group 'help' outputHolger Schurig2014-05-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old output of "help" was just producing a long list, that usually scrolled of the screen (even on a X11 terminal). This list is more compact, and also sorted by groups. The old output format (plus grouping) is now available with 'help -v'. Example: Information commands: ?, devinfo, help, iomem, meminfo, version Boot commands: boot, bootm, go, loadb, loads, loadx, loady, saves, uimage ... Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: AM33xx: make bbu handler static inlineSascha Hauer2014-05-151-1/+1
|/ | | | | | | The static inline wrapper for am33xx_bbu_spi_nor_mlo_register_handler lacked the 'static inline'. add it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mount: support filesystem options passed via -oUwe Kleine-König2014-02-102-3/+3
| | | | | | | | | | | Similar to mount(8) the barebox command mount now supports passing a string to the file system driver via -o. This is used in the next commit to let the user specify port numbers for nfs mounts. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: omap3: Add missing includeSascha Hauer2014-02-031-0/+1
| | | | | | omap3-generic.h needs memcpy, include linux/string.h for this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* environment: Use accessor functions for default environment pathSascha Hauer2014-01-271-1/+1
| | | | | | | | | default_environment_path only exists when CONFIG_ENV_HANDLING is enabled. Boards would have to #ifdef this if they wanted to use default_environment_path. Use accessor functions instead which can be ifdeffed on a single place. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: OMAP: introduce multiboard support and move am33xx boards to itSascha Hauer2013-12-101-15/+21
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: OMAP: Safe boot info in fixed SRAM addressSascha Hauer2013-12-1013-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: beaglebone: Switch to devicetree and multiimageSascha Hauer2013-12-101-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am33xx Phytec phyCORE: Switch to multiimage supportSascha Hauer2013-12-101-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/omap-drivers'Sascha Hauer2013-12-066-171/+20
|\
| * bus: Add omap gpmc driverSascha Hauer2013-11-271-0/+3
| | | | | | | | | | | | | | 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>
| * 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-272-157/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * spi: omap: encode register offset into device_idSascha Hauer2013-11-221-1/+1
| | | | | | | | | | | | | | | | | | | | 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>
| * serial: ns16550: Add device ids for omapSascha Hauer2013-11-221-2/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/omap-devicetree-prepare'Sascha Hauer2013-12-0616-118/+237
|\ \
| * | 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>
| * | ARM: am33xx: compile SoC files for pbl aswellSascha Hauer2013-11-251-1/+1
| | | | | | | | | | | | | | | | | | This is necessary for successful pbl compilation on am33xx. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: OMAP: centralize omap startupSascha Hauer2013-11-228-24/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | This introduces a single omap_init function which detects the SoC and does all further SoC initialization. This is done to get rid of initcalls without proper SoC protection. The same has been done for i.MX already. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>