[PATCH] tools: logos: Rename TI logo files

2023-09-01 Thread Nikhil M Jain
Change the file name from ti.gz and ti.bmp to ti_logos_414x97_32bpp to help user understand the resolution and identify the logo files when placed in the boot partition and update the splashfile name with the same in .env file. Signed-off-by: Nikhil M Jain --- board/ti/am62x/am62x.env

[PATCH 1/9] drivers: video: tidss: TIDSS video driver support for AM62x

2023-01-13 Thread Nikhil M Jain
ion 5.10.145. Signed-off-by: Nikhil M Jain --- MAINTAINERS | 1 + board/ti/am62x/MAINTAINERS | 1 + drivers/video/tidss/Kconfig | 7 + drivers/video/tidss/Makefile | 1 + drivers/video/tidss/tidss_drv.c | 971 +++ drivers

[PATCH 4/9] arm: dts: k3-am625-sk: Add pin control for TIDSS and add panel device tree node

2023-01-13 Thread Nikhil M Jain
the port name in remote-endpoint. main_dss0_pins_default - setting for pinmux. Signed-off-by: Nikhil M Jain --- arch/arm/dts/k3-am625-sk.dts | 82 1 file changed, 82 insertions(+) diff --git a/arch/arm/dts/k3-am625-sk.dts b/arch/arm/dts/k3-am625-sk.dts index

[PATCH 3/9] arm: dts: k3-am62-main: Add device tree node for TIDSS

2023-01-13 Thread Nikhil M Jain
region is added in dss_oldi_io_ctrl. Signed-off-by: Nikhil M Jain --- arch/arm/dts/k3-am62-main.dtsi | 41 ++ 1 file changed, 41 insertions(+) diff --git a/arch/arm/dts/k3-am62-main.dtsi b/arch/arm/dts/k3-am62-main.dtsi index 4b6ba98dd0..a70061050e 100644 --- a/arch

[PATCH 5/9] arm: dts: k3-am625-sk-u-boot: Add u-boot, dm-pre-reloc flag for dss and panel

2023-01-13 Thread Nikhil M Jain
TIDSS and panel are marked with the dm-pre-reloc flag, it sets up display related drivers before relocation as video_uclass base driver which expects framebuffer memory to be set early before relocation. Signed-off-by: Nikhil M Jain --- arch/arm/dts/k3-am625-sk-u-boot.dtsi | 8 1 file

[PATCH 2/9] drivers: video: simple_panel: make simple panel independent of backlight

2023-01-13 Thread Nikhil M Jain
This patch updates the necessary Kconfigs to make simple panel driver independent of backlight driver and compiling backlight related code in simple-panel driver conditionally to when user has set CONFIG_BACKLIGHT. Signed-off-by: Nikhil M Jain --- drivers/video/Kconfig| 3 +-- drivers

[PATCH 9/9] configs: am62x_evm_a53_defconfig: Enable splash screen using tidss

2023-01-13 Thread Nikhil M Jain
x y Signed-off-by: Nikhil M Jain --- configs/am62x_evm_a53_defconfig | 17 + 1 file changed, 17 insertions(+) diff --git a/configs/am62x_evm_a53_defconfig b/configs/am62x_evm_a53_defconfig index ff258bcbc1..bbffc80080 100644 --- a/configs/am62x_evm_a53_defconfig +++ b/configs

[PATCH 8/9] board: ti: am62x: evm: Add splash screen support

2023-01-13 Thread Nikhil M Jain
Splash screen function needs splash source information to load image and display it, splash_location provides the necessary info, Set default_splash_location to MMC 1st partition. Probe TIDSS for splash screen display. Signed-off-by: Nikhil M Jain --- board/ti/am62x/evm.c | 27

[PATCH 6/9] video: Add support to build TIDSS

2023-01-13 Thread Nikhil M Jain
To compile TIDSS when user sets CONFIG_VIDEO_TIDSS add rule in Makefile. Include tidss folder location in Kconfig. Signed-off-by: Nikhil M Jain --- drivers/video/Kconfig | 2 ++ drivers/video/Makefile | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/video/Kconfig b/drivers/video

[PATCH 7/9] include: configs: am62x_evm: Add environment variables for splash screen

2023-01-13 Thread Nikhil M Jain
-by: Nikhil M Jain --- include/configs/am62x_evm.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/configs/am62x_evm.h b/include/configs/am62x_evm.h index 78201adc07..acbcfe0526 100644 --- a/include/configs/am62x_evm.h +++ b/include/configs/am62x_evm.h @@ -29,7

[PATCH 0/9] Enable u-boot splash screen for AM62x

2023-01-13 Thread Nikhil M Jain
Enable TI Display Subsystem (TIDSS) driver as UCLASS_VIDEO. Enable splash screen support, to display TI logo during boot-up. Tested on microtips panel (Model No: 13-101HIEBCAF0-S) which is supported by AM62x. Nikhil M Jain (9): drivers: video: tidss: TIDSS video driver support for AM62x

[PATCH v2 1/1] include: configs: am62x_evm: Add .env file for Am62x

2023-01-23 Thread Nikhil M Jain
Use .env file for setting board related environment variables, in place of am62x_evm.h file. Except for BOOTENV settings, as config_distro_boot.env file doesn't exist. Signed-off-by: Nikhil M Jain --- board/ti/am62x/am62x.env| 103 include/configs

[PATCH v2 0/1] Use .env file for environment variables

2023-01-23 Thread Nikhil M Jain
Add .env file for setting up environment variable fot AM62x. Nikhil M Jain (1): include: configs: am62x_evm: Add .env file for Am62x board/ti/am62x/am62x.env| 103 include/configs/am62x_evm.h | 43 --- 2 files changed, 103 insertions

[PATCH 6/6] tools: logos: Add TI logo files

2023-01-23 Thread Nikhil M Jain
The default splashfile name saved is ti.gz. User can use these logos to test splash screen. Signed-off-by: Nikhil M Jain --- tools/logos/ti.bmp | Bin 0 -> 447258 bytes tools/logos/ti.gz | Bin 0 -> 19604 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 tools

[PATCH] include: configs: am62x_evm: Add .env file for Am62x

2023-01-22 Thread Nikhil M Jain
Use .env file for setting board related environment variables, in place of am62x_evm.h file. Except for BOOTENV settings, as config_distro_boot.env file doesn't exist. Signed-off-by: Nikhil M Jain --- board/ti/am62x/am62x.env| 105 include/configs

[PATCH 0/6] Add u-boot splash screen support for AM62x

2023-01-23 Thread Nikhil M Jain
environment variables for AM62x. link: https://lore.kernel.org/u-boot/20230123063018.6061-1-n-ja...@ti.com/T/#u Nikhil M Jain (6): drivers: core: ofnode: Add panel timing decode. drivers: video: simple_panel: make simple panel independent of backlight drivers: video: tidss: TIDSS video driver

[PATCH 1/6] drivers: core: ofnode: Add panel timing decode.

2023-01-23 Thread Nikhil M Jain
. Signed-off-by: Nikhil M Jain --- drivers/core/ofnode.c | 53 +++ include/dm/ofnode.h | 12 ++ 2 files changed, 65 insertions(+) diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index 4d56b1a767..d06b947516 100644 --- a/drivers/core

[PATCH 5/6] board: ti: am62x: evm: Add splash screen support

2023-01-23 Thread Nikhil M Jain
Splash screen function needs splash source information to load image and display it, splash_location provides the necessary info, Set default_splash_location to MMC at partition 1:1. Probe DSS for splash screen display. Signed-off-by: Nikhil M Jain --- board/ti/am62x/evm.c | 31

[PATCH 2/6] drivers: video: simple_panel: make simple panel independent of backlight

2023-01-23 Thread Nikhil M Jain
To support boards which don't need backlight control for displays, uclass_get_device_by_phandle(UCLASS_PANEL_BACKLIGHT, dev, "backlight", >backlight); returns ENOENT which can be overlooked. Signed-off-by: Nikhil M Jain --- drivers/video/simple_panel.c | 7 +-- 1 file changed,

[PATCH 4/6] board: ti: am62x: am62x: Add splash screen env variables

2023-01-23 Thread Nikhil M Jain
-by: Nikhil M Jain --- board/ti/am62x/am62x.env | 5 + 1 file changed, 5 insertions(+) diff --git a/board/ti/am62x/am62x.env b/board/ti/am62x/am62x.env index 3d4ab84fa3..128191f621 100644 --- a/board/ti/am62x/am62x.env +++ b/board/ti/am62x/am62x.env @@ -103,3 +103,8 @@ get_kern_mmc=load mmc

[PATCH 3/6] drivers: video: tidss: TIDSS video driver support for AM62x

2023-01-23 Thread Nikhil M Jain
in Makefile. Include tidss folder location in Kconfig. TIDSS is ported from linux kernel version 5.10.145 Signed-off-by: Nikhil M Jain --- MAINTAINERS | 1 + drivers/video/Kconfig| 2 + drivers/video/Makefile | 1 + drivers/video/tidss/Kconfi

[PATCH v2 1/7] drivers: core: ofnode: Add panel timing decode.

2023-01-31 Thread Nikhil M Jain
. Signed-off-by: Nikhil M Jain --- drivers/core/ofnode.c | 47 +++ drivers/core/read.c | 6 ++ include/dm/ofnode.h | 12 +++ include/dm/read.h | 14 + 4 files changed, 79 insertions(+) diff --git a/drivers/core/ofnode.c b

[PATCH v2 6/7] board: ti: am62x: evm: Add splash screen support

2023-01-31 Thread Nikhil M Jain
Splash screen function needs splash source information to load image and display it, splash_location provides the necessary info, Set default_splash_location to MMC at partition 1:1. Probe DSS for splash screen display. Signed-off-by: Nikhil M Jain --- board/ti/am62x/evm.c | 25

[PATCH v2 2/7] test: dm: test-fdt: Add decode_panel_timing test

2023-01-31 Thread Nikhil M Jain
To test decode_panel_timing add a panel-timings node and a DM test for decode panel timingd by matching the panel timing node parameters. Signed-off-by: Nikhil M Jain --- arch/sandbox/dts/test.dts | 18 ++ test/dm/test-fdt.c| 35 +++ 2

[PATCH v2 7/7] tools: logos: Add TI logo files

2023-01-31 Thread Nikhil M Jain
The default splashfile name saved is ti.gz. User can use these logo files and use it to test splash screen. Signed-off-by: Nikhil M Jain --- tools/logos/ti.bmp | Bin 0 -> 160770 bytes tools/logos/ti.gz | Bin 0 -> 12285 bytes 2 files changed, 0 insertions(+), 0 deletions(-) creat

[PATCH v2 3/7] drivers: video: simple_panel: make simple panel independent of backlight

2023-01-31 Thread Nikhil M Jain
This patch updates the necessary Kconfigs to make simple panel driver independent of backlight driver and compiling backlight related code in simple-panel driver conditionally to when user has set CONFIG_BACKLIGHT. Signed-off-by: Nikhil M Jain Reviewed-by: Simon Glass --- drivers/video

[PATCH v2 0/7] Add u-boot splash screen support for AM62x.

2023-01-31 Thread Nikhil M Jain
-ja...@ti.com/ Nikhil M Jain (7): drivers: core: ofnode: Add panel timing decode. test: dm: test-fdt: Add decode_panel_timing test drivers: video: simple_panel: make simple panel independent of backlight drivers: video: tidss: TIDSS video driver support for AM62x board: ti: am62x

[PATCH v2 5/7] board: ti: am62x: am62x: Add splash screen env variables

2023-01-31 Thread Nikhil M Jain
-by: Nikhil M Jain --- board/ti/am62x/am62x.env | 5 + 1 file changed, 5 insertions(+) diff --git a/board/ti/am62x/am62x.env b/board/ti/am62x/am62x.env index 3d4ab84fa3..128191f621 100644 --- a/board/ti/am62x/am62x.env +++ b/board/ti/am62x/am62x.env @@ -103,3 +103,8 @@ get_kern_mmc=load mmc

[PATCH v2 4/7] drivers: video: tidss: TIDSS video driver support for AM62x

2023-01-31 Thread Nikhil M Jain
in Makefile. Include tidss folder location in Kconfig. TIDSS is ported from linux kernel version 5.10.145 Signed-off-by: Nikhil M Jain --- MAINTAINERS | 1 + drivers/video/Kconfig| 2 + drivers/video/Makefile | 1 + drivers/video/tidss/Kconfi

Re: [PATCH 0/9] Enable splash screen

2023-03-17 Thread Nikhil M Jain
Hi Simon, On 16/03/23 10:10, Nikhil M Jain wrote: Hi Simon, On 15/03/23 19:38, Simon Glass wrote: Hi Nikhil, On Wed, 15 Mar 2023 at 00:07, Nikhil M Jain wrote: Hi Simon, On 15/03/23 03:38, Simon Glass wrote: Hi Nikhil, On Mon, 13 Mar 2023 at 04:15, Nikhil M Jain wrote: To enable

Re: [PATCH v2 2/3] include: configs: j721s2_evm: Change to using .env

2023-03-16 Thread Nikhil M Jain
Hi Neha, Thanks for the patch. On 15/03/23 10:57, Neha Malcom Francis wrote: Move to using .env file for setting up environment variables for J721S2. Signed-off-by: Neha Malcom Francis Reviewed-by: Tom Rini --- Changes in v2: - Added CONFIG_CMD_REMOTEPROC guard to including

[PATCH 7/9] common: splash: Enable splash_display at SPL stage

2023-03-13 Thread Nikhil M Jain
proper or SPl related macros as enabled at u-boot proper or SPL stage respectively. Signed-off-by: Nikhil M Jain --- common/splash.c | 2 +- include/splash.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/splash.c b/common/splash.c index 245ff680eb..885fa1ec86

[PATCH 8/9] drivers: video: video-uclass: Disable u-boot logo at SPL

2023-03-13 Thread Nikhil M Jain
Enable displaying of u-boot video logo as default at SPL stage to if splash screen is disabled at SPL stage. Use CONFIG_IS_ENABLED for checking on splash screen macro both at SPL stage or u-boot proper depending upon where it is enabled. Signed-off-by: Nikhil M Jain --- drivers/video/Kconfig

[PATCH 6/9] cmd: Makefile: Add rules to build bmp.c and read.c at SPL

2023-03-13 Thread Nikhil M Jain
Splash support requires functions which are in bmp.c and read.c to enable display of bmp image and reading image from boot media. Enable their compilation at SPL stage, using Kconfigs SPL_CMD_BMP, SPL_CMD_READ. Signed-off-by: Nikhil M Jain --- cmd/Makefile | 2 ++ 1 file changed, 2 insertions

[PATCH 9/9] board: ti: am62x: evm: OSPI support for splash screen

2023-03-13 Thread Nikhil M Jain
Add ospi boot media support to load splash image from OSPI memory, add offset to read image from ospi and necessary flags defininig type of storage and storage device. Signed-off-by: Nikhil M Jain --- board/ti/am62x/evm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/board/ti/am62x

[PATCH 5/9] drivers: video: tidss: Makefile: Add condition to compile TIDSS at SPL

2023-03-13 Thread Nikhil M Jain
To enable TIDSS driver only at SPL stage add rule to compile the TIDSS video driver, for SPL stage only if CONFIG_SPL_VIDEO_TIDSS is defined. Signed-off-by: Nikhil M Jain --- drivers/video/Makefile | 1 + drivers/video/tidss/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git

[PATCH 1/9] drivers: video: Kconfig: Necessary configs for video at SPL

2023-03-13 Thread Nikhil M Jain
-by: Nikhil M Jain --- drivers/video/Kconfig | 30 +++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 2a76d19cc8..1097e2c623 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -14,7 +14,17 @@ config

[PATCH 0/9] Enable splash screen

2023-03-13 Thread Nikhil M Jain
To enable splash screen at SPL stage move video driver and splash screen framework at SPL, which will bring up image on display very quickly and thus have early display support in SPL. Change in V2 - Removed artifacts from bad patch apply. Nikhil M Jain (9): drivers: video: Kconfig: Necessary

[PATCH 4/9] drivers: video: Makefile: Compile video driver files at SPL

2023-03-13 Thread Nikhil M Jain
To enable splash screen at SPL we need to add video driver at SPL stage. To support video driver and splash display function compile video_uclass.c, video_console.c and video_bmp.c, thus add rules to compile these files at SPL stage when CONFIG_SPL_VIDEO is defined. Signed-off-by: Nikhil M Jain

[PATCH 3/9] cmd: Kconfig: Add necessary configs for splash screen at SPL

2023-03-13 Thread Nikhil M Jain
CONFIG_CMD_BMP and CONFIG_SPLASH_SCREEN enable's splash display at only u-boot proper. To enable splash display at SPL stage add SPL specific configs, which are SPL_CMD_BMP and SPL_SPLASH_SCREEN. Signed-off-by: Nikhil M Jain --- cmd/Kconfig | 17 + 1 file changed, 17 insertions

[PATCH 2/9] drivers: video: tidss: Kconfig: Configs to enable TIDSS at SPL

2023-03-13 Thread Nikhil M Jain
To enable tidss video driver only at SPL stage, add necessary config, CONFIG_SPL_VIDEO_TIDSS. Signed-off-by: Nikhil M Jain --- drivers/video/tidss/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/video/tidss/Kconfig b/drivers/video/tidss/Kconfig index 2a5e56ea4e

Re: [PATCH 0/9] Enable splash screen

2023-03-15 Thread Nikhil M Jain
Hi Simon, On 15/03/23 19:38, Simon Glass wrote: Hi Nikhil, On Wed, 15 Mar 2023 at 00:07, Nikhil M Jain wrote: Hi Simon, On 15/03/23 03:38, Simon Glass wrote: Hi Nikhil, On Mon, 13 Mar 2023 at 04:15, Nikhil M Jain wrote: To enable splash screen at SPL stage move video driver and splash

[PATCH] include: configs: am62ax: Change to using .env

2023-03-20 Thread Nikhil M Jain
Move to using .env file for setting up environment variables for am62ax. This patch depends on https://lore.kernel.org/all/20230315052745.110502-1-n-fran...@ti.com/ Signed-off-by: Nikhil M Jain --- board/ti/am62ax/am62ax.env | 33 + include/configs

[PATCH] board: ti: am62x: am62x: Include K3 common .env files

2023-03-20 Thread Nikhil M Jain
Include ti_armv7_common.env and ti/mmc.env, which includes' K3 common environment variables used across different K3 boards. This patch depends on https://lore.kernel.org/all/20230315052745.110502-1-n-fran...@ti.com/ Signed-off-by: Nikhil M Jain --- board/ti/am62x/am62x.env | 74

[PATCH 1/9] drivers: video: Kconfig: Necessary configs for video at SPL

2023-03-13 Thread Nikhil M Jain
-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar --- drivers/video/Kconfig | 30 +++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 2a76d19cc8..1097e2c623 100644 --- a/drivers/video/Kconfig +++ b/drivers/video

[PATCH 0/9] Enable splash screen

2023-03-13 Thread Nikhil M Jain
To enable splash screen at SPL stage move video driver and splash screen framework at SPL, which will bring up image on display very quickly and thus have early display support in SPL. Nikhil M Jain (9): drivers: video: Kconfig: Necessary configs for video at SPL drivers: video: tidss

[PATCH 9/9] board: ti: am62x: evm: OSPI support for splash screen

2023-03-13 Thread Nikhil M Jain
Add ospi boot media support to load splash image from OSPI memory, add offset to read image from ospi and necessary flags defininig type of storage and storage device. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar --- board/ti/am62x/evm.c | 6 ++ 1 file changed, 6 insertions

[PATCH 8/9] drivers: video: video-uclass: Disable u-boot logo at SPL

2023-03-13 Thread Nikhil M Jain
Enable displaying of u-boot video logo as default at SPL stage to if splash screen is disabled at SPL stage. Use CONFIG_IS_ENABLED for checking on splash screen macro both at SPL stage or u-boot proper depending upon where it is enabled. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar

[PATCH 7/9] common: splash: Enable splash_display at SPL stage

2023-03-13 Thread Nikhil M Jain
proper or SPl related macros as enabled at u-boot proper or SPL stage respectively. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar --- common/splash.c | 2 +- include/splash.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/splash.c b/common/splash.c

[PATCH 6/9] cmd: Makefile: Add rules to build bmp.c and read.c at SPL

2023-03-13 Thread Nikhil M Jain
Splash support requires functions which are in bmp.c and read.c to enable display of bmp image and reading image from boot media. Enable their compilation at SPL stage, using Kconfigs SPL_CMD_BMP, SPL_CMD_READ. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar --- cmd/Makefile | 2

[PATCH 3/9] cmd: Kconfig: Add necessary configs for splash screen at SPL

2023-03-13 Thread Nikhil M Jain
CONFIG_CMD_BMP and CONFIG_SPLASH_SCREEN enable's splash display at only u-boot proper. To enable splash display at SPL stage add SPL specific configs, which are SPL_CMD_BMP and SPL_SPLASH_SCREEN. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar --- cmd/Kconfig | 17

[PATCH 2/9] drivers: video: tidss: Kconfig: Configs to enable TIDSS at SPL

2023-03-13 Thread Nikhil M Jain
To enable tidss video driver only at SPL stage, add necessary config, CONFIG_SPL_VIDEO_TIDSS. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar --- drivers/video/tidss/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/video/tidss/Kconfig b/drivers/video/tidss

[PATCH 4/9] drivers: video: Makefile: Compile video driver files at SPL

2023-03-13 Thread Nikhil M Jain
To enable splash screen at SPL we need to add video driver at SPL stage. To support video driver and splash display function compile video_uclass.c, video_console.c and video_bmp.c, thus add rules to compile these files at SPL stage when CONFIG_SPL_VIDEO is defined. Signed-off-by: Nikhil M Jain

[PATCH 5/9] drivers: video: tidss: Makefile: Add condition to compile TIDSS at SPL

2023-03-13 Thread Nikhil M Jain
To enable TIDSS driver only at SPL stage add rule to compile the TIDSS video driver, for SPL stage only if CONFIG_SPL_VIDEO_TIDSS is defined. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar --- drivers/video/Makefile | 1 + drivers/video/tidss/Makefile | 1 + 2 files changed, 2

[PATCH] include: configs: am65x_evm: Change to using .env

2023-03-21 Thread Nikhil M Jain
Move to using .env file for setting up environment variables for am65x. Signed-off-by: Nikhil M Jain --- board/ti/am65x/am65x.env| 47 + include/configs/am65x_evm.h | 68 - 2 files changed, 47 insertions(+), 68 deletions(-) create

Re: [PATCH 0/9] Enable splash screen

2023-03-15 Thread Nikhil M Jain
Hi Simon, On 15/03/23 03:38, Simon Glass wrote: Hi Nikhil, On Mon, 13 Mar 2023 at 04:15, Nikhil M Jain wrote: To enable splash screen at SPL stage move video driver and splash screen framework at SPL, which will bring up image on display very quickly and thus have early display support

[PATCH] configs: am62x_evm_a53_defconfig: Fix SF_DEFAULT_MODE

2023-03-11 Thread Nikhil M Jain
Setting sf default mode to 0x3 breaks sf update when we do SF read through u-boot console. This issue arises when we do a splash image through OSPI flash media, to fix this set the default mode to 0x0. Fixes: 04150400c967 ("configs: enable OSPI related configs in AM62x") Signed-off-by

[PATCH 0/2] spi: spi-mem: odd byte condition changes in dtr_supports_op

2023-02-28 Thread Nikhil M Jain
itten, 0 bytes skipped in 1.478s, speed 8494 B/s sf read 0x9000 0x70 $filesize device 0 offset 0x70, size 0x2ffd SF: 12285 bytes @ 0x70 Read: OK => cmp.b $loadaddr 0x9000 $filesize # all bytes were same # ... Cc: Vignesh Raghavendra Cc: Pratyush Yadav Cc: Vaishnav Achath C

[PATCH 2/2] spi: spi-mem: perform odd len check only while writing data

2023-02-28 Thread Nikhil M Jain
possible we can still allow for it because it will not have serious implications on any critical registers being overwritten since they are just reads. Cc: Vaishnav Achath Cc: Pratyush Yadav Cc: Vignesh Raghavendra Tested-by: Nikhil M Jain Signed-off-by: Dhruva Gole --- drivers/spi/spi-mem.c | 2

[PATCH 1/2] spi: spi-mem: s/dummy/data buswidth check in dtr_supports_op()

2023-02-28 Thread Nikhil M Jain
From: Dhruva Gole This should have been op->data.buswidth instead as we check for octal bus width for the data related ops Also add explanation for why there is checks for 8D even data bytes Cc: Pratyush Yadav Reviewed-by: Pratyush Yadav Tested-by: Nikhil M Jain Signed-off-by: Dhruva G

[PATCH V9 12/14] include: Enable video related global data variable and splash at SPL

2023-04-20 Thread Nikhil M Jain
To include video related global data variables and splash functions at SPL and u-boot proper, use CONFIG_IS_ENABLED. Replace CONFIG_CMD_BMP with CONFIG_BMP to enable splash_display function at u-boot proper and SPL. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar Reviewed-by: Simon

[PATCH V9 01/14] drivers: video: Kconfig: Add configs for enabling video at SPL

2023-04-20 Thread Nikhil M Jain
Add Kconfigs which enable the video driver and splash screen at SPL stage only and not at u-boot proper. The existing Kconfigs from u-boot proper were not used to make SPL splash screen independent to them. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar Reviewed-by: Simon Glass

[PATCH V9 00/14] Add splash screen support at u-boot SPL

2023-04-20 Thread Nikhil M Jain
/bmp.c to separate bmp functions and commands. - Add CONFIG_BMP and CONFIG_SPL_BMP. - Add rule to compile necessary files required for video driver. - Add rule to compile common/bmp.c. Changes in V2 - Removed artifacts from bad patch apply. Nikhil M Jain (14): drivers: video: Kconfig: Add configs

[PATCH V9 07/14] common: Kconfig: Add BMP configs

2023-04-20 Thread Nikhil M Jain
Add CONFIG_BMP and CONFIG_SPL_BMP which enable displaying bmp images at u-boot proper and SPL. Signed-off-by: Nikhil M Jain Reviewed-by: Simon Glass Reviewed-by: Devarsh Thakkar --- V9: - No change. V8: - No change. V7: - No change. V6: - Added Reviewed-by tag. V5: - Added Reviewed-by tag

[PATCH V9 08/14] cmd: bmp: Split bmp commands and functions

2023-04-20 Thread Nikhil M Jain
-by: Nikhil M Jain Reviewed-by: Simon Glass --- V9: - No change. V8: - No change. V7: - No change. V6: - Fix commit message. - Remove unused header files. V5: - Rename cmd/bmp_cmd to cmd/bmp. V4: - No change. V3 (patch introduced): - Split bmp functions and commands. cmd/bmp.c | 162

[PATCH V9 09/14] common: Makefile: Rule to compile bmp.c

2023-04-20 Thread Nikhil M Jain
Add rule to compile bmp.c at SPL and u-boot proper when CONFIG_SPL_BMP and CONFIG_BMP are defined. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar Reviewed-by: Simon Glass Tested-by: Simon Glass --- V9: - No change. V8: - No change. V7: - Add Reviewed-by and Tested-by tag. V6

[PATCH V9 05/14] drivers: video: tidss: Makefile: Add condition to compile TIDSS at SPL

2023-04-20 Thread Nikhil M Jain
To enable TIDSS driver only at SPL stage add rule to compile the TIDSS video driver. CONFIG_$(SPL_)VIDEO_TIDSS will compile tidss_drv, at SPL only if CONFIG_SPL_VIDEO_TIDSS is defined and at u-boot proper if CONFIG_VIDEO_TIDSS is defined. Signed-off-by: Nikhil M Jain Reviewed-by: Simon Glass

[PATCH V9 02/14] drivers: video: tidss: Kconfig: Configs to enable TIDSS at SPL

2023-04-20 Thread Nikhil M Jain
To enable tidss display driver only at SPL stage, add necessary config, CONFIG_SPL_VIDEO_TIDSS. Signed-off-by: Nikhil M Jain Reviewed-by: Simon Glass Reviewed-by: Devarsh Thakkar --- V9: - No change. V8: - No change. V7: - No change. V6: - Fix commit message. - Add Reviewed-By tag. V5

[PATCH V9 03/14] drivers: Makefile: Add rule to compile video driver

2023-04-20 Thread Nikhil M Jain
Compile video driver at SPL using CONFIG_SPL_VIDEO. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar Reviewed-by: Simon Glass Tested-by: Simon Glass # qemu-x86_64 --- V9: - No change. V8: - No change. V7: - Add Reviewed-by and Tested-by tag. V6: - Add Reviewed-by tag. - Commit

[PATCH V9 06/14] common: Makefile: Add rule to compile splash and splash_source at SPL

2023-04-20 Thread Nikhil M Jain
To enable splash screen and loading bmp from boot media, add rules to compile splash.c and splash_source.c at SPL stage only when CONFIG_SPL_SPLASH_SCREEN and CONFIG_SPL_SPLASH_SOURCE are defined. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar Reviewed-by: Simon Glass --- V9

[PATCH V9 04/14] drivers: video: Makefile: Rule to compile necessary video driver files

2023-04-20 Thread Nikhil M Jain
-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar Reviewed-by: Simon Glass Tested-by: Simon Glass --- V9: - No change. V8: - No chage. V7: - Add Reviewed-by and Tested-by tag. V6: - Fix CONFIG_$(SPL_TPL)CONSOLE_NORMAL to CONFIG_$(SPL_TPL_)CONSOLE_NORMAL - Add rule to compile simple_panel at SPL

[PATCH V9 10/14] drivers: video: Enable necessary video functions at SPL

2023-04-20 Thread Nikhil M Jain
To support video driver at SPL use CONFIG_IS_ENABLED and CONFIG_VAL, which checks for stage specific configs and thus enables video support at respective stage. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar Reviewed-by: Simon Glass Tested-by: Simon Glass --- V9: - No change. V8

[PATCH V9 13/14] board: ti: am62x: evm: OSPI support for splash screen

2023-04-20 Thread Nikhil M Jain
Add ospi boot media support to load splash image from OSPI memory, add offset to read image from ospi and necessary flags defininig type of storage and storage device. Use CONFIG_IS_ENBALED to use the splash locations at SPL and u-boot proper. Signed-off-by: Nikhil M Jain Reviewed-by: Simon

[PATCH V9 14/14] common: Replace #ifdef and #if with if's

2023-04-20 Thread Nikhil M Jain
Avoid using preprocessor compilation directives and instead use simple logical expressions for better readability since compiler will anyway optimize out the respective code block if condition is not satisfied. Signed-off-by: Nikhil M Jain Reviewed-by: Simon Glass Reviewed-by: Devarsh Thakkar

[PATCH V9 11/14] common: Enable splash functions at SPL

2023-04-20 Thread Nikhil M Jain
To support splash screen at both u-boot proper and SPL use CONFIG_IS_ENABLED and CONFIG_VAL to check for video related Kconfigs at respective stages. Replace CONFIG_CMD_BMP with CONFIG_BMP to enable splash_display function at u-boot proper and SPL. Signed-off-by: Nikhil M Jain Reviewed

[PATCH V8 14/14] common: Replace #ifdef and #if with if's

2023-04-19 Thread Nikhil M Jain
Avoid using preprocessor compilation directives and instead use simple logical expressions for better readability since compiler will anyway optimize out the respective code block if condition is not satisfied. Signed-off-by: Nikhil M Jain --- V8: - Update as per review comments. - Call

[PATCH V8 01/14] drivers: video: Kconfig: Add configs for enabling video at SPL

2023-04-19 Thread Nikhil M Jain
Add Kconfigs which enable the video driver and splash screen at SPL stage only and not at u-boot proper. The existing Kconfigs from u-boot proper were not used to make SPL splash screen independent to them. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar Reviewed-by: Simon Glass

[PATCH V8 04/14] drivers: video: Makefile: Rule to compile necessary video driver files

2023-04-19 Thread Nikhil M Jain
-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar Reviewed-by: Simon Glass Tested-by: Simon Glass --- V8: - No chage. V7: - Add Reviewed-by and Tested-by tag. V6: - Fix CONFIG_$(SPL_TPL)CONSOLE_NORMAL to CONFIG_$(SPL_TPL_)CONSOLE_NORMAL - Add rule to compile simple_panel at SPL and u-boot proper

[PATCH V8 00/14] Add splash screen support at u-boot SPL

2023-04-19 Thread Nikhil M Jain
to compile necessary files required for video driver. - Add rule to compile common/bmp.c. Changes in V2 - Removed artifacts from bad patch apply. Nikhil M Jain (14): drivers: video: Kconfig: Add configs for enabling video at SPL drivers: video: tidss: Kconfig: Configs to enable TIDSS at SPL

[PATCH V8 02/14] drivers: video: tidss: Kconfig: Configs to enable TIDSS at SPL

2023-04-19 Thread Nikhil M Jain
To enable tidss display driver only at SPL stage, add necessary config, CONFIG_SPL_VIDEO_TIDSS. Signed-off-by: Nikhil M Jain Reviewed-by: Simon Glass Reviewed-by: Devarsh Thakkar --- V8: - No change. V7: - No change. V6: - Fix commit message. - Add Reviewed-By tag. V5: - No change. V4

[PATCH V8 03/14] drivers: Makefile: Add rule to compile video driver

2023-04-19 Thread Nikhil M Jain
Compile video driver at SPL using CONFIG_SPL_VIDEO. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar Reviewed-by: Simon Glass Tested-by: Simon Glass # qemu-x86_64 --- V8: - No change. V7: - Add Reviewed-by and Tested-by tag. V6: - Add Reviewed-by tag. - Commit message updated. V5

Re: [PATCH 4/4] common: spl: spl: Remove video driver before u-boot proper

2023-04-19 Thread Nikhil M Jain
Hi Simon, On 19/04/23 07:16, Simon Glass wrote: Hi Nikhil, On Mon, 10 Apr 2023 at 02:21, Nikhil M Jain wrote: Add method to remove video driver before loading u-boot proper. When bootstage changes from SPL to u-boot proper, noo method is called to remove video driver, and at u-boot proper

[PATCH V8 13/14] board: ti: am62x: evm: OSPI support for splash screen

2023-04-19 Thread Nikhil M Jain
Add ospi boot media support to load splash image from OSPI memory, add offset to read image from ospi and necessary flags defininig type of storage and storage device. Use CONFIG_IS_ENBALED to use the splash locations at SPL and u-boot proper. Signed-off-by: Nikhil M Jain Reviewed-by: Simon

[PATCH V8 08/14] cmd: bmp: Split bmp commands and functions

2023-04-19 Thread Nikhil M Jain
-by: Nikhil M Jain Reviewed-by: Simon Glass --- V8: - No change. V7: - No change. V6: - Fix commit message. - Remove unused header files. V5: - Rename cmd/bmp_cmd to cmd/bmp. V4: - No change. V3 (patch introduced): - Split bmp functions and commands. cmd/bmp.c | 162

[PATCH V8 12/14] include: Enable video related global data variable and splash at SPL

2023-04-19 Thread Nikhil M Jain
To include video related global data variables and splash functions at SPL and u-boot proper, use CONFIG_IS_ENABLED. Replace CONFIG_CMD_BMP with CONFIG_BMP to enable splash_display function at u-boot proper and SPL. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar Reviewed-by: Simon

[PATCH V8 11/14] common: Enable splash functions at SPL

2023-04-19 Thread Nikhil M Jain
To support splash screen at both u-boot proper and SPL use CONFIG_IS_ENABLED and CONFIG_VAL to check for video related Kconfigs at respective stages. Replace CONFIG_CMD_BMP with CONFIG_BMP to enable splash_display function at u-boot proper and SPL. Signed-off-by: Nikhil M Jain Reviewed

[PATCH V8 09/14] common: Makefile: Rule to compile bmp.c

2023-04-19 Thread Nikhil M Jain
Add rule to compile bmp.c at SPL and u-boot proper when CONFIG_SPL_BMP and CONFIG_BMP are defined. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar Reviewed-by: Simon Glass Tested-by: Simon Glass --- V8: - No change. V7: - Add Reviewed-by and Tested-by tag. V6: - Add Reviewed

[PATCH V8 10/14] drivers: video: Enable necessary video functions at SPL

2023-04-19 Thread Nikhil M Jain
To support video driver at SPL use CONFIG_IS_ENABLED and CONFIG_VAL, which checks for stage specific configs and thus enables video support at respective stage. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar Reviewed-by: Simon Glass Tested-by: Simon Glass --- V8: - No change. V7

[PATCH V8 06/14] common: Makefile: Add rule to compile splash and splash_source at SPL

2023-04-19 Thread Nikhil M Jain
To enable splash screen and loading bmp from boot media, add rules to compile splash.c and splash_source.c at SPL stage only when CONFIG_SPL_SPLASH_SCREEN and CONFIG_SPL_SPLASH_SOURCE are defined. Signed-off-by: Nikhil M Jain Reviewed-by: Devarsh Thakkar Reviewed-by: Simon Glass --- V8

[PATCH V8 07/14] common: Kconfig: Add BMP configs

2023-04-19 Thread Nikhil M Jain
Add CONFIG_BMP and CONFIG_SPL_BMP which enable displaying bmp images at u-boot proper and SPL. Signed-off-by: Nikhil M Jain Reviewed-by: Simon Glass Reviewed-by: Devarsh Thakkar --- V8: - No change. V7: - No change. V6: - Added Reviewed-by tag. V5: - Added Reviewed-by tag. V4: - No change

[PATCH V8 05/14] drivers: video: tidss: Makefile: Add condition to compile TIDSS at SPL

2023-04-19 Thread Nikhil M Jain
To enable TIDSS driver only at SPL stage add rule to compile the TIDSS video driver. CONFIG_$(SPL_)VIDEO_TIDSS will compile tidss_drv, at SPL only if CONFIG_SPL_VIDEO_TIDSS is defined and at u-boot proper if CONFIG_VIDEO_TIDSS is defined. Signed-off-by: Nikhil M Jain Reviewed-by: Simon Glass

[PATCH 2/3] board: ti: am62x: am62x: Update args_all env variable

2023-04-28 Thread Nikhil M Jain
Remove the earlycon settings from args_all. Signed-off-by: Nikhil M Jain --- board/ti/am62x/am62x.env | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/board/ti/am62x/am62x.env b/board/ti/am62x/am62x.env index e4e64fa637..cdd30b08ed 100644 --- a/board/ti/am62x/am62x.env

[PATCH 3/3] include: configs: am62x_evm: Use CONFIG_IS_ENABLED

2023-04-28 Thread Nikhil M Jain
Update to using CONFIG_IS_ENABLED and change DISTRO_BOOT_DEV_MMC to first attempt SD card boot and next emmc boot. Signed-off-by: Nikhil M Jain --- include/configs/am62x_evm.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/configs/am62x_evm.h b/include

[PATCH 1/3] board: ti: am62x: Kconfig: Add ENV_SOIRCE_FILE for am62x

2023-04-28 Thread Nikhil M Jain
Set the base name for am62x to use am62x.env file, for setting environment variable. Signed-off-by: Nikhil M Jain --- board/ti/am62x/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/board/ti/am62x/Kconfig b/board/ti/am62x/Kconfig index 5e8dfa3cc4..b681d8e589 100644 --- a/board

[PATCH 0/3] Update env support for Am62x

2023-04-28 Thread Nikhil M Jain
This patch series aims at updating the env support on Am62x by adding necessary config, updating env variables, update to using CONFIG_IS_ENABLED. Nikhil M Jain (3): board: ti: am62x: Kconfig: Add ENV_SOIRCE_FILE for am62x board: ti: am62x: am62x: Update args_all env variable include

Re: [PATCH V7 14/14] common: Replace #ifdef and #if with if's

2023-04-18 Thread Nikhil M Jain
Hi Devarsh On 17/04/23 11:09, Devarsh Thakkar wrote: Hi Nikhil, Thanks for the patch. On 10/04/23 12:58, Nikhil M Jain wrote: Remove #ifdef in header file to avoid multiple definitions while multiple definitions doesnt seem to be right phrase as that will give compilation error anyway

Re: [PATCH V7 14/14] common: Replace #ifdef and #if with if's

2023-04-18 Thread Nikhil M Jain
On 17/04/23 11:09, Devarsh Thakkar wrote: Hi Nikhil, Thanks for the patch. On 10/04/23 12:58, Nikhil M Jain wrote: Remove #ifdef in header file to avoid multiple definitions while multiple definitions doesnt seem to be right phrase as that will give compilation error anyway. compilation

[PATCH V2] include: configs: am64x_evm: Change to using .env

2023-03-30 Thread Nikhil M Jain
Move to using .env file for setting up environment variables for am64x. Signed-off-by: Nikhil M Jain --- V2: - Corrected commit message. board/ti/am64x/am64x.env| 63 +++ include/configs/am64x_evm.h | 85 - 2 files changed, 63

[PATCH] include: configs: am64x_evm: Change to using .env

2023-03-30 Thread Nikhil M Jain
Move to using .env file for setting up environment variables for am65x. Signed-off-by: Nikhil M Jain --- board/ti/am64x/am64x.env| 63 +++ include/configs/am64x_evm.h | 85 - 2 files changed, 63 insertions(+), 85 deletions

Re: [PATCH v4 12/15] common: Enable splash functions at SPL

2023-03-30 Thread Nikhil M Jain
Hi Devarsh On 30/03/23 16:15, Devarsh Thakkar wrote: Hi Nikhil Thanks for the patch, On 29/03/23 17:31, Nikhil M Jain wrote: To support splash screen at SPL use CONFIG_IS_ENABLED and CONFIG_VAL. To check for stage specific configs at u-boot proper and SPL. Signed-off-by: Nikhil M Jain

  1   2   3   >