From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Thu, 17 Jan 2008 22:09:24 -0500 Subject: [U-Boot-Users] [PATCH] mpc83xx: Correct the struct spi8xxx in mpc8xxx_spi.h In-Reply-To: <1200622024.3654.3.camel@localhost.localdomain> References: <1200622024.3654.3.camel@localhost.localdomain> Message-ID: <47901864.5030100@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dave Liu wrote: > The commit 04a9e1180ac76a7bacc15a6fcd95ad839d65bddb > cause the 83xx immap broken, so the DMA and PCI will > be failed. > > The patch fix the struct spi8xxx. > > Signed-off-by: Dave Liu > --- > include/asm-ppc/immap_83xx.h | 4 ++-- > include/asm-ppc/mpc8xxx_spi.h | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/include/asm-ppc/immap_83xx.h b/include/asm-ppc/immap_83xx.h > index c16a098..023d725 100644 > --- a/include/asm-ppc/immap_83xx.h > +++ b/include/asm-ppc/immap_83xx.h > @@ -388,14 +388,14 @@ typedef struct lbus83xx { > * Serial Peripheral Interface > */ > typedef struct spi83xx { > + u8 res0[0x20]; > u32 mode; /* mode register */ > u32 event; /* event register */ > u32 mask; /* mask register */ > u32 com; /* command register */ > - u8 res0[0x10]; > u32 tx; /* transmit register */ > u32 rx; /* receive register */ > - u8 res1[0xFD8]; > + u8 res1[0xFC8]; > } spi83xx_t; > > BTW - this one isn't used anywhere. We should probably remove it from this file. Not urgent, though. regards, Ben