[PATCH 1/2] video: seps525: Align driver with latest treewide changes

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH 1/2] video: seps525: Align driver with latest treewide changes

Michal Simek-3
Some structures/functions have been renamed which are not reflected in this
driver.
Commit 8a8d24bdf174 ("dm: treewide: Rename ..._platdata variables to just
..._plat"), commit c69cda25c9b5 ("dm: treewide: Rename dev_get_platdata()
to dev_get_plat()"), commit caa4daa2ae3d ("dm: treewide: Rename 'platdata'
variables to just 'plat'") and commit 41575d8e4c33 ("dm: treewide: Rename
auto_alloc_size members to be shorter") are describing these changes.

Signed-off-by: Michal Simek <[hidden email]>
---

Driver was developed based on master branch and next got more changes.
---
 drivers/video/seps525.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/video/seps525.c b/drivers/video/seps525.c
index 369e5e6afc87..74c8721e1e11 100644
--- a/drivers/video/seps525.c
+++ b/drivers/video/seps525.c
@@ -299,7 +299,7 @@ static int seps525_probe(struct udevice *dev)
 
 static int seps525_bind(struct udevice *dev)
 {
- struct video_uc_platdata *plat = dev_get_uclass_platdata(dev);
+ struct video_uc_plat *plat = dev_get_uclass_plat(dev);
 
  plat->size = WIDTH * HEIGHT * 16;
 
@@ -320,8 +320,8 @@ U_BOOT_DRIVER(seps525_video) = {
  .id = UCLASS_VIDEO,
  .of_match = seps525_ids,
  .ops = &seps525_ops,
- .platdata_auto_alloc_size = sizeof(struct video_uc_platdata),
+ .plat_auto = sizeof(struct video_uc_plat),
  .bind = seps525_bind,
  .probe = seps525_probe,
- .priv_auto_alloc_size = sizeof(struct seps525_priv),
+ .priv_auto = sizeof(struct seps525_priv),
 };
--
2.30.0

Reply | Threaded
Open this post in threaded view
|

[PATCH 2/2] arm64: zynqmp: Enable seps and related video configs

Michal Simek-3
Enable this driver to get build and probe for our platform.

Signed-off-by: Michal Simek <[hidden email]>
---

 configs/xilinx_zynqmp_virt_defconfig | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/configs/xilinx_zynqmp_virt_defconfig b/configs/xilinx_zynqmp_virt_defconfig
index e400cd4702ee..0bf4b7d692e9 100644
--- a/configs/xilinx_zynqmp_virt_defconfig
+++ b/configs/xilinx_zynqmp_virt_defconfig
@@ -54,6 +54,7 @@ CONFIG_CMD_SPI=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_USB_MASS_STORAGE=y
 CONFIG_CMD_TFTPPUT=y
+CONFIG_CMD_BMP=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_TIME=y
 CONFIG_CMD_TIMER=y
@@ -155,6 +156,15 @@ CONFIG_USB_ETHER=y
 CONFIG_USB_ETH_CDC=y
 CONFIG_USB_HOST_ETHER=y
 CONFIG_USB_ETHER_ASIX=y
+CONFIG_DM_VIDEO=y
+CONFIG_VIDEO_COPY=y
+CONFIG_DISPLAY=y
+CONFIG_VIDEO_SEPS525=y
+CONFIG_LCD=y
+CONFIG_SPLASH_SCREEN=y
+CONFIG_BMP_16BPP=y
+CONFIG_BMP_24BPP=y
+CONFIG_BMP_32BPP=y
 CONFIG_WDT=y
 CONFIG_WDT_CDNS=y
 CONFIG_PANIC_HANG=y
--
2.30.0

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 1/2] video: seps525: Align driver with latest treewide changes

Simon Glass-3
In reply to this post by Michal Simek-3
On Thu, 7 Jan 2021 at 06:26, Michal Simek <[hidden email]> wrote:

>
> Some structures/functions have been renamed which are not reflected in this
> driver.
> Commit 8a8d24bdf174 ("dm: treewide: Rename ..._platdata variables to just
> ..._plat"), commit c69cda25c9b5 ("dm: treewide: Rename dev_get_platdata()
> to dev_get_plat()"), commit caa4daa2ae3d ("dm: treewide: Rename 'platdata'
> variables to just 'plat'") and commit 41575d8e4c33 ("dm: treewide: Rename
> auto_alloc_size members to be shorter") are describing these changes.
>
> Signed-off-by: Michal Simek <[hidden email]>
> ---
>
> Driver was developed based on master branch and next got more changes.
> ---
>  drivers/video/seps525.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>

Reviewed-by: Simon Glass <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

RE: [PATCH 2/2] arm64: zynqmp: Enable seps and related video configs

Ashok Reddy Soma
In reply to this post by Michal Simek-3
Acked-by: Ashok Reddy Soma <[hidden email]>

> -----Original Message-----
> From: Michal Simek <[hidden email]> On Behalf Of Michal Simek
> Sent: Thursday, January 7, 2021 6:56 PM
> To: [hidden email]; git <[hidden email]>; Simon Glass
> <[hidden email]>
> Subject: [PATCH 2/2] arm64: zynqmp: Enable seps and related video configs
>
> Enable this driver to get build and probe for our platform.
>
> Signed-off-by: Michal Simek <[hidden email]>
> ---
>
>  configs/xilinx_zynqmp_virt_defconfig | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>
> diff --git a/configs/xilinx_zynqmp_virt_defconfig
> b/configs/xilinx_zynqmp_virt_defconfig
> index e400cd4702ee..0bf4b7d692e9 100644
> --- a/configs/xilinx_zynqmp_virt_defconfig
> +++ b/configs/xilinx_zynqmp_virt_defconfig
> @@ -54,6 +54,7 @@ CONFIG_CMD_SPI=y
>  CONFIG_CMD_USB=y
>  CONFIG_CMD_USB_MASS_STORAGE=y
>  CONFIG_CMD_TFTPPUT=y
> +CONFIG_CMD_BMP=y
>  CONFIG_CMD_CACHE=y
>  CONFIG_CMD_TIME=y
>  CONFIG_CMD_TIMER=y
> @@ -155,6 +156,15 @@ CONFIG_USB_ETHER=y
>  CONFIG_USB_ETH_CDC=y
>  CONFIG_USB_HOST_ETHER=y
>  CONFIG_USB_ETHER_ASIX=y
> +CONFIG_DM_VIDEO=y
> +CONFIG_VIDEO_COPY=y
> +CONFIG_DISPLAY=y
> +CONFIG_VIDEO_SEPS525=y
> +CONFIG_LCD=y
> +CONFIG_SPLASH_SCREEN=y
> +CONFIG_BMP_16BPP=y
> +CONFIG_BMP_24BPP=y
> +CONFIG_BMP_32BPP=y
>  CONFIG_WDT=y
>  CONFIG_WDT_CDNS=y
>  CONFIG_PANIC_HANG=y
> --
> 2.30.0