u-boot-2016/common
Stephen Warren 6d3307195d lcd: calculate line_length after lcd_ctrl_init()
When an LCD driver is actually driving a regular external display, e.g.
an HDMI monitor, the display resolution might not be known until the
display controller has initialized, i.e. during lcd_ctrl_init(). However,
lcd.c calculates lcd_line_length before calling this function, thus
relying on a hard-coded resolution in struct panel_info.

Instead, defer this calculation until after lcd_ctrl_init() has had the
chance to dynamically determine the resolution. This needs to happen
before lcd_clear(), since the value is used there.

grep indicates that no code outside lcd.c uses this lcd_line_length; in
particular, no lcd_ctrl_init() implementations read it.

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Acked-by: Anatolij Gustschin <agust@denx.de>
2013-03-20 15:29:39 +01:00
..
spl SPL: ONENAND: Support SPL to boot u-boot from OneNAND. 2013-03-11 11:05:49 -04:00
bedbug.c
board_f.c x86: Adjust board_f.c for x86 2013-03-15 16:14:00 -04:00
board_r.c x86: Enable generic board support 2013-03-15 16:14:00 -04:00
bootstage.c
bouncebuf.c
cmd_ambapp.c
cmd_bdinfo.c Merge branch 'master' of git://www.denx.de/git/u-boot-microblaze 2013-02-04 09:14:22 -05:00
cmd_bedbug.c
cmd_bmp.c
cmd_boot.c
cmd_bootldr.c
cmd_bootm.c Allow u-boot to be silent without forcing Linux to be 2013-03-11 17:01:02 -04:00
cmd_bootstage.c
cmd_cache.c
cmd_cbfs.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_console.c
cmd_cplbinfo.c
cmd_cramfs.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_dataflash_mmc_mux.c
cmd_date.c
cmd_dcr.c
cmd_dfu.c dfu: Fix crash when wrong number of arguments given 2013-03-16 21:12:01 +01:00
cmd_diag.c
cmd_disk.c
cmd_display.c
cmd_dtt.c
cmd_echo.c
cmd_eeprom.c
cmd_elf.c cmd_elf: Fix broken bootvx command 2013-02-20 08:52:29 -05:00
cmd_exit.c
cmd_ext2.c
cmd_ext4.c
cmd_fat.c cmd_fat.c: Note in fatread help about alignment requirements 2013-03-12 12:43:31 -04:00
cmd_fdc.c
cmd_fdos.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_fdt.c Update set_working_fdt_addr() to use setenv_addr() 2013-02-28 19:09:23 -08:00
cmd_fitupd.c
cmd_flash.c
cmd_fpga.c
cmd_fs.c
cmd_gettime.c
cmd_gpio.c
cmd_gpt.c gpt: fix partion size limit 2013-02-20 08:52:41 -05:00
cmd_hash.c hash: Use lower case for hash algorithm names 2013-02-28 19:49:13 -08:00
cmd_help.c Refactor linker-generated arrays 2013-03-12 23:28:40 +01:00
cmd_i2c.c
cmd_ide.c
cmd_immap.c ppc: Move brg_clk to arch_global_data 2013-02-01 15:42:45 -05:00
cmd_ini.c
cmd_io.c
cmd_irq.c
cmd_itest.c
cmd_jffs2.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_ldrinfo.c
cmd_led.c led: Use STATUS_LED_ON and STATUS_LED_OFF when calling __led_set 2013-03-07 17:22:57 +01:00
cmd_license.c
cmd_load.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_log.c
cmd_mac.c
cmd_md5sum.c
cmd_mdio.c
cmd_mem.c cmd_mem.c: Fix warning when CONFIG_CMD_MEMTEST is not set 2013-03-12 12:43:31 -04:00
cmd_mfsl.c
cmd_mii.c
cmd_misc.c
cmd_mmc.c mmc: add support for write protection 2013-03-08 16:41:13 -05:00
cmd_mmc_spi.c
cmd_mp.c
cmd_mtdparts.c cmd_mtdparts.c: Correct "reseting" to "resetting" in error msgs 2013-03-11 17:01:02 -04:00
cmd_nand.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_net.c
cmd_nvedit.c env: fix "env ask" command 2013-03-12 12:43:31 -04:00
cmd_onenand.c
cmd_otp.c
cmd_part.c cmd_part: don't print cmd name twice in help 2013-03-11 17:00:28 -04:00
cmd_pci.c
cmd_pcmcia.c
cmd_portio.c
cmd_pxe.c
cmd_read.c
cmd_reginfo.c blackfin: bf60x: Port blackfin core architecture code to boot on bf60x. 2013-03-04 13:42:06 +08:00
cmd_reiser.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_sandbox.c sandbox: Add 'sb' command to access filesystem features 2013-03-04 14:19:56 -05:00
cmd_sata.c common: cmd_sata: Fix usage text for 'sata init' 2013-02-23 11:18:24 +01:00
cmd_scsi.c
cmd_setexpr.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_sf.c spi: Add SPI flash test 2012-12-19 15:51:57 -07:00
cmd_sha1sum.c hash: Add a flag to support saving hashes in the environment 2013-02-28 19:09:23 -08:00
cmd_sound.c Sound: Add FDT support to CMD. 2013-01-08 10:54:33 +09:00
cmd_source.c
cmd_spi.c
cmd_spibootldr.c
cmd_spl.c SPL: Change description for spl command 2013-03-01 12:01:32 -05:00
cmd_strings.c
cmd_terminal.c
cmd_test.c
cmd_time.c cmd_time: merge run_command_and_time_it with cmd_process 2013-02-04 09:14:02 -05:00
cmd_tpm.c
cmd_tsi148.c
cmd_ubi.c
cmd_ubifs.c
cmd_universe.c
cmd_unzip.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_usb.c
cmd_usb_mass_storage.c usb:gadget: USB Mass Storage Gadget support 2013-03-18 18:58:53 +01:00
cmd_version.c x86: Add coreboot version to u-boot's version command 2012-12-26 10:36:26 -08:00
cmd_ximg.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_yaffs2.c
cmd_zfs.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_zip.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
command.c cmd_time: merge run_command_and_time_it with cmd_process 2013-02-04 09:14:02 -05:00
console.c
ddr_spd.c
dlmalloc.c malloc: make malloc_bin_reloc static 2013-02-19 17:01:26 -05:00
dlmalloc.src
edid.c
env_attr.c tools/env: Add environment variable flags support 2012-12-13 11:46:56 -07:00
env_callback.c
env_common.c env: Add support for access control to .flags 2012-12-13 11:46:56 -07:00
env_dataflash.c
env_eeprom.c
env_embedded.c
env_fat.c
env_flags.c env: Handle write-once ethaddr and serial# generically 2012-12-13 11:46:57 -07:00
env_flash.c
env_mmc.c common: env_mmc: Use __weak annotation to simplify code 2013-02-04 09:07:21 -05:00
env_nand.c common/env_nand.c: calculate crc only when readenv was OK 2013-02-22 19:59:53 -06:00
env_nowhere.c
env_nvram.c
env_onenand.c
env_remote.c
env_sf.c
exports.c
fdt_support.c common/fdt_support.c: sparse fixes 2013-02-07 20:38:55 -05:00
flash.c
hash.c hash: Use lower case for hash algorithm names 2013-02-28 19:49:13 -08:00
hush.c cmd_time: merge run_command_and_time_it with cmd_process 2013-02-04 09:14:02 -05:00
hwconfig.c
image.c image: Use crc header file instead of C prototypes 2013-02-28 19:09:23 -08:00
iomux.c
kallsyms.c
kgdb.c
kgdb_stubs.c
lcd.c lcd: calculate line_length after lcd_ctrl_init() 2013-03-20 15:29:39 +01:00
lynxkdi.c
main.c CONFIG_BOOTDELAY default should not affect runtime 2013-03-12 12:43:31 -04:00
Makefile usb:gadget: USB Mass Storage Gadget support 2013-03-18 18:58:53 +01:00
memsize.c
menu.c
miiphyutil.c
modem.c
s_record.c
stdio.c serial: arm_dcc: Remove CONFIG_ARM_DCC_MULTI option 2013-02-04 09:14:21 -05:00
system_map.c
update.c
usb.c usb: Clean up newly allocated device nodes in case of configuration failure 2012-12-17 15:38:15 +01:00
usb_hub.c usb: Clean up newly allocated device nodes in case of configuration failure 2012-12-17 15:38:15 +01:00
usb_kbd.c
usb_storage.c usb: properly detect empty mass storage media reader 2012-12-17 15:38:15 +01:00
xyzModem.c