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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
.
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
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
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,
-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
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
.
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
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
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
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
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
-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
-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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
/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
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
-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
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
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
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
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
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
-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
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
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
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
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
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
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
-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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 - 100 of 299 matches
Mail list logo