From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeroen Hofstee Date: Tue, 28 Aug 2012 10:47:31 +0200 Subject: [U-Boot] [PATCH v1 8/8] OMAP3: mt_ventoux: added video support In-Reply-To: <503C811E.8090503@denx.de> References: <1346140007-9563-1-git-send-email-sbabic@denx.de> <1346140007-9563-8-git-send-email-sbabic@denx.de> <503C7D38.1070205@denx.de> <503C811E.8090503@denx.de> Message-ID: <503C85A3.6090404@myspectrum.nl> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Stefano, Could we use here a define, something like this: #define PANEL_TIMING_H(bp, fp, sw) (((bp - 1) << 20) | ((fp - 1) << 8) | (sw - 1)) > Agree - and put it in a common header (arch/dss.h), making it accessible > to all boards. And we need only one macro PANEL_TIMING, the register has > the same layout. > > I'll do in V2. > The hbp, hfp, hsw, vsw all have a "(program to value minus 1)." vbp and vfp don't, you can set those to zero. So while the layout is the same, the meaning isn't. To make the values match the lcd specification, I would prefer to have the separate defines. Regards, Jeroen