1. 30 11月, 2017 1 次提交
  2. 18 10月, 2017 7 次提交
  3. 11 10月, 2017 2 次提交
  4. 09 9月, 2017 5 次提交
  5. 01 6月, 2017 8 次提交
  6. 14 5月, 2017 4 次提交
  7. 07 4月, 2017 1 次提交
  8. 09 3月, 2017 3 次提交
  9. 08 3月, 2017 2 次提交
    • C
      drm/sun4i: rgb: Pass tcon pointer when initializing RGB encoder · b9c8506c
      Chen-Yu Tsai 提交于
      The RGB encoder represents channel 0 of the TCON. Instead of fetching
      the pointer to its TCON from the main sun4i_drv structure, pass it in
      as part of the init call, save it, and use it directly in the encoder
      and connector callbacks.
      
      We can also drop the otherwise unused sun4i_drv pointer.
      Signed-off-by: NChen-Yu Tsai <wens@csie.org>
      Signed-off-by: NMaxime Ripard <maxime.ripard@free-electrons.com>
      b9c8506c
    • C
      drm/sun4i: Initialize crtc from tcon bind function · 46cce6da
      Chen-Yu Tsai 提交于
      The tcon provides part of the functionality of the crtc, and also
      provides the device node for the output port of the crtc. To be able
      to use drm_of_find_possible_crtcs(), all crtc must be initialized before
      any downstream encoders. The other part of the crtc is the display
      backend.
      
      The Rockchip DRM driver does this by first binding all vops, which is
      their crtc, and this step also creates the crtc objects. Then all
      remaining hardware components are bound. With the Allwinner display
      pipeline, we have multiple components comprising the crtc, and varying
      depths of the display pipeline. Since components are added with a depth
      first search of the of_graph, we can initialize the crtc object within
      the tcon bind function. Since the backend precedes the tcon, and the
      backends cannot be muxed or switched around, we can be sure that the
      associated backend is already initialized.
      
      This patch also moves the crtc pointer from the main drm_device data to
      the tcon device data. Besides the crtc callbacks, the crtc structure is
      only used within the tcon driver to signal vblank events from its
      interrupt handler.
      
      As the crtc and layer bits are now called from the tcon bits, we must
      move them from the sun4i-drm module to the sun4i-tcon module to avoid
      circular dependencies between the two modules. This is because sun4i-drm
      also calls into sun4i-tcon.
      Signed-off-by: NChen-Yu Tsai <wens@csie.org>
      Signed-off-by: NMaxime Ripard <maxime.ripard@free-electrons.com>
      46cce6da
  10. 13 11月, 2016 1 次提交
    • J
      drm/sun4i: constify component_ops structures · dfeb693d
      Julia Lawall 提交于
      These component_ops structures are only used as the second argument to
      component_add and component_del, which are declared as const, so the
      structures can be declared as const as well.
      
      The semantic patch that makes this change is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r disable optional_qualifier@
      identifier i;
      position p;
      @@
      
      static struct component_ops i@p = { ... };
      
      @ok1@
      identifier r.i;
      expression e1;
      position p;
      @@
      
      component_add(e1,&i@p)
      
      @ok2@
      identifier r.i;
      expression e1;
      position p;
      @@
      
      component_del(e1, &i@p)
      
      @bad@
      position p != {r.p,ok1.p,ok2.p};
      identifier r.i;
      struct component_ops e;
      @@
      
      e@i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r.i;
      @@
      
      static
      +const
       struct component_ops i = { ... };
      // </smpl>
      
      The result of the size command before the change is (arm):
      
         text       data         bss     dec      hex filename
         5266        236           8    5510     1586 sun4i_backend.o
         6393        236           8    6637     19ed sun4i_tcon.o
         3700        368           8    4076      fec sun4i_tv.o
         1668        108           0    1776      6f0 sun6i_drc.o
      
      and after the change:
      
         text       data         bss     dec     hex filename
         5274        228           8    5510    1586 sun4i_backend.o
         6401        228           8    6637    19ed sun4i_tcon.o
         3708        360           8    4076     fec sun4i_tv.o
         1676        100           0    1776     6f0 sun6i_drc.o
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: http://patchwork.freedesktop.org/patch/msgid/1478971198-3659-1-git-send-email-Julia.Lawall@lip6.fr
      dfeb693d
  11. 20 10月, 2016 2 次提交
  12. 08 9月, 2016 2 次提交
  13. 27 8月, 2016 1 次提交
  14. 22 8月, 2016 1 次提交