This patch adds an option to skip the video initialization on for all video drivers. This is needed for the CPCI750 which can be built as CPCI host and adapter/target board. And the adapter board can't access the video cards located on the CompactPCI bus.
Signed-off-by: Stefan Roese <s...@denx.de> Cc: Anatolij Gustschin <ag...@denx.de> --- This patch replaces the previous one [video: ct6900: Add an option to skip video initialization]. The test is now moved out of the ct6900 file into the generic video init routine drv_video_init() as suggested by Anatolij. Thanks, Stefan drivers/video/cfb_console.c | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c index 5ee2314..d3d5a6d 100644 --- a/drivers/video/cfb_console.c +++ b/drivers/video/cfb_console.c @@ -1330,11 +1330,27 @@ static int video_init (void) /*****************************************************************************/ +/* + * Implement a weak default function for boards that optionally + * need to skip the video initialization. + */ +int __board_video_skip(void) +{ + /* As default, don't skip test */ + return 0; +} +int board_video_skip(void) __attribute__((weak, alias("__board_video_skip"))); + + int drv_video_init (void) { int skip_dev_init; device_t console_dev; + /* Check if video initialization should be skipped */ + if (board_video_skip()) + return 0; + skip_dev_init = 0; /* Init video chip - returns with framebuffer cleared */ -- 1.6.2.5 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot