summaryrefslogtreecommitdiff
path: root/board/st/u8500/mcde_display.c
AgeCommit message (Collapse)Author
2011-02-08U8500: Display driver: Only activate required clocks for displayTorbjorn Svensson
This patch changes the display initialization to only activate the display related clocks that are actually needed for the selected display mode, DSI or DPI. It also removes two compile time warnings. ST-Ericsson ID: CR 321311 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I5ae07bd06ae02c2e7c1a0f7860b251f35a953e99 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/13587 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Tested-by: Torbjorn SVENSSON <torbjorn.x.svensson@stericsson.com> Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com> Reviewed-by: Dan JOHANSSON <dan.johansson@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-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-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-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-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-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-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-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>