From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gilles Chanteperdrix Date: Tue, 10 May 2011 20:58:20 +0200 Subject: [U-Boot] [PATCH 1/3] omap4: add support for gpios In-Reply-To: References: <4DC85670.3070300@xenomai.org> <1304975091-21848-1-git-send-email-gilles.chanteperdrix@xenomai.org> Message-ID: <4DC98ACC.5020708@xenomai.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 05/10/2011 04:08 PM, John Rigby wrote: > On Mon, May 9, 2011 at 11:04 PM, Gilles Chanteperdrix > wrote: >> Copied from omap3. > I have not looked at the code but if it truly is a copy (other than > some base addresses) is there a way to share with omap3? Yes, probably. The linux code is full of switch/cases, but that is because it has to support compiling one kernel for all omaps. We can do something simple with a header defining the same defines to different values depending on the actual processor. -- Gilles.