summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* ARM: Compile with -fPIESascha Hauer2019-11-121-2/+0
| | | | | | | | | | | | | | | | Early code in barebox often runs at an address the binary is not linked at. This causes problems for example when simple initializations in a switch are converted to an array lookup (-ftree-switch-conversion). These arrays are then addressed where they are linked at. Some code where this is known to cause problems is already compiled with -fno-tree-switch-conversion. This however is limited to single files. This patch compiles barebox with -fPIE enabled. This causes such tables to be looked up PC relative rather than with its absolute address. This makes the -fno-tree-switch-conversion and -fno-jump-table options unnecessary. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am335x: Fix am335x_sdram_size() not running at link addressSascha Hauer2019-11-121-0/+2
| | | | | | | | | | am335x_sdram_size() may be called when we are not running at the address we are linked at. This means tree switch conversions and jump tables will not work. Disable these in the CFLAGS for this file. This fixes a crash in am335x_sdram_size() with newer gcc versions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: omap: Add emif4 support for AM3517Sascha Hauer2018-12-201-1/+1
| | | | | | This adds support for the SDRAM controller found on AM3517. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: omap: enable am33xx_uart_soft_reset for AM35xxSascha Hauer2018-12-201-1/+2
| | | | | | | am33xx_uart_soft_reset() can be used on AM35xx aswell, so move it to a more generic place where it can be added to am35xx compilation. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: omap: 32ktimer: Turn into a driverSascha Hauer2018-12-201-1/+0
| | | | | | Turn OMAP 32KHz timer into a driver and move to drivers/clocksource. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: omap: dmtimer: Turn into a driverSascha Hauer2018-12-201-1/+0
| | | | | | Turn OMAP dmtimer into a driver and move to drivers/clocksource. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am33xx: Add barebox_update eMMC optionDaniel Schultz2015-09-091-0/+1
| | | | | | | | | | | | | | | | | | | | | With this patch the barebox_update command will be extended by the possibility to flash the MLO to eMMC devices. The MLO will be flashed to the following addresses: 0x00000 0x20000 0x40000 0x60000 Because the first 512 Bytes of the MLO are reserved for the CHSETTINGS header and this only use ~80 Bytes, there is space for the partition table in the header. The command will overwrite the bootstrap code area and will hold the partition table and the Boot signature. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am335x: Changed timerDaniel Schultz2015-07-201-1/+1
| | | | | | | | | The 32KHz from dmtimer0 is derived from a SoC internal RC oscillator which is quite inaccurate. Switch to dmtimer2 which is driven from the high frequency oscillator clock. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: OMAP: Add omap3 USB loader toolSascha Hauer2015-07-021-0/+2
| | | | | | | | | | | | The OMAP3 supports uploading the first stage bootloader via USB. The ROM leaves the MUSB controller enabled and it can then be used to upload a 2nd stage image. This patch adds the omap3-usb-loader tool and the necessary barebox support to upload the 2nd stage image. The omap usb loader tool is downloaded from https://github.com/grant-h/omap_loader and changed to also accept CHSETTINGS images. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: OMAP: remove unused CONFIG_OMAP3_CLOCK_CONFIG optionSascha Hauer2015-06-221-2/+2
| | | | | | | All boards have this option enabled and there should be no reason to disable it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: am335x: Add a NAND update handler for the regular bareboxSascha Hauer2014-09-301-1/+1
| | | | | | | | | | 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: Add SDRAM size detectionSascha Hauer2014-08-011-0/+1
| | | | | | | | 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>
* ARM: omap: barebox update nand xloadslots handlerWadim Egorov2014-05-191-0/+1
| | | | | | | | - 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: OMAP: Safe boot info in fixed SRAM addressSascha Hauer2013-12-101-2/+2
| | | | | | | | | | | | | 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>
* Merge branch 'for-next/omap-drivers'Sascha Hauer2013-12-061-1/+0
|\
| * gpio: omap: move to drivers/gpio/Sascha Hauer2013-11-271-1/+0
| | | | | | | | 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: barebox update spi nor MLO handlershravan2013-08-261-0/+1
| | | | | | | | | -Added mlo spi NOR copy handler -This handler will convert the MLO to big endian -Tested with pcm051 board Signed-off-by: shravan <shravan.k@phytec.in> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: omap: store boot source info from ROM loaderTeresa Gámez2013-07-101-2/+2
| | | | | | | | | | | | | | | | | | The ROM loader passes the address of a buffer to the MLO in register 0. Store this data so we can find the boot source later. On the same way the bootinformation are passed to the barebox, then. It has to be enshured that r0 contains always the buffer or the boot source detection will not work. Applied this on all OMAPs. This patch is based on work of Jan Luebbe <jlu@pengutronix.de>. Compile tested on all OMAP boards. Tested on pcm049, phyCARD-A-L1 and pcm051. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Tested-by: Christoph Fritz <chf.fritz@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap-fb: add board helper codeChristoph Fritz2013-06-241-1/+1
| | | | | | | | 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: add command to select next boot device priorityVicente Bergas2013-04-111-0/+1
| | | | | | | | | On OMAP4 SoC there is a SAR memory region (Save & Rescue) where the ROM code reads the device to boot from. This patch adds a way to set this. Signed-off-by: Vicente Bergas <vicencb@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* OMAP: Move bootsource functionsTeresa Gámez2013-04-031-1/+1
| | | | | | | | | | | The bootsource functions are not specific to the first stage bootloader. They may also be used for detecting the bootsource to decide where to load the environment from. Also clean up includes in board files. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: OMAP3: invalidate L2 cache using ROM APISascha Hauer2013-03-041-2/+2
| | | | | | | Code taken from U-Boot. This makes the beagle board much more reliable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: Using MFD_xx prefix for symbolsAlexander Shiyan2013-02-181-1/+1
| | | | | | | | This patch provides rename MFD-related symbols for using MFD-prefix. Additionally, sorting mfd/Kconfig and mfd/Makefile records. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: beaglebone: add first-stage support for AM335x and boardJan Luebbe2012-12-201-1/+1
| | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM OMAP AM33XX: create new ARCH for AM33xxTeresa Gámez2012-12-201-0/+2
| | | | | | | | | | | | | | | Created ARCH for AM33xx boards as second stage bootloader. This includes: - Added dmtimer0 - Created basic header files - Added MMC support for ARCH_AM33XX - Added reset function Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Some header file cleanup by: Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap: Add device register convenience functionsSascha Hauer2012-12-191-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* omap4: add support for booting cpu from usbVicente2012-11-161-0/+1
| | | | | Signed-off-by: Vicente <vicencb@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap: pbl fixesSascha Hauer2012-10-261-0/+1
| | | | | | | Omap3 pbl build may need omap3_clock.c. Also, do not use add_generic_device in pbl Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-171-4/+0
| | | | | | | The FSF address has changed in the past. Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM boards: Make boards pbl safeSascha Hauer2012-08-121-0/+3
| | | | | | | | With pbl support enabled most boards need a pbl-y for their lowlevel stuff. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* ARM omap3: reimplement setup_auxcr in pure asmSascha Hauer2012-01-171-1/+1
| | | | | | | | | This function consists of only inline asm statements, so use assembly in the first place. Also makes sure that the function is compiled in arm mode. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Tested-by: Sanjeev Premi <premi@ti.com>
* ARM omap3 clock: move pll tables to C codeSascha Hauer2012-01-171-1/+1
| | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Tested-by: Sanjeev Premi <premi@ti.com>
* ARM omap3: move board_init to pure_initcallSascha Hauer2012-01-171-1/+0
| | | | | | | | | board_init initializes the mux and sdram. For both there is no need to configure this so early. Move the code to a pure_initcall and remove the surrounding unneeded code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Tested-by: Sanjeev Premi <premi@ti.com>
* omap3: move platform lowlevel init to mach-omapJean-Christophe PLAGNIOL-VILLARD2012-01-161-0/+1
| | | | | | | this will allow to switch omap3 to standard organisation Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* omap_hsmmc: setup mmc voltage on twl6030Alexander Aring2011-12-211-0/+1
| | | | | | | | Support the setup of the mmc voltage, when booting OMAP4 with twl6030 from nand. Signed-off-by: Alexander Aring <a.aring@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* omap: Unify run_shell() in xload configurationSanjeev Premi2011-11-111-1/+2
| | | | | | | | | | | | | | Currently, there are multiple definitions of run_shell() for each board that can be build in "xload" configuration. Now there is only one function used by all boards. The functions defined in xload.c are used only when "xload" configuration used; but it gets compiled unconditionally. This has been fixed as well. Signed-off-by: Sanjeev Premi <premi@ti.com> Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ns16550: switch to resourceJean-Christophe PLAGNIOL-VILLARD2011-08-011-1/+1
| | | | | | | use generic read/write depending on the memory size if no reg_read/write defined Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* ARM omap: add xload helper functionsSascha Hauer2011-04-121-1/+1
| | | | | | | Add some common xload helper functions to determine the boot source on omap3/4 and to load images from mmc and nand. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap: Add omap4 supportSascha Hauer2011-04-121-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap: make gpio support mandatorySascha Hauer2011-04-041-2/+1
| | | | | | | | If compiled without gpio support the linker will throw the gpio functions away anyway, so make the omap kconfig entries a bit easier. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* omap: rename GPMC Kconfig entry to OMAP_GPMCSascha Hauer2011-04-041-1/+1
| | | | | | | Give this omap specific entry an omap namespace. Also, remove unnecessary dependency to omap2/3 in nand Kconfig. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap: move devices-gpmc-nand.c to omap architecture directorySascha Hauer2011-04-041-1/+1
| | | | | | | | The original plan was to add all omap devices into the boards/omap directory. Anyway, there will be reasons to put a board somewhere else, so move the generic parts into the omap architecture directory. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap: move uart access functions to a more generic placeSascha Hauer2011-04-041-0/+1
| | | | | | | These functions can be used on omap4 aswell, so move them to omap.c Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm omap: Add gpio supportSascha Hauer2010-08-061-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* OMAP: Add GPMC NAND supportNishanth Menon2008-09-151-0/+1
| | | | | | | | This patch adds support for a generic GPMC driver also a GPMC controller driver to allow platforms to add NAND devices generically. Signed-off-by: Nishanth Menon <x0nishan@ti.com>
* 011-OMAP-add-siliconNishanth Menon2008-06-051-0/+25
[Patch 11/17] U-Boot-V2:ARM:OMAP3: Add support for OMAP3 Silicon files This patch introduces support for OMAP3430 - provides for generic OMAP3 files. Signed-off-by: Nishanth Menon<x0nishan@ti.com>