Re: [PATCH] Nokia RX-51: Convert to CONFIG_DM_VIDEO

2022-03-09 Thread Pali Rohár
On Sunday 06 March 2022 11:43:21 Simon Glass wrote: > On Sun, 6 Mar 2022 at 08:09, Pali Rohár wrote: > > -/* > > - * Routine: video_hw_init > > - * Description: Set up the GraphicDevice depending on sys_boot. > > - */ > > -void *video_hw_init(void) > > +static int rx51_video_probe(struct udevice *

Re: [PATCH] Nokia RX-51: Convert to CONFIG_DM_VIDEO

2022-03-06 Thread Simon Glass
Hi Pali, On Sun, 6 Mar 2022 at 08:09, Pali Rohár wrote: > > Mechanically convert video_hw_init() function to UCLASS_VIDEO probe > callback and replace CONFIG_CFB_CONSOLE by CONFIG_DM_VIDEO. > > As framebuffer base address is setup by the bootloader which loads U-Boot, > set it into plat->base. A

[PATCH] Nokia RX-51: Convert to CONFIG_DM_VIDEO

2022-03-06 Thread Pali Rohár
Mechanically convert video_hw_init() function to UCLASS_VIDEO probe callback and replace CONFIG_CFB_CONSOLE by CONFIG_DM_VIDEO. As framebuffer base address is setup by the bootloader which loads U-Boot, set it into plat->base. And do not allocate framebuffer in video_post_bind function when base a