summaryrefslogtreecommitdiff
path: root/include/configs/u8500.h
AgeCommit message (Collapse)Author
2012-03-23snowball: fix incorrect root= parameter for eMMC bootHEADmasterLee Jones
Erronrous root= parameter causes "Kernel panic - not syncing: No init found" After applying this patch Snowball boots successfully to a shell again. Signed-off-by: Lee Jones <lee.jones@linaro.org>
2012-03-06snowball: pushing vmalloc to 300MMathieu J. Poirier
This is to address the following bug: https://bugs.launchpad.net/igloocommunity/+bug/934034 Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
2012-02-08snowball: android: increasing mali memory regionMathieu J. Poirier
This is fixing bug: https://bugs.launchpad.net/igloocommunity/+bug/925913 Signed-off-by: Benn Porscke <benn.porscke@stericsson.com> Committer: Mathieu Poirier <mathieu.poirier@linaro.org>
2012-02-02Add support for boot.scr filer on emmc.Benn Pörscke
If a boot.scr file exist in a fat partition on the emmc it will be used.
2011-11-25Remove automatic IP acquiring from kernel commandlineKalle Vahlman
It delays the boot for all, although useful only for those using network based filesystems as rootfs.
2011-11-17Corrected bad memargs1024Mats Bergstrom
2011-11-09Adding absolute path convention to boot.scrMathieu J. Poirier
Files fetched by 'fat load' must use absolute path, otherwize the command fails. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
2011-06-17Fixing backslash zero '\0' in 'commonargs' variable.2011.08.252011.08.23Mathieu Poirier
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
2011-06-01Added vmalloc parameter to default environment.Tony Månsson
2011-05-27Tailoring boot algorithm for snowballMathieu J. Poirier
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
2011-02-14Adding compilation support for snowball.Mathieu J. Poirier
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
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-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>
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: 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: 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-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-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-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-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-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-15Add correct position of hwmem in memargs512Robert Fekete
The reason UI gets sluggish, among other weird graphics issues is that B2R2 cannot address memory that spans over a 64MB boundary. Hwmem memory is used by B2R2. The old position 28M@172 (172 - 200MB, 192 is at a 64M boundary) unfortunalelly still spans over a 64MB boundary. Therefore it is crucial that hwmem is moved to an appropriate position. hwmem=32M@128M mem=64M@160M aligns perfectly and empty memory slots is given to mem, thus no decrease in system memory at all. ST-Ericsson Change ID: ER272332 Change-Id: I5b84ca1a0acfb9f03c00d1733b8dd3cbcab0503f Signed-off-by: Robert Fekete <robert.fekete@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/6571 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Nils CALMSUND <nils.calmsund@stericsson.com> Reviewed-by: Fredrik ALLANSSON <fredrik.allansson@stericsson.com>
2010-10-12u8500: Changed rootdelay=1 to rootwaitJonas Aaberg
Wait until for the device with root filesytem appears. (No matter if it takes 0s or 2h.) The result of this patch 1s faster boot. Change-Id: I1b0257bcde10da568ad50d6fc601759bc9823ed3 Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Change-Id: Ic16cd6a44443ab73f92cdd94aebc7395ec861aeb Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/5811 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-09-28ITP loadingMikael Larsson
This adds functionality to load and execute ITP in an early stage just after eMMC init. eMMC init was moved to mmc_host.c since it fits better there and is needed in order to access ITP before loading env. Flag for functionality is CONFIG_ITP_LOAD. This functionailty depends on CONFIG_TOC_PARTITION ST-Ericsson ID: ER273744 Change-Id: Ia80f0bf2d67055045c95e47473b9ba2275bbdb83 Signed-off-by: Mikael LARSSON <mikael.xt.larsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/5130 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Ulf HANSSON <ulf.hansson@stericsson.com>
2010-09-28Added output env var Size and Offset in tocload commandPeter Nessrup
tocentrysize and tocentryoffset are now output as env vars from the tocload command Change-Id: I3fe3918c48bb6ab196100d4cc617569a829803c6 Signed-off-by: Peter Nessrup <peter.nessrup@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/5673 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Sebastian RASMUSSEN <sebastian.rasmussen@stericsson.com> Reviewed-by: Ulf HANSSON <ulf.hansson@stericsson.com>
2010-09-24u-boot: Changed pmem to hwmem in bootargsFredrik Allansson
The reserved memory for pmem has been changed to reserved memory for hwmem. ST-Ericsson ID: WP269630 Change-Id: I0eff03561e12b286d983efe67d39a265bf647d45 Signed-off-by: Fredrik Allansson <fredrik.allansson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/5401 Reviewed-by: Johan MOSSBERG <johan.xx.mossberg@stericsson.com> Reviewed-by: Robert LIND <robert.lind@stericsson.com> Reviewed-by: Robert FEKETE <robert.fekete@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-09-16boottime: Enable boot time measurements.Jonas Aaberg
This patch enables boot time measurements for u-boot. It also includes minor updates as well. Change-Id: I993c9ad4fa5dab62df2c0a88454a7546d9565d21 Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4610 Reviewed-by: Robert ROSENGREN <robert.rosengren@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-09-13U-Boot: Modify memargs512 pmem_hwb to 64MBRobert Fekete
Change pmem_hwb from 56MB to 64MB. This makes it possible to play 1080p video content. ST-Ericsson Change ID: ER272382 Change-Id: I72fd601c36c49ddd01b63de56f54d5f9ac02e5a6 Signed-off-by: Robert Fekete <robert.fekete@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/5001 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-09-13U-boot: Modified memargs512.Robert Fekete
Moved pmem@ from 176 to 172. ST-Ericsson Change ID: ER271400 Change-Id: Ic1fa12b4417822b0c0597169666c242631d4ada7 Signed-off-by: Robert Fekete <robert.fekete@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4967 Reviewed-by: Nils CALMSUND <nils.calmsund@stericsson.com> Tested-by: Nils CALMSUND <nils.calmsund@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2010-08-30Make U-Boot restartable and crash dump supportMichael Brandt
* Added an u8500 board specific ld script. Reserve space for .data backup. * Make a backup copy of initialised data (.data section). If restarted, copy the backup data back to .data. * Create crashkernel env variable dynamically, since it depends on U-Boot start address. For dumping U-Boot itself is used as crashkernel. * Set preboot environment variable to checkcrash command, if data_init_flag > 0, i.e. we were restarted e.g. by kexec. * Added crashkernel parameter to common bootargs. Decreased environment and pool sizes. * Changed link address of U-Boot: moved it 32 K up for kdump info to 0x05608000 * Added "checkcrash" command This command checks if there is a pending crash dump and writes it to a file on SD/MMC. ST-Ericsson ID: WP264488 Change-Id: If545822e424b95532f1128afb0e762b6b73834e9 Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/3011
2010-08-30u8500 board code modifications for Rockbox FATMichael Brandt
board/st/u8500/u8500.c - added errno include/configs/u8500.h - added Rockbox related CONFIGs ST-Ericsson ID: WP264488 Change-Id: I417c6acd23b365a121c898533f93e4f84bfb92e0 Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/3010
2010-08-25Align memory regions in memory map to 8 MBDan Johansson
This patch aligns the start address and size of all mem regions to 8 MB. Note that there is 2 MB unused memory starting at 198M. ST-Ericsson Change-Id: ER268677 Change-Id: Ia93953b0ff0af788c75ce378cdae96a23361455f Change-Id: I5dc74519b6a12431407e918cfe5552969793ec5b Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4054 Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com> Tested-by: Dan JOHANSSON <dan.johansson@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-08-11Replace MMC/SD driver to fit new framework.Ulf Hansson
IR265772: MMC driver does not detect SDHC cards. IR254201: Restructure MMC/SD driver for U8500 board according to the block device framework in mainline U-Boot. Changes to mmc framework: - Multi Block Read support in mmc framework. - Wrap Multi Block Write/Read to be able to adopt for large transaction. - Removed incorrect check in EXT CSD for high capacity MMC. - Corrected check for high capacity SD cards. - Set MMC buswidth to 8, prio of using 4. Known limitations/bugs in mmc framework: - High capacity MMC, will likely not get the correct density. - High speed is set, whether or not the host supports it or not. board/st/u8500/mmc_utils: IMPORTANT FOR DEVELOPERS: - Removed unessary U-Boot commands which is already supported in cmd_fat. - mmc_read_cmd_file: Read command.txt into bootcmd env from FAT FS in SD card. - write_partition_block: Writes the MBR if it is not already written. board/st/u8500/mmc_host[c.h]: - Implements the entire MMC/SD host driver for the PL180 block. - There is still room for optimization: Increase CLK-speed. Use high-speed for SD cards. Is GPIO setup correctly for both cards an eMMC. EarlyDrop support not fully tested. Dynamically turn on voltage/clocks to SD, not always. More... Note: - Increased read/write performance for eMMC, to around 5.4 MB/s for sequential read/write. Earlier measurements was 3.5 MB/s for read and 2.6 MB/s for write. ST-Ericsson ID: ER265772, CR267996, ER267993 Change-Id: I921102edbde761407ff5ad476d1bb99f5dc7a2ef Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2288 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Martin LUNDHOLM <martin.xa.lundholm@stericsson.com> Tested-by: Martin LUNDHOLM <martin.xa.lundholm@stericsson.com> Reviewed-by: Mikael LARSSON <mikael.xt.larsson@stericsson.com> Tested-by: Mikael LARSSON <mikael.xt.larsson@stericsson.com>
2010-07-23Boottime changes. Moved generic boottime code from lib_arm to common. ↵Jonas Aaberg
Boottime now internally uses us instead of ticks. Reviewed-by: Michael Brandt <michael.brandt@stericsson.com> Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Change-Id: If30d2eb384d6e82daa86c3cab7a6fd2a22baefb5 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/3053 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-07-12MCDE: Adds support for more display typesJimmy Rubin
This patch does the following: * Adds configs to set display xres and yres in u8500.h * Adds config to set display voltage in u8500.h * Changes default settings for dsi / dsi pll clocks ST Ericsson Change-ID: AP264669 Change-Id: I9277167e690ece6569fa39d9e2e9e4c7c1473006 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2587 Tested-by: Jimmy RUBIN <jimmy.rubin@stericsson.com> Reviewed-by: Dan JOHANSSON <dan.johansson@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-07-07memory bootargs changeMichael Brandt
Related to ER 265783 "Existing SI memory map no more compatible for MM" and ER 260608 "VC: Black incoming call screen". The Linux kernel and graphics memory parameters have changed. Furthermore there are different layouts for 256 MB and 512 MB SDRAM resp. With this change U-Boot detects dynamically the memory size by making some fixed assumptions about the memory chip and controller and by reading the number of actually used rows and columns. It then sets the environment variable memargs to add either memargs256 or memargs512 to "bootargs". "memargs256" and "memargs512" are stored in the U-Boot environment area. The default values are set in include/configs/u5000.h Also the default uImage copy size was increased from 2 MiB to 3 MiB, since the released uImage size is close to 2 MiB and some developers uImage is already above. Tested with HREF ED (256 MB) (LBP only), HREF 1.0 V20 OM (256 MB) and HREF+ 1.1 V31 (512 MB). Erase the U-Boot environment first, if you want the new settings. ST-Ericsson ID: ER265783 Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Change-Id: I2467c9e410738a3655fc0fd25548cd6f4eb8351c Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2464 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: Per-Daniel OLSSON <per-daniel.olsson@stericsson.com> Reviewed-by: Dan JOHANSSON <dan.johansson@stericsson.com>
2010-06-10Adding support for startup graphicsJimmy Rubin
This patch does the following: * Startup graphics only support for HREF+. * Displays a logo last in the u-boot sequence before the kernel is booted. * Informs the kernel not to display penguins. * Added pmem values to bootargs. ST Ericsson Change-ID: WP236570 Change-Id: Ib176c17a795ddd002e94344eb9c67739b1e2269e Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/1048 Reviewed-by: Par-Olof HAKANSSON <par-olof.hakansson@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
2010-05-24Use proper copyright linesRabin Vincent
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Change-Id: Ieec8e7940e7acdc88d7c17b12007f61841741325 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/390 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
2010-05-19remove rootfstype from bootargsMichael Brandt
This patch is part of WP254081 which depends on WP252006. Remove rootfstype from bootargs and rely on rootfstype auto detection. Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Change-Id: I1f951b90d4bed6825e73d7cd206721737637f181 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/184 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
2010-05-19HREF V1 updatesMichael Brandt
This patch is part of WP254081 which depends on WP252006. * Fixed I2C, use real timeouts instead of counter * Undefined CONFIG_BOOTTIME, since it as to be changed to new timer.c * Merged V1 patches from Bangalore The patches were merged manually, because of the differences of the U-Boot baseline (Bangalore U-Boot 1.3.1, Lund 2009.11). The original patches were created by Rabin Vincent <rabin.vincent@stericsson.com>. and were applied originally to Branches: blr_lsp, remotes/origin/blr_lsp Follows: qpppaaa_20100210_094651 0001-u8500-gpio-add-I2C0-altfun.patch 0002-u8500-use-correct-v1-macros.patch 0003-emmc-clean-up-paritioning.patch 0004-u8500-remove-incorrect-ram-settings.patch 0005-u8500-gpio-remove-unnecessary-ifdefs.patch 0006-u8500-add-ED-v1-detection-and-handle-eMMC-diff.patch 0008-u8500-mmc-don-t-disable-altfuns.patch 0009-u8500-gpio-remove-unused-defined.patch 0010-u8500-mmc-add-barrier-for-while-loop.patch 0011-u8500-mmc-handle-non-block-addressed-cards.patch 0012-u8500-mmc-remove-unused-gpio-settings-on-v1.patch 0013-u8500-emmc-build-fix.patch 0014-u8500-handle-v1-gpios-and-clocks.patch 0015-mmc-build-fix-for-block-addressing.patch 0016-u8500-add-clocks-and-hardware-files.patch 0017-u8500-enable-PRCUM-timers-reg-for-ED.patch 0018-u8500-handle-MTU-for-v1-ED.patch 0019-u8500-emmc-remove-unnecessary-GPIO-settings.patch 0020-u8500-remove-dead-code.patch 0021-u8500-add-working-MTU-timer.patch 0022-pl011-empty-rx-fifo-if-necessary.patch 0023-u8500-gpio-fix-cont-handling-in-altfunc.patch 0024-u8500-reduce-bootdelay-to-1-and-enable-zero-check.patch 0025-u8500-disable-forcing-of-verify-but-set-n-by-default.patch 0029-u8500-fix-some-gpio-settings.patch 0030-emmc-make-v1-paritioning-differences-explicit.patch Signed-off-by: Michael Brandt <Michael.Brandt@stericsson.com> Change-Id: I1106702e393c34f630e71f071e06c3952b0d3a1a Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/182 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2010-05-19General I2C refactoring and environment settings cleanupMichael Brandt
These are the patches for WP252006. There will be a follow-up patched for WP254081. Environment settings * board_id bootargs parameter from board_id environment var set in board_late_init(). * decreased bootdelay to 1 second * added check for keypress on bootdelay==0 * removed preboot command and introduced "run cmdfile" instead * changed rootfstype from ext2 to ext3 General I2C refactoring * include/configs/u8500.h: Enabled i2c command line commands. Changed environment settings to use board_id as set in board_late_init(). Added I2C address and configuration defines. * board/st/u8500/Makefile: Replaced i2c.o with u8500_i2c.o. * board/st/u8500/gpio.c, gpio.h: Added I2C busses to altfunc_table. * board/st/u8500/init_mmc.c: removed config_extended_gpio() and therefore I2C references. GPIOE settings are now in board_late_init(). * board/st/u8500/u8500.c: Removed I2C/SD gpio settings from addr,value array. board_late_init(): Determine and set board_id environment variable 0: mop500, 1: href500 Above boards have different GPIO expander chips which we can distinguish by the chip id (1 and 3). The board_id environment variable is needed for the Linux bootargs. Signed-off-by: Michael Brandt <Michael.Brandt@stericsson.com> Change-Id: I4c2cab28c1cb74692e0c72b2daa422e97787ff8d Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/167 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
2010-01-04Merge branch 'boottime' into mop500Michael Brandt
Conflicts: .gitignore include/configs/u8500.h
2009-12-18added clkinfo, clkmaja and build for SRAM configMichael Brandt
clkinfo command shows current PLL and clock settings. clkmaja changes certain clocks to be more U5500 (Maja) alike. With make u8500_SRAM_config a U-Boot suitable to run from SRAM can be compiled. Signed-off-by: Michael Brandt <Michael.Brandt@stericsson.com>
2009-12-03set bootdelay to zero if CONFIG_BOOTTIMEMichael Brandt
If we want to measure the boot time, we do not want a boot delay.
2009-11-23No autoboot if USB TTY is used.Michael Brandt
Minor cleanups. Removed obsolete defines.
2009-11-10PACK2 changesMichael Brandt
merged PACK2 changes: mmc and i2c frequency, put the second core into wfe, default bootcmd.