summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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>
2010-10-21FIX: watchdog timeout, while waiting for inputJens Scharsig
* add WATCHDOG_RESET to !tstc() loops * prevents watchdog timeout, while waiting for input, if CONFIG_BOOT_RETRY_TIME or CONFIG_SHOW_ACTIVITY defined Signed-off-by: Jens Scharsig <js_at_ng@scharsoft.de> Change-Id: I78493dddbae5293c4f0690ee05837c3818456c70 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/6817 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-10-21cmd history: Match history buffer size to console bufferJohn Schmoller
Match history buffer size to console buffer size. History buffer size was hard coded to 256, artificially limiting the command buffer size. The history buffer now tracks CONFIG_SYS_CBSIZE. Signed-off-by: John Schmoller <jschmoller@xes-inc.com> Change-Id: I3001f40c7637fe4ed16b7ac7e05524d8905d66e5 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/6816 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-10-21console: Fix console buffer overrunJohn Schmoller
When CONFIG_SYS_CBSIZE equals MAX_CMDBUF_SIZE, a command string of maximum length will overwrite part of the history buffer, causing the board to die. Expand the console_buffer and hist_lines buffer by one character each to hold the missing NULL char. Signed-off-by: John Schmoller <jschmoller@xes-inc.com> Change-Id: I6ec005d373e81353aa09d3cd3962f279629e7681 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/6815 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-10-21Move CONFIG_UPDATE_TFTP code after CONFIG_PREBOOTWolfgang Denk
The auto-update feature (CONFIG_UPDATE_TFTP) requires that the env variable serverip be set for the TFTP access. If DHCP is to be used to get the serverip env variable, this doesn't work as DHCP happens after the auto-update attempt has run. A solution is to run DHCP in PREBOOT, but even this is too late. To solve this, we move update_tftp() below the PREBOOT stuff. Signed-off-by: Wolfgang Denk <wd@denx.de> Change-Id: I966d6c549e172c183f6ea894eb29440c1df4bf46 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/6814 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> Reviewed-by: Joakim AXELSSON <joakim.axelsson@stericsson.com>
2010-10-20Fix double free in mcdeMikael Larsson
This fixes double free in mcde code. Change-Id: I74150e4bea161313aa3298710dd8899db25501be Signed-off-by: Mikael Larsson <mikael.xt.larsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/6854 Reviewed-by: Torbjorn SVENSSON <torbjorn.x.svensson@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@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-10-12mk_envimg: Fix dependencies in Makefilerickard evertsson
Fixes a bug in the Makefile when using -j flag. This patch makes sure that mk_envimg is built before used by adding it as a dependency for the target create_envimg. ST-Ericsson ID: WP272737 Change-Id: Iaaa532751270813be33ac471d0a8b27dcce75ffb Signed-off-by: rickard evertsson <rickard.evertsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/6308 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-10-05Regulators: Fixup AUX3 regulator settings in MMC initFabien Quatravaux
VAUX3 and VRF1 voltage selection are located in the same register. Read-modify-write is performed to avoid interfering with the VRF1 regulator. ST-Ericsson ID: CAP_3984_001 ST-Ericsson ID: CR 270150 Change-Id: Ia3756f72790e45225e46418a1ec2490aec92250f Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/5384 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-10-05Modem loadingMikael Larsson
This adds functionality to load and execute modem in an early stage just after eMMC init. It also flushes ISSW since this will be removed in Xloader This patch depends on an updated Xloader that doesn't load modem, ipl and doesn't flush ISSW. Change-Id: I5be4a4a5af80df13e65ecd10c073b50e4d8703b9 Signed-off-by: Mikael Larsson <mikael.xt.larsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/5769 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Peter NESSRUP <peter.nessrup@stericsson.com>
2010-10-01Adding blkdevparts commandPeter Nessrup
New command for reading out partitions from the sub TOC to build up the blkdevparts env var. This is to be passed to the kernel via the kernel command line Use CONFIG_CMD_BLKDEVPARTS to enable the feature. This command requires th CONFIG_TOC_PARTITION flag to be set Change-Id: Icf114fa38f0b35ef47d00d385b6e19596a8f6167 Signed-off-by: Peter Nessrup <peter.nessrup@stericsson.com> Change-Id: Id2892a35ebaaab5d778a8f0878127721fff5767e Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/5394 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Mikael LARSSON <mikael.xt.larsson@stericsson.com> Reviewed-by: ulf hansson <ulf.hansson@stericsson.com>
2010-09-30u8500: Do not reset timers when doing mmc performance testsJonas Aaberg
MMC performance tests broke other timing tests. Change-Id: I6a70ce55adc69d6069931b2d7649f4a7df10e5c6 Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/5089 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-09-29Fix mmc_read_cmd_fileMikael Larsson
mmc_read_cmd_file broke with the latest changes in fat and mmc. This makes it work again. Change-Id: I9bd0fee41bc4dfe790166415bb856104ab412536 Signed-off-by: Mikael Larsson <mikael.xt.larsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/5765 Reviewed-by: Ulf HANSSON <ulf.hansson@stericsson.com> 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-28Add mk_envimg in Android.mkrickard evertsson
Adds a new target mk_envimg and recursively invoke the mk_envimg Makefile. Dependencies: 796065411dc8fc77b87bfdb0cf9eacdab40c31dc ST-Ericsson ID: WP272737 Change-Id: I918785ecd613e54efce36274234e2591611de922 Signed-off-by: rickard evertsson <rickard.evertsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/5678 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-09-27Host tool to create an environment imagerickard evertsson
This is a host tool that creates a 4 KB environment variable image. The environment image is by default built with U8500 environment settings (file u8500.h is included in the tool) but individual variables can be removed, added and / or modified by specifying an input configuration file containing such. ST-Ericsson ID: WP272737 Change-Id: Ia5d79f72c9607ad25ed3d2e05795a7a616af9cf9 Signed-off-by: rickard evertsson <rickard.evertsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/5409 Reviewed-by: Michael BRANDT <michael.brandt@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-20Added TOC commandsPeter Nessrup
TOC commands added under common to be able to print the TOC and sub TOC and to be able to load whatever a TOC entry points to into RAM at the address specified in the TOC entry loadaddr field New file: cmd_toc.c CONFIG_TOC_PARTITION needs to be set for it to be available ST-Ericsson ID: ER256835 Change-Id: I826337e2608076fad74b1a7125d7e93b5ad66e43 Signed-off-by: Peter Nessrup <peter.nessrup@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/5112 Reviewed-by: Ulf HANSSON <ulf.hansson@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-16Added TOC partition supportPeter Nessrup
TOC partition support added under disk New files: part_toc.c, part_toc.h CONFIG_TOC_PARTITION needs to be set for it to be activated. ST-Ericsson ID: ER256835 Change-Id: I301b0650cb73b34f04b80dd5f27babdbf7ba09e1 Signed-off-by: Peter Nessrup <peter.nessrup@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4369 Reviewed-by: Sebastian RASMUSSEN <sebastian.rasmussen@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Ulf HANSSON <ulf.hansson@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-09-09Add Android make fileHenrik Strand
Added Android make file in order to build the platform according to Android basic principles. ST-Ericsson ID: CR264527 Change-Id: I90b249a7e751ce7b57f1470adffd5938c8e214e9 Signed-off-by: Henrik Strand <henrik.xx.strand@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4689 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Ulrika MALMBORG <ulrika.malmborg@stericsson.com>
2010-09-09Dumphandler: Merge PT_NOTE segments into onerickard evertsson
Each CPU saves CPU info into their own PT_NOTE segment. The dump analyzing tool (Crash) can't read multiple PT_NOTE segments. This patch merge all PT_NOTE segments into one. ST-Ericsson ID: WP244488 Change-Id: I3feb4695bcd3fc42a6c94fb876c1f0db29a58c62 Signed-off-by: rickard evertsson <rickard.evertsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4738 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-09-08Move U8500 link script use to board configuration.Sebastian Rasmussen
Remove reference to U8500 link script from top-level Makefile and put it in the board specific configuration script for U8500 instead. ST-Ericsson ID: N/A Change-Id: Idf1c5aefaa5a1be016b7dd54cb9211fc78cde801 Signed-off-by: Sebastian Rasmussen <sebastian.rasmussen@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4302 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-09-01MCDE: Update for DB8500 V2Jimmy Rubin
This patch does the following: * Adds support for DB8500 V2 ST Ericsson ID: AP 270849 Change-Id: Ica648dc1663b58ee3468e1dc8bd831ede56c102a Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4418 Tested-by: Jimmy RUBIN <jimmy.rubin@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-08-31Move modem parameter partition to start of memory.Sebastian Rasmussen
Since memory sizes vary, addresses at the end of the memory vary as well. The modem parameter partition should reside in a fixed location and has therefore been moved to a fixed location at the start of the memory. Other partitions have been moved accordingly, but the kernel image and root file system partition locations and sizes have been kept as they were. ST Ericsson ID: ER270475 Change-Id: Ib7202e70ba23e1dd026b1d487505fed3b9032caf Signed-off-by: Sebastian Rasmussen <sebastian.rasmussen@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4303 Reviewed-by: Mikael LARSSON <mikael.xt.larsson@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Ulf HANSSON <ulf.hansson@stericsson.com>
2010-08-31AB8500 v2 change in VAUX3 registerMattias Wallin
The AB8500 register 0x0421 have changed between version 1 and 2 of the hardware. This patch adds a version check and makes the necessary bit change to the VAUX3 low drop out regulator register. Change-Id: I49a6309f138da6bc46492dd4e39842988329c8cb Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4060 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-08-31prcm: fix DB8500v2 TCDM base address and I2C chip idRabin Vincent
Handle the changed TCDM base address on DB8500v2, and the required chip bits to the I2C slave address. Based on the Linux modifications. Change-Id: I9fc8df1553824bd03a908a5c4285be284ea158db Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4213 Reviewed-by: Michael BRANDT <michael.brandt@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-30Read/write VFAT support from Rockbox-3.3 FAT stackMichael Brandt
Add read/write VFAT support from Rockbox-3.3 FAT stack. It should be also applicable to the unmodified 2009.11 U-Boot release. Note that is was taken as is from Rockbox and from a older U-Boot Rockbox patch. "checkpatch" shows very many coding style errors and warnings, but it is tedious work to clean this up. To make this patch work an additional mmc_block_write() board support routine and the errno variable are needed. Furthermore following defines in the board config header file: #define CONFIG_ROCKBOX_FAT 1 #define CONFIG_U_BOOT 1 #define CONFIG_SUPPORT_VFAT 1 #define CONFIG_CMD_TREE_FAT This will be added in a follow-up patch. This patch is based on the patch from Etienne Carriere <etienne.carriere@stericsson.com> for the U671x U-Boot: This commit adds FAT write support to u-boot native read-only FAT code. Commit initially applied on u-boot-v2009.01 (SHA1: 72d15e705bc3983884105cb7755c7ba80e74a0a5) Based on FAT stack dumped from Rockbox package v3.1 (www.rockbox.org). Based on initial Rockbox FAT stack integration in u-boot by Keith Outwater (outwater@comcast.net). Current porting is aligned with Rockbox v3.3 FAT stack. Enable upon config switches: CONFIG_CMD_FAT CONFIG_ROCKBOX_FAT CONFIG_CMD_TREE_FAT (recommended) CONFIG_SUPPORT_VFAT (recommended) C code APIs (from U-boot native FAT support): int fat_register_device(block_dev_desc_t *dev_desc, int part_no); long file_fat_read(const char *path, void *buf, unsigned long maxsize); int file_fat_ls(const char *dirname); int file_fat_detectfs(void); C code APIs (added by Rockbox FAT support): long file_fat_write(const char *path, void *buf, unsigned long maxsize); int file_fat_rm(const char *path); int file_fat_rmdir(const char *path); int file_fat_mkdir(const char *path); int file_fat_cd(const char *path); int file_fat_pwd(void); int file_fat_mv(const char *oldpath, const char *newpath); unsigned int rockbox_fat_free(unsigned long size_kbyte); unsigned int rockbox_fat_size(void); Use "help fat" from u-boot console to see available commands. ST-Ericsson ID: WP264488 Change-Id: I9afc29ecb80f9152bd8534bbf11e47e54cfad796 Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/3009
2010-08-30U-boot: MMC update.Martin LUNDHOLM
MMC has been updated with several improvements. Primarily MMC performance has been improved by using assembler code for low level FIFO handling. Also some MMC functionality has been added, e.g. support for DDR and reliable write. Data and command delay times were incremented, otherwise hangups and timeouts were observed. Tested on HREF+ 1.1 V21 and HREF+ 1.1 V32 (Micron PoP). Following WP depends on this change (more reliable SD card write support): ST-Ericsson ID: WP264488 Change-Id: Ic92abffe1640aa9375b8d43a6b8522ca8296a368 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4056 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-08-27Move modem parameter partition (CSPSA0)Sebastian Rasmussen
Move modem parameter partition (also known as CSPSA0, CSPSA and Trim area) to end of 1 Gbyte PoPed eMMC. ST-Ericsson ID: ER270475 Change-Id: I1e687bc1e7e2163debbf9ae009182f56e48fa75f Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4233 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Sebastian RASMUSSEN <sebastian.rasmussen@stericsson.com>
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-23ext2fs: Fix optimization bug for doubly-indirect block pointersAaron Pace
Doubly-indirect block numbers are compared against the first-level indirect block when checking for a cached copy. This is causing the doubly-indirect block to be re-read each time it is accessed. Repairing this reduces load time for a 70M file from 72 seconds to 38 seconds. Change-Id: I497e1f063f0d596d95171e42d1c39dc2c6aedf38 Signed-off-by: Aaron Pace <Aaron.Pace@alcatel-lucent.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/3975 Tested-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Sebastian RASMUSSEN <sebastian.rasmussen@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
2010-08-20ux500: add DB8500v2 supportRabin Vincent
- Add cpu_is_u8500v2() for identification: ASICID has moved, so use the MIDR for primary identification. - Handle the changed MTU0 enable bit - Handle the MMC DBLOCKSIZE field move ST-Ericsson ID: CR267426 Change-Id: Ieae6032cf4e96796a8b53cfb95b28b26d4cf9a7b Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/3960 Reviewed-by: Martin LUNDHOLM <martin.xa.lundholm@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-29Remove -mcpu=cortex-a9 switchMichael Brandt
Fixed Android's arm-eabi-gcc GCC 4.4 warning (see below) my removing the cpu switch. warning: switch -mcpu=cortex-a9 conflicts with -march= switch Note: This warning does not appear with the CodeSourcery GCC 4.4 (2009q3) and seems wrong since cortex-a9 is an implementation of ARMv7. Change-Id: I0b26dee03a6ea892f4d62ac0407c0893e372a90b Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Change-Id: I08f0d3813074b6210a9c18d322ce5e147562c239 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/3358 Reviewed-by: Joakim AXELSSON <joakim.axelsson@stericsson.com> Reviewed-by: Martin LUNDHOLM <martin.xa.lundholm@stericsson.com> Tested-by: Martin LUNDHOLM <martin.xa.lundholm@stericsson.com>