From mboxrd@z Thu Jan 1 00:00:00 1970 From: maramaopercheseimorto@gmail.com (Alberto Panizzo) Date: Tue, 25 May 2010 10:01:16 +0200 Subject: [PATCH 14/16] arm/mx3/mx31_3ds: fold board header in its only user In-Reply-To: <1274730951-29106-14-git-send-email-u.kleine-koenig@pengutronix.de> References: <20100524195430.GA28403@pengutronix.de> <1274730951-29106-14-git-send-email-u.kleine-koenig@pengutronix.de> Message-ID: <1274774476.3261.6.camel@realization> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Uwe, On lun, 2010-05-24 at 21:55 +0200, Uwe Kleine-K?nig wrote: > Moreover remove unused definitions. > > Signed-off-by: Uwe Kleine-K?nig > --- > arch/arm/mach-mx3/mach-mx31_3ds.c | 41 +++++++++++++++++++++++++++++++----- > 1 files changed, 35 insertions(+), 6 deletions(-) > > diff --git a/arch/arm/mach-mx3/mach-mx31_3ds.c b/arch/arm/mach-mx3/mach-mx31_3ds.c > index f54af1e..7ec2e81 100644 > --- a/arch/arm/mach-mx3/mach-mx31_3ds.c > +++ b/arch/arm/mach-mx3/mach-mx31_3ds.c > @@ -41,12 +41,41 @@ > #include > #include "devices.h" > > -/*! > - * @file mx31_3ds.c > - * > - * @brief This file contains the board-specific initialization routines. > - * > - * @ingroup System > +/* Definitions for components on the Debug board */ > + > +/* Base address of CPLD controller on the Debug board */ > +#define DEBUG_BASE_ADDRESS CS5_IO_ADDRESS(MX3x_CS5_BASE_ADDR) > + > +/* LAN9217 ethernet base address */ > +#define LAN9217_BASE_ADDR MX3x_CS5_BASE_ADDR > + > +/* CPLD config and interrupt base address */ > +#define CPLD_ADDR (DEBUG_BASE_ADDRESS + 0x20000) > + > +/* status, interrupt */ > +#define CPLD_INT_STATUS_REG (CPLD_ADDR + 0x10) > +#define CPLD_INT_MASK_REG (CPLD_ADDR + 0x38) > +#define CPLD_INT_RESET_REG (CPLD_ADDR + 0x20) > +/* magic word for debug CPLD */ > +#define CPLD_MAGIC_NUMBER1_REG (CPLD_ADDR + 0x40) > +#define CPLD_MAGIC_NUMBER2_REG (CPLD_ADDR + 0x48) > +/* CPLD code version */ > +#define CPLD_CODE_VER_REG (CPLD_ADDR + 0x50) > +/* magic word for debug CPLD */ > +#define CPLD_MAGIC_NUMBER3_REG (CPLD_ADDR + 0x58) > + > +/* CPLD IRQ line for external uart, external ethernet etc */ > +#define EXPIO_PARENT_INT IOMUX_TO_IRQ(MX31_PIN_GPIO1_1) > + > +#define MXC_EXP_IO_BASE (MXC_BOARD_IRQ_START) > +#define MXC_IRQ_TO_EXPIO(irq) ((irq) - MXC_EXP_IO_BASE) > + > +#define EXPIO_INT_ENET (MXC_EXP_IO_BASE + 0) > + > +#define MXC_MAX_EXP_IO_LINES 16 > + > +/* > + * This file contains the board-specific initialization routines. > */ > > static int mx31_3ds_pins[] = { I agree on this patch but it seems you missed to remove the header file plat-mxc/include/mach/board-mx31_3ds.h Best Regards, -- Alberto! Be Persistent! - Greg Kroah-Hartman (FOSDEM 2010)