summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-01-31Don't cscope symlinks. cscope doesn't like themPer Fransson
ST-Ericsson ID: - Change-Id: Ia578aac003204392564a74860966a959ad82117b Signed-off-by: Per Fransson <per.xx.fransson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/13917 Reviewed-by: QATOOLS Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2011-01-31U8500: Kick the Cortex watchdog when dumpingPer Fransson
ST-Ericsson ID: 321908 Change-Id: Ib51c36558e37c7f52db638052644758e6d3cc51a Signed-off-by: Per Fransson <per.xx.fransson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/13848 Reviewed-by: QATOOLS Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2011-01-28MMC: Remove read-write debug test codeMichael Brandt
This code was added by ST-Ericsson to the mainline code. Remove it, since its whole purpose was for debugging/testing. Furthermore Coverity found 4 defects in it. ST-Ericsson ID: ER 273353 Change-Id: I9e23f399a68c88bc250b280c3bc418da7217f8d3 Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/13292 Reviewed-by: QATOOLS Reviewed-by: Joakim AXELSSON <joakim.axelsson@stericsson.com> Reviewed-by: Markus HELGESSON <markus.helgesson@stericsson.com>
2011-01-28U8500: Change display reset for HREFP 2.0 V60 and laterMichael Brandt
The HREFP 2.0 V60 has no GPIO expander and the display reset IO line was moved to an ordinary GPIO line. Furthermore move the board dependent routine out from the mcde driver into u8500.c ST-Ericsson ID: CR 272893 Change-Id: If1362cecaeb183e67273066f759e220672f4537f Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/13480 Reviewed-by: Dan JOHANSSON <dan.johansson@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: Joakim AXELSSON <joakim.axelsson@stericsson.com> Reviewed-by: Markus HELGESSON <markus.helgesson@stericsson.com>
2011-01-27db8500: Verify signature of kernel before bootingRobert Rosengren
Verification of the kernel and ITP signature before allowing to boot is added. This feature is configurable and by default not activated. MeeGo- built RPM will have this enabled. ST-Ericsson ID: WP275634, ER275440 Change-Id: Ib888f39dd5dca1bc8b7d6e1b002da83a77908b07 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/11415 Tested-by: Robert ROSENGREN <robert.rosengren@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: Jens WIKLANDER <jens.wiklander@stericsson.com>
2011-01-25[ANDROID] Sets O=$(UBOOT_OUTPUT)Axel Fagerstedt
Place output from u-boot build in directory specified by Android product configuration. ST-Ericsson ID: 277228 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ibc93d0e305400d2d3064b3bbdda993fd13909227 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/9858 Reviewed-by: QATOOLS Tested-by: Axel FAGERSTEDT <axel.fagerstedt@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2011-01-25Correct capacity calculation for high capacity mmcMikael Larsson
This adds the correct calculation for high capacity mmc. ST-Ericsson ID: N/A ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I4a6b152d02f22d4abba790177fcfb200ba853192 Signed-off-by: Mikael Larsson <mikael.xt.larsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/13312 Reviewed-by: QATOOLS Reviewed-by: Sebastian RASMUSSEN <sebastian.rasmussen@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2011-01-20U8500: Lower cut-off voltage threshold in AB8500Johan Palsson
The cut-off voltage for AB8500 is set too high in the OTP. To be able to start with a charger from a drained battery, we have to lower this threshold before the backlight and display is started. ST-Ericsson ID: ER320113 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ia5c8c5b749fa9cb9cf8a15072ddfe5b0d1f33f5f Signed-off-by: Johan Palsson <johan.palsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/13028 Reviewed-by: QATOOLS Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2011-01-20U8500: Display driver: Remove enable interrupts for mcdeTorbjorn Svensson
Removes enable interrupts for mcde mistakenly inherited from the kernel code. Furthermore three printfs has been changed to debug. ST-Ericsson ID: ER320412 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ifd68404ecf36b040166b900cd51f6d503e4d2ef6 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/12876 Tested-by: Torbjorn SVENSSON <torbjorn.x.svensson@stericsson.com> Reviewed-by: Anders BAUER <anders.bauer@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Michael BRANDT <michael.brandt@stericsson.com>
2011-01-18U8500: Add support for HREFP 2.0 V60 and laterMichael Brandt
The HREFP 2.0 V60 has no GPIO expander, therefore some GPIO lines were moved around. The preferred approach was to first check if there is a machid in the environment. And if not try to program the GPIOE. If that fails, assume it is a V60 or newer. But for the splash screen, we need to know very early on which HW version we are running. At that time no environment is available, therefore it is unavoidable to do the I2C access (10 ms timeout), if both HW versions shall be supported in one binary. CAUTION: you need also a Linux kernel which supports MACH_TYPE_HREFV60. Older U8500 kernels will not even issue a start-up message. Depends-On: http://gerrit.lud.stericsson.com/gerrit/12335 ST-Ericsson ID: CR 272893 Change-Id: Id794df8c185dfbf67f7bce81deb49abf71129f7b Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/12578 Reviewed-by: Torbjorn SVENSSON <torbjorn.x.svensson@stericsson.com> Reviewed-by: Robert ROSENGREN <robert.rosengren@stericsson.com> Reviewed-by: Markus HELGESSON <markus.helgesson@stericsson.com> Reviewed-by: Bibek BASU <bibek.basu@stericsson.com>
2011-01-18U8500: Generic display driverTorbjorn Svensson
This patch introduces combined DSI and DPI display support for u-boot. The code is also similar to the kernel code for easy maintenance. ST-Ericsson ID: ER319241 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10069 Change-Id: Ic232b6f738348cbedb67e27418678ddd223d7800 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/11038 Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Torbjorn SVENSSON <torbjorn.x.svensson@stericsson.com>
2011-01-14MeeGo: Adding git version to boot logRobert Rosengren
The git version have been missing in the boot log when building in MeeGo, since MeeGo is building in OBS and not in git source tree. This patch adds a customized git2obs script that will both archive the git and generate a correct version file. The version file will then be used by the Makefile when building. ST-Ericsson ID: 317452 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I22edc5d94b909307dd1539c4ff8645f771f12306 Signed-off-by: Robert Rosengren <robert.rosengren@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/11432 Reviewed-by: QATOOLS Reviewed-by: Robert MARKLUND <robert.marklund@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-12-22Do not remove all .bin upon distcleanMichael Brandt
make distclean removes all .bin files. This patch limits it to generated .bin files. ST-Ericsson ID: ER282970 Change-Id: I31099cdcfaf465aa0d0f4db633dfc545755cba2d Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/11327 Reviewed-by: Robert ROSENGREN <robert.rosengren@stericsson.com>
2010-12-15Removal of executable permissionRobert Rosengren
General removal of executable permission of built source and header files, i.e. changing permission from 755 to 644. ST-Ericsson ID: None ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ic3cfc551d1ef1b1f0b5825f9916d1fc15b15b444 Signed-off-by: Robert Rosengren <robert.rosengren@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/10896 Reviewed-by: QATOOLS Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Joakim AXELSSON <joakim.axelsson@stericsson.com>
2010-12-15db8500: Move ISSW code out from itp.cRobert Rosengren
Splitting security related code from itp.c into sec_bridge.c ST-Ericsson ID: WP275634 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I813daf0d0eaea4645e7d990bf467f19b0af968db Signed-off-by: Robert Rosengren <robert.rosengren@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/10895 Reviewed-by: QATOOLS Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-12-15U8500: Move itp and cspsa into SoC directoryRobert Rosengren
itp.c and cspsa_fp.c is SoC specific, not board specific. Other db8500 based boards need it as well, therefore move it into the SoC directory. ST-Ericsson ID: WP275634 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I386c0d84e9f44f18ded0d9059fc2dae4c27974f2 Signed-off-by: Robert Rosengren <robert.rosengren@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/10894 Reviewed-by: QATOOLS Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Ulf HANSSON <ulf.hansson@stericsson.com> Reviewed-by: Joakim AXELSSON <joakim.axelsson@stericsson.com>
2010-12-13U8500: Changes to use a bmp file as splash imageTorbjorn Svensson
This change makes it possible to use a bitmap file (.bmp) as the splash image. This also removes the need to specify width and height of the splash image. RLE compression, 1 and 4 bit formats are not supported. ST-Ericsson ID: AP281072 Change-Id: I7c9ae953ad0440b665bb03ed1b9bbf43bab04e91 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/9406 Tested-by: Torbjorn SVENSSON <torbjorn.x.svensson@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-12-08db8500: New GPIO driver and config, from Linux kernelJoakim Axelsson
Copied the GPIO configurator written for the Linux kernel. The Nomadik db8500 GPIO driver. Purpose is to be able to just cut-n-paste the GPIO config from Linux to U-boot. Also at the same time remove the obsolete and old gpio_alt_funcenable/disable methods. Now all is configured using a table in u8500.c. Now drivers doesn't have to worry about setting up the GPIO pins. Actually no driver today uses GPIO pins directly, only via hardware blocks within db8500. Functions are still added to be able to interact directly with a GPIO pin. This also cleaned up a lot of driver by not having to bit manipulate GPIO registers them self. The new driver is called db8500_gpio and placed in driver/gpio/. Functions are in include/db8500_gpio.h: void db8500_gpio_set_pull(unsigned gpio, enum db8500_gpio_pull pull); void db8500_gpio_make_input(unsigned gpio); int db8500_gpio_get_input(unsigned gpio); void db8500_gpio_make_output(unsigned gpio, int val); void db8500_gpio_set_output(unsigned gpio, int val); And for the configurator in include/db8500_pincfg.h: void db8500_gpio_config_pins(pin_cfg_t *cfgs, size_t num); All in all the final binary size has decreased. This is only done for db8500 nomadik GPIO. The code for gpio expanders has not been touched. All references to Nomadik has been removed in this driver. Only db8500 is left. ST-Ericsson ID: None Signed-off-by: Joakim Axelsson <joakim.axelsson@stericsson.com> Change-Id: I90aa1d46c813ffb5a777c3492b5751f5054f71cf Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/9904 Reviewed-by: QATOOLS Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-12-08db8500: Clean up PRCMU code in db8500 SoC codeJoakim Axelsson
Clean up of PRCMU code in db8500 SoC code. Move things from cpu.c and clock.h to prcmu.c. Also remove duplicate #defines and have prcmu.c use the #defines in prcmu.h. ST-Ericsson ID: None Signed-off-by: Joakim Axelsson <joakim.axelsson@stericsson.com> Change-Id: Ieffb0094b3f43f0c88f3ed457c6cb296fa0ce378 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/9899 Reviewed-by: QATOOLS Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-12-08db8500: Display cpu info.Joakim Axelsson
Enable CONFIG_DISPLAY_CPUINFO and implement print_cpuinfo() in cpu/arm_cortexa9/db8500.c. ST-Ericsson ID: None Signed-off-by: Joakim Axelsson <joakim.axelsson@stericsson.com> Change-Id: Id4f67b223fabc4a8007229f8db12bd2a7362f8c2 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7115 Reviewed-by: QATOOLS Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-12-08db8500: Move all clock code from board to SoCJoakim Axelsson
Moved clock code from board/st/u8500/u8500.c to cpu/arm_cortexa9/db8500/clock.c. Remove code to simulate Maja clocks. ST-Ericsson ID: None Signed-off-by: Joakim Axelsson <joakim.axelsson@stericsson.com> Change-Id: Ibbb21d53091ceaddcc01e1a195e129039f986696 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7114 Reviewed-by: QATOOLS Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-12-08db8500: Move cpu identifying function to SoC codeJoakim Axelsson
Moved u8500_is_earlydrop() and cpu_is_u8500*() to include/asm-arm/arch-db8500/cpu.h. They are kept in cpu.h as the functions are very small and should be inlined with each use of them. The final binary actually also became around 100 bytes smaller. ST-Ericsson ID: None Signed-off-by: Joakim Axelsson <joakim.axelsson@stericsson.com> Change-Id: Ied553b7c8a004a37c70c3e328a069ae8b2a92b23 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/9893 Reviewed-by: QATOOLS Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-12-08db8500: Split arch_cpu code from boardJoakim Axelsson
First patch to split cpu_arch SoC-code away from board code. Added usage of arch_cpu_init() which is the corresponding to board_init(). Moved db8500 code from board/st/u8500/u8500.c to cpu/arm_cortexa9/db8500/cpu.c. Also created include/asm/arch-db8500/cpu.h and include/asm/arch-db8500/prcmu.h. ST-Ericsson ID: None Signed-off-by: Joakim Axelsson <joakim.axelsson@stericsson.com> Change-Id: I403d7d4f6c655c0d383afb3cb3be7e7df96683a3 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7150 Reviewed-by: Joakim AXELSSON <joakim.axelsson@stericsson.com> Tested-by: Joakim AXELSSON <joakim.axelsson@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-12-07[Android] Remove ENABLE_CR264527 flagUlrika Sjoberg
The CR has been integrated and is no longer needed. ST-Ericsson ID: 277554 ST-Ericsson FOSS-OUT ID: NA Change-Id: Iea3c5293e52a1c0e90b72f5ec9f25e03539a4b43 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/10327 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Ulrika SJOBERG <ulrika.malmborg@stericsson.com>
2010-12-07SPI: fixed compiler warnings in common/cmd_spi.cMarkus Helgesson
Fixed compiler warnings in common/cmd_spi.c. ST-Ericsson ID: 269867 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I78b973ca5e1e5ae5de8058abff897ff2cf545574 Signed-off-by: Markus Helgesson <markus.helgesson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/9520 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-12-07db8500: Make sure code is warning freeJoakim Axelsson
Add -Wall -Wextra -Werror to CFLAGS for db8500 SoC code. Also add -Wno-unused-parameter due to some inline functions in generic include files are having unused parameters. ST-Ericsson ID: None Signed-off-by: Joakim Axelsson <joakim.axelsson@stericsson.com> Change-Id: Ibc59c6e4ad1188e96d7c65d600881869b7024ce8 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/9891 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-12-07db8500: cpu-arch rename stw8500 to db8500Joakim Axelsson
Started work with splitting the files in board/st/u8500 into proper SoC (system on a chip), drivers, commands and board code. ST-Ericsson ID: None Signed-off-by: Joakim Axelsson <joakim.axelsson@stericsson.com> Change-Id: I33300b1990f377bc049785102f1c87fbe579e86d Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7089 Reviewed-by: Robert ROSENGREN <robert.rosengren@stericsson.com> Reviewed-by: Markus HELGESSON <markus.helgesson@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Mikael LARSSON1 <mikael.xt.larsson@stericsson.com>
2010-12-01MeeGo: spec-file prepared for other variantsRobert Rosengren
The u-boot spec-file is prepared for customized MeeGo products. The idea is to add new spec files with the main spec as template, changing the necessary configuration. From OBS perspective, a new linkpac should be created with the same name as the spec file (hence triggering build of the variant). ST-Ericsson ID: AP280926 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ie51a3c2ecbcd5b71aefa988efa5bc3758079093f Signed-off-by: Robert Rosengren <robert.rosengren@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/9338 Reviewed-by: Markus HELGESSON <markus.helgesson@stericsson.com> Reviewed-by: Oscar EKBLADH <oscar.ekbladh@stericsson.com> Reviewed-by: Olle TRANK <olle.trank@stericsson.com> Reviewed-by: Robert MARKLUND <robert.marklund@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-11-29U8500: Move clock.c into SoC directoryMichael Brandt
clock.c is SoC specific, not board specific. Other db8500 based boards need it as well, therefore move it into the SoC directory. Change-Id: Ib23d44988628e8bb6a8cb89c56941cf2a815892d Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/9399 Reviewed-by: Joakim AXELSSON <joakim.axelsson@stericsson.com> Reviewed-by: Markus HELGESSON <markus.helgesson@stericsson.com> Reviewed-by: Robert ROSENGREN <robert.rosengren@stericsson.com>
2010-11-29U8500: Move prcmu.c into SoC directoryMichael Brandt
prcmu.c is SoC specific, not board specific. Other db8500 based boards need it as well, therefore move it into the SoC directory. Change-Id: Ic40e474700fb737dbbb8ce7ea6c88ea1b89d2f20 Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/9371 Reviewed-by: Joakim AXELSSON <joakim.axelsson@stericsson.com> Reviewed-by: Markus HELGESSON <markus.helgesson@stericsson.com> Reviewed-by: Robert ROSENGREN <robert.rosengren@stericsson.com>
2010-11-23Prevent unnecessary build of u-bootSebastian Rasmussen
Even when the configuration had not really changed U-boot would be rebuilt due to that the configuration files were updated unnecessarily. This change prevents the configuration file to be updated as long as the config stays the same, and this in turn prevents buildling U-boot. This applies to STE Ux500 board configuration. ST-Ericsson ID: AP280716 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Iacc39eee65d57578b6cbfcfc1dc8217b31a9c76f Signed-off-by: Sebastian Rasmussen <sebastian.rasmussen@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/9228 Reviewed-by: Robert ROSENGREN <robert.rosengren@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-11-23U8500: config: removed non-applicable and unused definesMichael Brandt
Some defines were inherited from the old U-Boot 1.3.1 and are not used anywhere. This patch removes them. As a side-effect the flash.c dummy was also removed. Change-Id: Iecddb2f8bb59d909b936254085c358a1d246d205 Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/9203 Reviewed-by: Sebastian RASMUSSEN <sebastian.rasmussen@stericsson.com> Reviewed-by: Robert ROSENGREN <robert.rosengren@stericsson.com>
2010-11-22MeeGo: Added missing splash.binRobert Rosengren
The ste-rgb565.bin is now added to the RPM as splash.bin ST-Ericsson ID: ER280657 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I124c1b61dc8cba90ab968c7fa549465cef0fdb6e Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/9195 Tested-by: Robert ROSENGREN <robert.rosengren@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-11-19U8500: Removed duplicates of common.h and gpio.hMichael Brandt
common.h and gpio.h were present in the u8500 board directory and in the SoC include directory include/asm-arch/arch-stw8500. This patch removes the duplicates in the board directory and replaces all "common.h" and "gpio.h" with <asm/arch/common.h> and <asm/arch/gpio.h>, respectively. Change-Id: I4ff2a3a11324200222e3ae5b9d22eee6427f6d4c Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/8838 Reviewed-by: Markus HELGESSON <markus.helgesson@stericsson.com> Reviewed-by: Rikard OLSSON <rikard.p.olsson@stericsson.com>
2010-11-19MeeGo additionsRobert Rosengren
Added necessary files to build u-boot for MeeGo. ST-Ericsson ID: CR271125 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10009 Change-Id: Id8cc3680fc3c35f82b4889aa0f259fabac6d41ca Signed-off-by: Robert Rosengren <robert.rosengren@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/8343 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Sebastian RASMUSSEN <sebastian.rasmussen@stericsson.com> Reviewed-by: Mario BOIKOV <mario.boikov@stericsson.com>
2010-11-18u8500: pass MACH_TYPE_U8500 for u8500 platformMian Yousaf Kaukab
ST-Ericsson ID: ER280045 Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: Iac299906a34917a914a8ee27dde2592c3b7a19bf Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/8776 Tested-by: Mian Yousaf KAUKAB <mian.yousaf.kaukab@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-11-17U8500: crashdump: check find_mmc_device() return codeMichael Brandt
Fixed: Dereferencing possibly NULL "mmc" in call to function "mmc_init" ST-Ericsson ID: 273353 Change-Id: Ie75546c9e26b638d7cd7fe122a1180418b48df14 Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/8367 Reviewed-by: Mikael LARSSON1 <mikael.xt.larsson@stericsson.com>
2010-11-17arm: update mach-typesMian Yousaf Kaukab
To get numbers for 5500 machines and official SVP8500 numbers. ST-Ericsson ID: ER280045 mach-types are equivalent to the following patch: ST-Ericsson ID: AP279856 Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Change-Id: I0ce5ce2c31cc3e35fadd01acc20f077992be2f0d Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/8775 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-11-17Add qsort - add support for sorting data arraysMichael Brandt
Code adapted from uClibc-0.9.30.3 Originated from U-Boot mainline git://git.denx.de/u-boot.git commit 54c6977e9ca41fb38b45f1746d90f2806be3b5cb Original committer Wolfgang Denk <wd@denx.de> Change-Id: I85a11005af9eaed50d94674fdac74a32f7bc4f35 Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/8439 Reviewed-by: Mikael LARSSON1 <mikael.xt.larsson@stericsson.com> Tested-by: Mikael LARSSON1 <mikael.xt.larsson@stericsson.com>
2010-11-12U8500: Load splash image from TOCMikael Larsson
This patch removes splash image from u-boot binary and loads it from a toc entry called SPLASH instead. Depends-On: I2e182df7fa056a5df2deb05a4ebab844eedbb85d I715045aba01c1c747f9bd15f02c6d057f66ff968 I93e63a092fd6f229f530e55ec4b98e8e09db1c06 ST-Ericsson ID: ER268766 Change-Id: I4ee7885618d18d526dfca55d7c45b769cd9b52c9 Signed-off-by: Mikael Larsson <mikael.xt.larsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/6879 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Rikard OLSSON <rikard.p.olsson@stericsson.com>
2010-11-12U8500: Enabled support for i2c1-3Robert Rosengren
Moved enabling of clocks into i2c driver, making it possible to use all i2c from 0 to 3. Changed sanity check of i2c_read function to make it possible read from devices with 2 byte address. ST-Ericsson ID: CR275232 Change-Id: I6c9c2efe20dcb6903419ba531a86228a5f4491ca Signed-off-by: Robert Rosengren <robert.rosengren@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/8340 Reviewed-by: Markus HELGESSON <markus.helgesson@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-11-11U8500: Fix itp coverity issueMikael Larsson
This fixes a coverity issue in itp.c. ST-Ericsson ID: ER273353 Change-Id: Ifbe265567169a57d6dec940ef7593e601b9953e8 Signed-off-by: Mikael Larsson <mikael.xt.larsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/8284 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Sebastian RASMUSSEN <sebastian.rasmussen@stericsson.com>
2010-11-10U8500: Fix sd card initMikael Larsson
Fixes sd card init that did not initialize ddr_en. This made sd fail init when previous contents in ddr_en was not 0. Change-Id: I5f2f33efdeb2e6af9e984805442ee0aa4285abdd Signed-off-by: Mikael Larsson <mikael.xt.larsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/8231 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Robert ROSENGREN <robert.rosengren@stericsson.com> Tested-by: Robert ROSENGREN <robert.rosengren@stericsson.com>
2010-11-08U8500: Removed compiler warning in itp.cRikard Olsson
ST-Ericsson ID: ER268766 Change-Id: Ib09f8b2107e7ba09efd7ff4dec6a22949d56d5ff Signed-off-by: Rikard Olsson <rikard.p.olsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7905 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Mikael LARSSON1 <mikael.xt.larsson@stericsson.com>
2010-11-08Rework env_emmcSebastian Rasmussen
Use TOC functionality instead of hardcoded environment addresses to make it easier to move the U-boot environment configuration to other locations in the flash memory. ST-Ericsson ID: 270847 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10009 Change-Id: If70d56587d47afdc60a2e50e85d0de13cdf556cc Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com> Signed-off-by: Sebastian Rasmussen <sebastian.rasmussen@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7761 Reviewed-by: Simon SJOLANDER <simon.sjolander@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Patrik RYD <patrik.ryd@stericsson.com> Reviewed-by: Mikael GULLBERG <mikael.xx.gullberg@stericsson.com> Tested-by: Patrik RYD <patrik.ryd@stericsson.com>
2010-11-04Buffer size increased in mk_env_img toolMikael Gullberg
Buffer used to read configuration file was increased in size. ST-Ericsson: 270847 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I4c9a24d63e1842034e06aa8758808a43da191477 Signed-off-by: Mikael Gullberg <mikael.xx.gullberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7806 Reviewed-by: Rickard EVERTSSON <rickard.evertsson@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Sebastian RASMUSSEN <sebastian.rasmussen@stericsson.com>
2010-11-04Add RTC driver for ST variant of pl031Michael Brandt
The RTC implemented on the dbx500 SoCs is a derivative of the pl031. This driver supports the STv2 date/time layout. It is based on Linux drivers/rtc/rtc-pl031.c Change-Id: Iebe5973ba0627670f138631664748386b60f2b11 Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/6331 Reviewed-by: Carl-Johan IREKVIST <carl-johan.irekvist@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7718 Reviewed-by: Mian Yousaf KAUKAB <mian.yousaf.kaukab@stericsson.com>
2010-11-04Generic toc loadingMikael Larsson
Adds generic toc loading so not all toc clients need to implement their own toc loader. ST-Ericsson ID: ER268766 Change-Id: Ib3b69df700a5167115aeb168006c24b76c39763f Signed-off-by: Mikael Larsson <mikael.xt.larsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/6869 Reviewed-by: Sebastian RASMUSSEN <sebastian.rasmussen@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-11-04U8500: Add support for SPIMarkus Helgesson
Added SPI support for U8500 ST-Ericsson ID: 269867 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10121 Change-Id: Ied17dd39aa1ebc0ee95818c59c7f211ce655b8bf Signed-off-by: Markus Helgesson <markus.helgesson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7569 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-11-03U8500: Add cspsa fallback and fix toc loadRikard Olsson
Modified itp.c to load the modem when no cspsa flag for booting ITP is set. The loading of modem have been removed from X-Loader. Also correct a bug in itp.c ST-Ericsson ID: ER268766 Change-Id: I29f107c287ae5dbaf7274bc57ef30aaeacf67081 Signed-off-by: Rikard Olsson <rikard.p.olsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7787 Reviewed-by: Mikael LARSSON1 <mikael.xt.larsson@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>