1. 06 6月, 2016 9 次提交
  2. 03 6月, 2016 5 次提交
  3. 01 6月, 2016 10 次提交
  4. 31 5月, 2016 9 次提交
    • A
      drm/omap: include gpio/consumer.h where needed · d0196c8d
      Arnd Bergmann 提交于
      A lot of the display drivers for OMAP use the gpio descriptor functions
      that are only available in linux/gpio.h if GPIOLIB is enabled and
      otherwise produce a build error:
      
      drivers/gpu/drm/omapdrm/displays/encoder-opa362.c: In function 'opa362_enable':
      drivers/gpu/drm/omapdrm/displays/encoder-opa362.c:101:3: error: implicit declaration of function 'gpiod_set_value_cansleep' [-Werror=implicit-function-declaration]
      drivers/gpu/drm/omapdrm/displays/panel-dpi.c: In function 'panel_dpi_probe_pdata':
      drivers/gpu/drm/omapdrm/displays/panel-dpi.c:189:23: error: implicit declaration of function 'gpio_to_desc' [-Werror=implicit-function-declaration]
      drivers/gpu/drm/omapdrm/displays/panel-sharp-ls037v7dw01.c: In function 'sharp_ls_enable':
      drivers/gpu/drm/omapdrm/displays/panel-sharp-ls037v7dw01.c:120:3: error: implicit declaration of function 'gpiod_set_value_cansleep' [-Werror=implicit-function-declaration]
      
      This replaces the existing linux/gpio.h with linux/gpio/consumer.h
      where needed. In case of panel-lgphilips-lb035q02.c however, we
      also have to include linux/gpio.h to get the definition of gpio_is_valid
      and gpio_set_value_cansleep that are used for the non-DT case.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      [tomi.valkeinen@ti.com: resolved conflicts]
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      d0196c8d
    • A
      drm/omap: include linux/seq_file.h where needed · 2d802453
      Arnd Bergmann 提交于
      The omapdrm driver relies on this header to be included
      implicitly, but this does not always work, and I get
      this error in randconfig builds:
      
      gpu/drm/omapdrm/dss/hdmi_phy.c: In function 'hdmi_phy_dump':
      gpu/drm/omapdrm/dss/hdmi_phy.c:34:2: error: implicit declaration of function 'seq_printf' [-Werror=implicit-function-declaration]
      gpu/drm/omapdrm/dss/hdmi_wp.c: In function 'hdmi_wp_dump':
      gpu/drm/omapdrm/dss/hdmi_wp.c:26:2: error: implicit declaration of function 'seq_printf' [-Werror=implicit-function-declaration]
      gpu/drm/omapdrm/dss/hdmi_pll.c: In function 'hdmi_pll_dump':
      gpu/drm/omapdrm/dss/hdmi_pll.c:30:2: error: implicit declaration of function 'seq_printf' [-Werror=implicit-function-declaration]
      
      This adds the #include statements in all files that have
      a seq_printf statement.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      2d802453
    • P
      Revert "drm/omap: no need to select OMAP2_DSS" · 62cb0751
      Peter Ujfalusi 提交于
      This reverts commit 1c278e5e.
      
      If DRM_OMAP does not select OMAP2_DSS it is possible to build a kernel with
      DRM_OMAP only and not selecting OMAP2_DSS. Since omapdrm depends on
      OMAP2_DSS this will result on broken kernel build.
      Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@ti.com>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      62cb0751
    • P
      drm/omap: Remove regulator API abuse · 973999aa
      Peter Ujfalusi 提交于
      regulator_can_change_voltage() is deprecated and it's use is not necessary
      as commit:
      6a0028b3 regulator: Deprecate regulator_can_change_voltage()
      describers it clearly.
      
      Also, regulator_set_voltage() is misused in the driver, as it is
      supposed to be used only in cases where the regulator voltage needs to
      be changed dynamically at runtime. In DSS's case, we always want a fixed
      voltage, set in the .dts files.
      Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@ti.com>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      973999aa
    • J
      OMAPDSS: HDMI5: Change DDC timings · 4bafcbc7
      Jim Lodes 提交于
      The DDC scl high and low times were set to the minimum values
      from the i2c specification, but the i2c specification takes into
      account the rise time and fall time to calculate the frequency.
      To pass HDMI certification DDC can not exceed 100kHz therefore in
      a system where the rise times and fall times are negligible the high
      and low times for scl need to be 10us.
      Signed-off-by: NJim Lodes <jim.lodes@garmin.com>
      Signed-off-by: NJ.D. Schroeder <jay.schroeder@garmin.com>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      4bafcbc7
    • J
      OMAPDSS: HDMI5: Fix AVI infoframe · 08f707ac
      Jim Lodes 提交于
      The AVI infoframe R0-R3 in the 2nd data byte represents the
      Active Format Aspect Ratio. It is four bits long not two bits.
      This fixes that mask used to extract the bits before writing the
      bits to the hardware registers.
      Signed-off-by: NJim Lodes <jim.lodes@garmin.com>
      Signed-off-by: NJ.D. Schroeder <jay.schroeder@garmin.com>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      08f707ac
    • T
      drm/omap: fix OMAP4 hdmi_core_powerdown_disable() · 91cd220a
      Tomi Valkeinen 提交于
      hdmi_core_powerdown_disable() is supposed to disable HDMI core's
      power-down mode. However, the function sets the power-down bit to 0,
      which means "enable power-down".
      
      This hasn't caused any issues as the PD seems to affect only interrupts
      from HDMI core, and none of those interrupts are used at the moment. CEC
      functionality requires core interrupts, and the PD mode needs to be
      fixed.
      
      This patch fixes hdmi_core_powerdown_disable() to actually disable the
      PD mode.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      Reported-by: NHans Verkuil <hverkuil@xs4all.nl>
      91cd220a
    • T
      drm/omap: Fix missing includes · d9e32ecd
      Tomi Valkeinen 提交于
      With certain kernel config options many omapdrm files fail to compile
      due to missing include of linux/gpio/consumer.h and linux/of.h.
      
      This patch adds those includes.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      Reported-by: NDan Murphy <dmurphy@ti.com>
      Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      d9e32ecd
    • A
      drm/omapdrm: include pinctrl/consumer.h where needed · 2639d6b9
      Arnd Bergmann 提交于
      In some configurations, we can build the OMAP dss driver without
      implictly including the pinctrl consumer definitions, causing
      a build error:
      
      gpu/drm/omapdrm/dss/dss.c: In function 'dss_runtime_suspend':
      gpu/drm/omapdrm/dss/dss.c:1268:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' [-Werror=implicit-function-declaration]
      
      This adds an explicit #include.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      2639d6b9
  5. 30 5月, 2016 7 次提交