1. 29 Jan, 2016 6 commits
    • Fabio Estevam's avatar
      video: fbdev: imxfb: Provide a reset mechanism · b82fe6dd
      Fabio Estevam authored
      Currently when we boot the kernel on a mx25pdk the LCDC controller
      does not show the Linux logo on boot.
      
      This problem is well explained by Sascha Hauer:
      
      "Unfortunately this LCD controller does not have an enable bit. The
      controller starts directly when the clocks are enabled. If the clocks
      are enabled when the controller is not yet programmed with proper
      register values then it just goes into some undefined state. What I
      suspect is that the clocks already were enabled before driver probe,
      presumably by the bootloader, so the controller is already in undefined
      state when entering Linux. Now by dis/enabling the ipg clock you
      effectively reset the controller. Since you have programmed it with
      valid register values in the mean time it starts working after this
      reset."
      
      So do as suggested and force a reset of the LCDC hardware by
      enabling and disabling the IPG clock.
      
      With this change the Linux logo can be seen on boot on a mx25pdk.
      Signed-off-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      b82fe6dd
    • Arnd Bergmann's avatar
      fbdev: mmp: print IRQ resource using %pR format string · c3a2da26
      Arnd Bergmann authored
      resource_size_t cannot be printed using the %x format string
      when we it is defined as u64:
      
      drivers/video/fbdev/mmp/hw/mmp_ctrl.c: In function 'mmphw_probe':
      drivers/video/fbdev/mmp/hw/mmp_ctrl.c:506:22: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t {aka long long unsigned int}' [-Werror=format=]
         dev_err(ctrl->dev, "%s: res %x - %x map failed\n", __func__,
                            ^
      drivers/video/fbdev/mmp/hw/mmp_ctrl.c:506:22: error: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t {aka long long unsigned int}' [-Werror=format=]
      
      This changes the format string to %pR, which is interpreted
      by the printk implementation to pretty-print a resource
      structure.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      c3a2da26
    • Arnd Bergmann's avatar
      fbdev: da8xx-fb: remove incorrect type cast · ef88ee4e
      Arnd Bergmann authored
      The probe function correct passes a dma_addr_t pointer into
      dma_alloc_coherent(), but has a cast to resource_size_t, which
      might be different from dma_addr_t:
      
      drivers/video/fbdev/da8xx-fb.c: In function 'fb_probe':
      drivers/video/fbdev/da8xx-fb.c:1431:10: error: passing argument 3 of 'dma_alloc_coherent' from incompatible pointer type [-Werror=incompatible-pointer-types]
      
      This removes the cast, which avoids the warning.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      ef88ee4e
    • Arnd Bergmann's avatar
      fbdev: s6e8ax0: avoid unused function warnings · b54729b6
      Arnd Bergmann authored
      The s6e8ax0 suspend/resume functions are hidden inside of an #ifdef
      when CONFIG_PM is set to avoid unused function warnings, but they
      call some other functions that nothing else calls, and we get warnings
      about those:
      
      drivers/video/fbdev/exynos/s6e8ax0.c:449:13: error: 's6e8ax0_sleep_in' defined but not used [-Werror=unused-function]
      drivers/video/fbdev/exynos/s6e8ax0.c:485:13: error: 's6e8ax0_display_off' defined but not used [-Werror=unused-function]
      
      This marks the PM functions as __maybe_unused so the compiler can
      silently drop them when they are not referenced.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reviewed-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      b54729b6
    • Andrea Merello's avatar
      ocfb: fix tgdel and tvdel timing parameters · 87df1b2a
      Andrea Merello authored
      According to the ocfb documentation:
      Fix tgdel HW param should be left margin, not right.
      Fix tvdel HW param should upper margin, not lower.
      
      This seems to fix lock issues on certain monitors (tested on a
      slightly customized IP, but the FPGA guy said that it should
      be the same wrt this changes).
      Signed-off-by: default avatarAndrea Merello <andrea.merello@gmail.com>
      Acked-by: default avatarStefan Kristiansson <stefan.kristiansson@saunalahti.fi>
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      87df1b2a
    • Tomi Valkeinen's avatar
      ARM: omap2plus_defconfig: update display configs · c84f6b8b
      Tomi Valkeinen authored
      omapfb and omapdrm were recently made independent of each other, and
      this required Kconfig option changes. This patch changes the
      omap2plus_defconfig to enable display similarly as before: omapfb and
      panel & encoder drivers as modules.
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      Acked-by: default avatarTony Lindgren <tony@atomide.com>
      c84f6b8b
  2. 24 Jan, 2016 34 commits