1. 13 4月, 2021 25 次提交
  2. 12 4月, 2021 1 次提交
  3. 11 4月, 2021 3 次提交
  4. 10 4月, 2021 11 次提交
    • S
      video: Fix line padding calculation for 16 and 24 BPP bitmaps · 38e18d63
      Sylwester Nawrocki 提交于
      Each row in the pixel array in the bitmap file is padded
      if necessary so the row size is always a multiple of 4 bytes.
      In current code the complement of row size to a multiple of
      4 bytes is further unnecessarily multiplied by the pixel size.
      This results in incorrect displaying of bitmaps having row size
      that is not a multiple of 4 bytes. Fix this by removing
      the unnecessary multiplication.
      
      Tested with 24BPP bitmap and XRGB32 display.
      Signed-off-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
      Tested-by: NJaehoon Chung <jh80.chung@samsung.com>
      38e18d63
    • H
      tegra: video: fix tegra_dc_sor_config_panel() · 131c2241
      Heinrich Schuchardt 提交于
      Bitwise OR has a higher operator precedence than the ternary conditional.
      Add the missing parentheses.
      Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      131c2241
    • P
      board_f: cosmetic: change the debug trace to KB in reserve_video · 83064c27
      Patrick Delaunay 提交于
      Update the debug trace for the reserved video memory to KB as indicated
      in the message with "%luk"; before the patch the computed size
      gd->relocaddr - addr is in bytes.
      
      This patch aligns the debug trace in reserve_video() with others
      functions, for example on stm32mp157c-dk2:
      
        - Reserving 3080192k for video at: dfd00000
        + Reserving 3008k for video at: dfd00000
          Reserving 873k for U-Boot at: dfc25000
          Reserving 32776k for malloc() at: ddc23000
          Reserving 72 Bytes for Board Info at: ddc22fb0
          Reserving 280 Bytes for Global Data at: ddc22e90
          Reserving 119072 Bytes for FDT at: ddc05d70
          Reserving 0x278 Bytes for bootstage at: ddc05af0
      
      Fixes: 5630d2fb ("board: Show memory for frame buffers")
      Signed-off-by: NPatrick Delaunay <patrick.delaunay@foss.st.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      83064c27
    • T
      finish removing mb862xx video driver · ff4e1e27
      Trevor Woerner 提交于
      drivers/video/mb862xx.c was removed in commit
      9c1e098f from December 2020, however, this
      last little remnant in drivers/video/cfb_console.c remained.
      Signed-off-by: NTrevor Woerner <twoerner@gmail.com>
      ff4e1e27
    • A
      video: SIMPLE_PANEL depends on DM_GPIO · 1bed576d
      Asherah Connor 提交于
      SIMPLE_PANEL currently only depends on PANEL && BACKLIGHT, but the code
      makes references to dm_gpio_set_value and gpio_request_by_name.  These
      are defined in drivers/gpio/gpio-uclass.c, so a dependency on DM_GPIO
      corrects these link errors:
      
      aarch64-linux-gnu-ld.bfd: drivers/built-in.o: in function `simple_panel_set_backlight':
      /home/kameliya/u-boot/drivers/video/simple_panel.c:42: undefined reference to `dm_gpio_set_value'
      aarch64-linux-gnu-ld.bfd: drivers/built-in.o: in function `simple_panel_enable_backlight':
      /home/kameliya/u-boot/drivers/video/simple_panel.c:27: undefined reference to `dm_gpio_set_value'
      aarch64-linux-gnu-ld.bfd: drivers/built-in.o: in function `simple_panel_of_to_plat':
      /home/kameliya/u-boot/drivers/video/simple_panel.c:72: undefined reference to `gpio_request_by_name'
      
      This issue is only exposed if you have a board which enables
      CONFIG_DM_VIDEO without CONFIG_DM_GPIO; so far, none do, but soon a QEMU
      board may.
      Signed-off-by: NAsherah Connor <ashe@kivikakk.ee>
      1bed576d
    • A
      pwm: Add a driver for Chrome OS EC PWM · 1b9ee288
      Alper Nebi Yasak 提交于
      This PWM is used in rk3399-gru-bob and rk3399-gru-kevin to control
      the display brightness. We can only change the duty cycle, so on
      set_config() we just try to match the duty cycle that dividing duty_ns
      by period_ns gives us. To disable, we set the duty cycle to zero while
      keeping the old value for when we want to re-enable it.
      
      The cros_ec_set_pwm_duty() function is taken from Depthcharge's
      cros_ec_set_bl_pwm_duty() but modified to use the generic pwm type.
      The driver itself is very loosely based on rk_pwm.c for the general pwm
      driver structure.
      
      The devicetree binding file is from Linux, before it was converted to
      YAML at 5df5a577a6b4 ("dt-bindings: pwm: Convert google,cros-ec-pwm.txt
      to YAML format") in their repo.
      Signed-off-by: NAlper Nebi Yasak <alpernebiyasak@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      1b9ee288
    • A
      video: backlight: Support PWMs without a known period_ns · fefa713b
      Alper Nebi Yasak 提交于
      The PWM device provided by Chrome OS EC doesn't really support anything
      other than setting a relative duty cycle. To support it as a backlight,
      this patch makes the PWM period optional in the device tree and pretends
      the valid brightness range is its period_ns.
      
      Also adds a sandbox test for a PWM channel that has a fixed period,
      checking that the resulting duty_cycle matches on a set_config() even if
      the requested period_ns can't be set.
      Signed-off-by: NAlper Nebi Yasak <alpernebiyasak@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      fefa713b
    • T
      ppc: Remove Cyrus_P5020 and P5040 boards · a99dab1d
      Tom Rini 提交于
      These boards have not been converted to CONFIG_DM_MMC by the deadline.
      Remove them.  As the P5020 is the last ARCH_P5020 platform, remove that
      support as well.
      
      Cc: Andy Fleming <afleming@gmail.com>
      Cc: Priyanka Jain <priyanka.jain@nxp.com>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      Reviewed-by: NPriyanka Jain <priyanka.jain@nxp.com>
      a99dab1d
    • T
      ppc: Remove ARCH_P1022 support · 3238d934
      Tom Rini 提交于
      With the last of the ARCH_P1022 platforms removed, finish removing the
      rest of the platform support.
      
      Cc: Priyanka Jain <priyanka.jain@nxp.com>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      Reviewed-by: NPriyanka Jain <priyanka.jain@nxp.com>
      3238d934
    • T
      ppc: Remove controlcenterd boards · a84ea228
      Tom Rini 提交于
      These boards have not been converted to CONFIG_DM_MMC by the deadline.
      Remove them.
      
      Cc: Mario Six <mario.six@gdsys.cc>
      Cc: Dirk Eibach <dirk.eibach@gdsys.cc>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      a84ea228
    • T
      ppc: Remove gdsys hrcon boards · 7c964c3b
      Tom Rini 提交于
      These boards have not been converted to CONFIG_DM_MMC, along with other
      DM conversions, by the deadline.  Remove them.
      
      Cc: Dirk Eibach <dirk.eibach@gdsys.cc>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      7c964c3b