summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap/omap3_generic.c
Commit message (Collapse)AuthorAgeFilesLines
* ARM: Omap3: Remove useless inlineSascha Hauer2015-12-101-1/+1
| | | | | | | | | | Silences gcc5 warning: In file included from arch/arm/mach-omap/gpmc.c:31:0: arch/arm/mach-omap/include/mach/sys_info.h:93:83: warning: inline function 'get_sysboot_value' declared but never defined Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* restart: replace reset_cpu with registered restart handlersSascha Hauer2015-08-271-3/+5
| | | | | | | | | | | | | | | | | | | | | | This replaces the reset_cpu() function which every SoC or board must provide with registered handlers. This makes it possible to have multiple reset functions for boards which have multiple ways to reset the machine. Also boards which have no way at all to reset the machine no longer have to provide a dummy reset_cpu() function. The problem this solves is that some machines have external PMICs or similar to reset the system which have to be preferred over the internal SoC reset, because the PMIC can reset not only the SoC but also the external devices. To pick the right way to reset a machine each handler has a priority. The default priority is 100 and all currently existing restart handlers are registered with this priority. of_get_restart_priority() allows to retrieve the priority from the device tree which makes it possible for boards to give certain restart handlers a higher priority in order to use this one instead of the default one. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: OMAP: remove unused CONFIG_OMAP3_CLOCK_CONFIG optionSascha Hauer2015-06-221-5/+0
| | | | | | | 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: OMAP: Safe boot info in fixed SRAM addressSascha Hauer2013-12-101-1/+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>
* ARM: OMAP: centralize omap startupSascha Hauer2013-11-221-2/+12
| | | | | | | | | 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>
* ARM: OMAP: select correct reset_cpu function at runtimeSascha Hauer2013-11-221-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: OMAP: Add SoC prefix to running_in_* functionsSascha Hauer2013-11-221-6/+6
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: omap: store boot source info from ROM loaderTeresa Gámez2013-07-101-3/+13
| | | | | | | | | | | | | | | | | | 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>
* omap: move to common bootsource frameworkJan Luebbe2013-04-181-6/+10
| | | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Folded fix into this patch: [PATCH] omap4 regression: set correct boot source Signed-off-by: Vicente Bergas <vicencb@gmail.com>
* 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-1/+3
| | | | | | | Code taken from U-Boot. This makes the beagle board much more reliable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap3: Add change OMAP_ prefix to OMAP3_ for registersSascha Hauer2012-12-201-19/+19
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap: include individual SoC filesSascha Hauer2012-12-191-1/+2
| | | | | | | - remove mach/silicon.h and include omap?-silicon.h directly - include mach/omap?-clock.h directly where needed Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap3: make PRM defines SoC specificSascha Hauer2012-12-191-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap: remove unused functionSascha Hauer2012-12-191-19/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/omap'Sascha Hauer2012-12-071-6/+6
|\
| * OMAP3: Replace magic GPIO numbers in omap3_generic.c with macros.Robert P. J. Day2012-12-051-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on following lines in omap3-silicon.h: #define OMAP_L4_WKUP_BASE 0x48300000 #define OMAP_L4_PER_BASE 0x49000000 ... snip ... #define OMAP_GPIO1_BASE (OMAP_L4_WKUP_BASE + 0x10000) #define OMAP_GPIO2_BASE (OMAP_L4_PER_BASE + 0x50000) #define OMAP_GPIO3_BASE (OMAP_L4_PER_BASE + 0x52000) #define OMAP_GPIO4_BASE (OMAP_L4_PER_BASE + 0x54000) #define OMAP_GPIO5_BASE (OMAP_L4_PER_BASE + 0x56000) #define OMAP_GPIO6_BASE (OMAP_L4_PER_BASE + 0x58000) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Remove old, inaccurate "FileName:" cruft from ARM filesRobert P. J. Day2012-12-051-5/+2
|/ | | | | | | | | In addition, collapse adjacent comment blocks into one and remove extraneous blank lines. Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Acked-by: Nishanth Menon <nm@ti.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap: pbl fixesSascha Hauer2012-10-261-0/+2
| | | | | | | 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>
* ARM OMAP: change region size for gpio banksTeresa Gámez2012-10-091-6/+6
| | | | | | | | - increased the region size for OMAP3, as it was not correct - decrease region size for OMAP4 to prevent overlapping. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/remove-fsf-address'Sascha Hauer2012-10-031-4/+0
|\ | | | | | | | | | | Conflicts: drivers/net/miidev.c include/miidev.h
| * 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 OMAP: switch to gpiolib supportTeresa Gámez2012-09-241-0/+19
|/ | | | | Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* devices-gpmc-nand: Add OMAP4 gpmc nand timingsTeresa Gámez2012-03-151-0/+16
| | | | | | | | Add a OMAP4 specific GMPC nand config for pcm049 and phyCARD-A-XL2 to increase performance. Also add the possiblility to pass a board GPMC nand config. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap3: reimplement setup_auxcr in pure asmSascha Hauer2012-01-171-19/+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: call a_init from board codeSascha Hauer2012-01-171-1/+1
| | | | | | | | There is no need to call a_init before relocation, so rename the function to omap3_core_init and call it from board code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Tested-by: Sanjeev Premi <premi@ti.com>
* introduce io.hSascha Hauer2011-09-221-1/+1
| | | | | | | To allow for some generic io accessors introduce io.h and use this instead of asm/io.h throughout the tree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Added helper function to get CS1 base address.Juergen Kilb2011-09-121-0/+19
| | | | | | | | | | This helper function can be used for automatic SDDR configuration based on register settings made by a previously first stage bootloader i.e. x-loader. Signed-off-by: Juergen Kilb <J.Kilb@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add Reset Support for omap3.Juergen Kilb2011-09-121-2/+3
| | | | | | | Inspired from reset_cpu in omap4_generic.c. Signed-off-by: Juergen Kilb <j.kilb@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM omap: add xload helper functionsSascha Hauer2011-04-121-0/+14
| | | | | | | 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: move uart access functions to a more generic placeSascha Hauer2011-04-041-34/+0
| | | | | | | These functions can be used on omap4 aswell, so move them to omap.c Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* omap36x: Detect silicon revisionsSanjeev Premi2011-01-051-18/+42
| | | | | | | | This patch adds support to detect the different OMAP36XX silicon revisions. Signed-off-by: Sanjeev Premi <premi@ti.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* omap36x: Add support for dynamic detectionSanjeev Premi2011-01-051-1/+4
| | | | | | | | | | | This patch adds the support to detect OMAP3630. It also re-organizes the CPU_xxxx definitions in sys_info.h to ascending order so that newer silicons can be added at bottom. Signed-off-by: Sanjeev Premi <premi@ti.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* omap3: Update method to detect si revisionSanjeev Premi2011-01-031-4/+34
| | | | | | | | | | | | | | | This patch ensures that all silicon revisions are detected. (Current implementation cannot detect ES1.0). In the process, the 'seemingly' hardcoded macros identifying cpu revision (e.g. CPU_ES1P1) have been updated to include the CPU name as well. (The mapping of IDCODE value to silicon revision may not be same across different OMAP families). Signed-off-by: Sanjeev Premi <premi@ti.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* omap3: Detect cpu based on hawkeyeSanjeev Premi2011-01-031-1/+13
| | | | | | | | | This patch sets the cpu type based on the hawkeye value read from the IDCODE register. So far, cpu type was hardcoded. Signed-off-by: Sanjeev Premi <premi@ti.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* omap3: Add macros to extract hawkeye and versionSanjeev Premi2011-01-031-6/+6
| | | | | | | | | | This patch adds macros to extract the hawkeye and version number from IDCODE value. Updated function get_cpu_rev() to use new macro. Signed-off-by: Sanjeev Premi <premi@ti.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* reset_cpu: unify declarationRobert Schwebel2010-10-221-2/+2
| | | | | | | | include/common.h declares this as "unsigned long addr", so we unify it. This also silences a doxygen warning. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* make reset_cpu a __noreturn functionSascha Hauer2010-03-301-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Cleanup colleteral damage from renamingSascha Hauer2009-12-151-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rename U-Boot-v2 project to bareboxSascha Hauer2009-12-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | This has been done with the following script: find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \ -e 's/u2boot/barebox/g' \ -e 's/U2Boot/barebox/g' \ -e 's/U-boot V2/barebox/g' \ -e 's/u-boot v2/barebox/g' \ -e 's/U-Boot V2/barebox/g' \ -e 's/U-Boot-v2/barebox/g' \ -e 's/U_BOOT/BAREBOX/g' \ -e 's/UBOOT/BAREBOX/g' \ -e 's/uboot/barebox/g' \ -e 's/u-boot/barebox/g' \ -e 's/u_boot/barebox/g' \ -e 's/U-Boot/barebox/g' \ -e 's/U-boot/barebox/g' \ -e 's/U-BOOT/barebox/g' find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \ xargs -0 -r rename 's/u[-_]?boot/barebox/' It needs some manual fixup following in the next patch Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/machJean-Christophe PLAGNIOL-VILLARD2009-10-221-9/+9
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Remove all ARM __raw_* functions. They are mixed all overJuergen Beisert2009-07-011-25/+25
| | | | | | | the place. This clean up all ARM architectures to use only one set of io functions. Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
* 011-OMAP-add-siliconNishanth Menon2008-06-051-0/+450
[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>