[PATCH 2/9] drm/sun4i: tcon: Move SoC specific quirks to a DT matched data structure

2016-10-11 Thread Chen-Yu Tsai
On Fri, Oct 7, 2016 at 4:38 PM, Maxime Ripard wrote: > Hi, > > On Fri, Oct 07, 2016 at 12:06:22AM +0800, Chen-Yu Tsai wrote: >> +struct sun4i_tcon_quirks { >> + boolis_sun5i; /* sun5i has undocumented mux */ >> + boolhas_channel_1; /* a33 does not have channel 1 */ >> +

[PATCH 2/9] drm/sun4i: tcon: Move SoC specific quirks to a DT matched data structure

2016-10-11 Thread Maxime Ripard
On Tue, Oct 11, 2016 at 05:16:21PM +0800, Chen-Yu Tsai wrote: > On Fri, Oct 7, 2016 at 4:38 PM, Maxime Ripard > wrote: > > Hi, > > > > On Fri, Oct 07, 2016 at 12:06:22AM +0800, Chen-Yu Tsai wrote: > >> +struct sun4i_tcon_quirks { > >> + boolis_sun5i; /* sun5i has undocumented mux */

[PATCH 2/9] drm/sun4i: tcon: Move SoC specific quirks to a DT matched data structure

2016-10-07 Thread Maxime Ripard
Hi, On Fri, Oct 07, 2016 at 12:06:22AM +0800, Chen-Yu Tsai wrote: > +struct sun4i_tcon_quirks { > + boolis_sun5i; /* sun5i has undocumented mux */ > + boolhas_channel_1; /* a33 does not have channel 1 */ > + boolhas_bypass_src; /* has separate input bypassing CEU */

[PATCH 2/9] drm/sun4i: tcon: Move SoC specific quirks to a DT matched data structure

2016-10-07 Thread Chen-Yu Tsai
We already have some differences between the 2 supported SoCs. More will be added as we support other SoCs. To avoid bloating the probe function with even more conditionals, move the quirks to a separate data structure that's tied to the compatible string. Signed-off-by: Chen-Yu Tsai ---