summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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>
2010-11-03mk_envimg: Add support to have comments in input config filerickard evertsson
Adds support to have comments in the input file to mk_envimg. Simply start the line with # and all following characters on that line will be treated as a comment. Change-Id: I119be1ebf0c80a7f6056632ff56b8f91beae364f Signed-off-by: rickard evertsson <rickard.evertsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7786 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Robert ROSENGREN <robert.rosengren@stericsson.com>
2010-11-02SPI: Extended functionality for sspi commandMarkus Helgesson
Modified command line command sspi to allow a more flexible testing. Previous hard coded values are now run time configurable as optional parameters to sppi to allow a more flexible use (like testing more than one SPI bus without rebuilding). The old hard coded values are the default values for the optional parameters so the old behaviour will still work as expected. ST-Ericsson ID: 269867 Change-Id: I08678886c1ed6f6bc78ae94721e2b1ccde3d1e9d Signed-off-by: Markus Helgesson <markus.helgesson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7603 Reviewed-by: Rikard OLSSON <rikard.p.olsson@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-11-01U8500: Fix modem loading for V2Mikael Larsson
This fixes the broken modem loading in V2. ST-Ericsson ID: ER277406 Change-Id: Ifefe85d0cbeaa5c5e6dca3afe57f371530bc646a Signed-off-by: Mikael Larsson <mikael.xt.larsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7551 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-10-28U-Boot: Modify memargs512 pmem_hwb to 128MBMisbah
Change pmem_hwb from 64MB to 128MB. This makes it possible to record upto 1080p video content. ST-Ericsson Change ID: 271474 Change-Id: I6e63c7063f188b9ba72c7d7b8c87ad92bee2d696 Change-Id: I54d6ca8d03682dfe9f3492ef315eef308aa4392c Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/5778 Reviewed-by: Vishal JAIN <v.jain@stericsson.com> Tested-by: Vishal JAIN <v.jain@stericsson.com> Reviewed-by: Henrik CARLING <henrik.carling@stericsson.com>
2010-10-27U8500: Disable itp and modem loadingMikael Larsson
itp and modem laoding causes V2 HW to hang in u-boot This disables that functionality ST-Ericsson ID: ER277406 Change-Id: Ia1ec09dadca813ff46775453dea64e6a1b69af07 Signed-off-by: Mikael Larsson <mikael.xt.larsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7262 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Tobias ANDERSON <tobias.xx.andersson@stericsson.com>
2010-10-26U8500: default env: MMC related fixes and changesMichael Brandt
Enabled setexpr command to enable $filesize to $blocksize conversion in scripts. Changed occurrences of "mmc init" to "mmc rescan". Changed paths in fat commands to absolute paths. Added mmcboot alias to boot from external MMC (SD card). The rootfs must be on the second partition. This allows to have a FAT FS on the first partition; which is very common. Change-Id: I17b89a43b4be7906f3f9e16e9ced9fa421a52d3a Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/6964 Reviewed-by: Robert ROSENGREN <robert.rosengren@stericsson.com> Reviewed-by: Kunal GOEL <kunal.goel@stericsson.com>
2010-10-26Fix restart of u-bootMikael Larsson
After introduction of modem loading, restart from kernel hangs in itp_load_modem_and_itp. This adds a check so that itp, modem and splash is not run after restart of u-boot. ST-Ericsson ID: ER277386 Change-Id: Ibfd12d9efa43549c652d3726904e4cefb59e6979 Signed-off-by: Mikael Larsson <mikael.xt.larsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7192 Reviewed-by: Per FRANSSON <per.xx.fransson@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-10-26Minimize time to splashMikael Larsson
Moved splash start to just after emmc init to minimize time to splash. Changed behaviour so that all SW is loaded after splash and splash is not loaded if it is itp. ST-Ericsson ID: ER268766 Change-Id: I09f8efce997ebd97d6de1a5fbff707b2aef175a4 Signed-off-by: Mikael Larsson <mikael.xt.larsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/6515 Reviewed-by: Sebastian RASMUSSEN <sebastian.rasmussen@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-10-21Replace MAX_CMDBUF_SIZE references with CONFIG_SYS_CBSIZEPeter Tyser
The MAX_CMDBUF_SIZE define is unneeded as it should always equal CONFIG_SYS_CBSIZE. Change-Id: I90a9dedb48478d39e3fd112a892f9dca73116b5e Signed-off-by: Peter Tyser <ptyser@xes-inc.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/6819 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Mikael LARSSON <mikael.xt.larsson@stericsson.com>
2010-10-21cmd editing: optimize/shrink output blankingMike Frysinger
No need to output spaces 1 char at a time in a loop when the printf code can do the same thing with the right format string. This shrinks things and gives a nice speed up when killing off lines more than a byte or two as printf will send out the buffer in one big chunk. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Change-Id: Ic1e4eb92b6d9c61efec585433152c907e449fe44 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/6818 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Michael BRANDT <michael.brandt@stericsson.com>