From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Date: Tue, 22 Nov 2016 13:41:38 +0100 Subject: [U-Boot] [PATCH RESEND 7/9] video: Allow board hook before video init In-Reply-To: References: <7adfd1c9f64968e10fe639dae0b66b290100639b.1478600213.git-series.maxime.ripard@free-electrons.com> <20161114202407.jngcxs3rlm5d3u65@lukather> Message-ID: <20161122124138.ajjlie5wtmp56uhi@lukather> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, On Mon, Nov 14, 2016 at 01:44:45PM -0700, Simon Glass wrote: > Hi Maxime, > > On 14 November 2016 at 13:24, Maxime Ripard > wrote: > > Hi Simon, > > > > On Fri, Nov 11, 2016 at 09:17:28AM -0700, Simon Glass wrote: > >> Hi Maxime, > >> > >> On 8 November 2016 at 03:19, Maxime Ripard > >> wrote: > >> > Some boards might need to some additional setup right before initialising > >> > the video console. > >> > > >> > Add some hook to allow that. > >> > >> Instead of this, can you use driver model (UCLASS_VIDEO)? > > > > I don't really know the device model that well, hence 'm not really > > sure how would that help. Can a board register a hook to be called > > before a driver is probed? > > My suggest would be that the driver can do whatever is required. What > is the board-specific code actually wanting to do? We need to adjust the video-mode environment variable that is going to be used in the driver's initialisation. We're doing that by identifying which daughter board is attached, and then setting that value according to the display output we want to use. So we need some hook that would run between the environment initialisation and the video driver's init. Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: