From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Fuchs Date: Thu, 11 Jan 2007 15:58:32 +0100 Subject: [U-Boot-Users] reg ISP 1561 integration with u-boot1.1.6 In-Reply-To: <20070111131321.133C735264F@atlas.denx.de> References: <20070111131321.133C735264F@atlas.denx.de> Message-ID: <200701111558.32850.matthias.fuchs@esd-electronics.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Wolfgang, On Thursday 11 January 2007 14:13, Wolfgang Denk wrote: > > These are different issues! usb_ohci.c uses readl and writel to access the > > controller's registers from the CPU (e.g. ohci.regs). The original code never > > swaps here. But a PCI OHCI controller on a PowerPC needs it. The mXX_swap > > macros are used to swap data fields in structures that are passed to the host > > controller indirectly. > > Be careful! Keep in mind that you may need both cases in one system, > like using a PCI OHCI controller on a MPC5200 board where you have to > support USB both on the internal USB controllers and on the PCI card. > > See our linuxppc_2_4_devel tree for one possible implementation. Now it's getting ugly. But I will give it a glace. Matthias