From: Wolfgang Denk Date: Thu, 14 May 2009 16:02:00 +0200 Subject: [U-Boot] [PATCH] video: ct6900: Add an option to skip video initialization In-Reply-To: <200905141553.20682.sr@denx.de> References: <1242278732-23803-1-git-send-email-sr@denx.de> <20090514133715.0DDEB832E416@gemini.denx.de> <200905141553.20682.sr@denx.de> Message-ID: <20090514140200.C3900832E416@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Stefan Roese, In message <200905141553.20682.sr@denx.de> you wrote: > > I would love to do it this way. It's not possible though. At least I don't see > such a solution. Of course it's possible. Anything is possible in software :-) > Then please let me know how this can be accomplished. The CPCI750 uses the > same U-Boot image both for the video-enabled CPCI-host version and for the > video-disabled CPCI-adapter version. The video driver is not called from > within the CPCI750 board files. It's called from drivers/video/cfb_console.c. And who calls the code in drivers/video/cfb_console.c ? I think this is the drv_video_init() call in common/devices.c, right? If this should be the highest level in the call chain, then any conditional calling should be done here. But - don't we already have a board_video_init() which could return proper status to abort initialization? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de God grant me the senility to accept the things I cannot change, The frustration to try to change things I cannot affect, and the wisdom to tell the difference.