[U-Boot] [PATCH] video: sunxi: de2: add support for LCD SimpleFB

Jagan Teki jagannadh.teki at gmail.com
Mon Oct 30 11:06:40 UTC 2017


On Mon, Oct 30, 2017 at 4:07 PM, Icenowy Zheng <icenowy at aosc.io> wrote:
> Add support for setting up SimpleFB for LCD display output in DE2
> SimpleFB setup code.
>
> Signed-off-by: Icenowy Zheng <icenowy at aosc.io>
> ---
>  drivers/video/sunxi/sunxi_de2.c | 25 ++++++++++++++++++-------
>  1 file changed, 18 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/video/sunxi/sunxi_de2.c b/drivers/video/sunxi/sunxi_de2.c
> index e8903400ec..a41944e645 100644
> --- a/drivers/video/sunxi/sunxi_de2.c
> +++ b/drivers/video/sunxi/sunxi_de2.c
> @@ -319,7 +319,7 @@ U_BOOT_DEVICE(sunxi_de2) = {
>  #if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_VIDEO_DT_SIMPLEFB)
>  int sunxi_simplefb_setup(void *blob)
>  {
> -       struct udevice *de2, *hdmi;
> +       struct udevice *de2, *disp;
>         struct video_priv *de2_priv;
>         struct video_uc_platdata *de2_plat;
>         int mux;
> @@ -343,16 +343,27 @@ int sunxi_simplefb_setup(void *blob)
>         }
>
>         ret = uclass_find_device_by_name(UCLASS_DISPLAY,
> -                                        "sunxi_dw_hdmi", &hdmi);
> +                                        "sunxi_dw_hdmi", &disp);

why hdmi setup code need to change since the patch is for LCD and
'disp' here for lcd and hdmi, doesn't look good. use udevice lcd to
probe the same.

thanks!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.


More information about the U-Boot mailing list