From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [V2 1/3] mxc: Add support for the imx51 3-stack board
Date: Thu, 3 Jun 2010 15:57:06 +0200 [thread overview]
Message-ID: <20100603135705.GA25357@pengutronix.de> (raw)
In-Reply-To: <20100603123908.GB3527@matterhorn.lan>
On Thu, Jun 03, 2010 at 03:39:08PM +0300, Amit Kucheria wrote:
> Two comments inline.
>
> On 10 Jun 03, Jason Wang wrote:
> > 3-stack is a reference board from Freescale for their i.MX51 SoC.
> >
> > Add board definition, Kconfig and Makefile to enable Freescale 3-stack
> > board.
> >
> > Boot tested on a i.MX51 3-stack Rev2.0 board
> >
> > Signed-off-by: Jason Wang <jason77.wang@gmail.com>
> > ---
> > arch/arm/mach-mx5/Kconfig | 5 +
> > arch/arm/mach-mx5/Makefile | 2 +-
> > arch/arm/mach-mx5/board-mx51_3ds.c | 263 +++++++++++++++++++++++
> > arch/arm/plat-mxc/include/mach/board-mx51_3ds.h | 70 ++++++
> > arch/arm/plat-mxc/include/mach/iomux-mx51.h | 10 +-
> > 5 files changed, 345 insertions(+), 5 deletions(-)
> > create mode 100644 arch/arm/mach-mx5/board-mx51_3ds.c
> > create mode 100644 arch/arm/plat-mxc/include/mach/board-mx51_3ds.h
> >
> > diff --git a/arch/arm/mach-mx5/Kconfig b/arch/arm/mach-mx5/Kconfig
> > index 1576d51..6d45f44 100644
> > --- a/arch/arm/mach-mx5/Kconfig
> > +++ b/arch/arm/mach-mx5/Kconfig
> > @@ -15,4 +15,9 @@ config MACH_MX51_BABBAGE
> > u-boot. This includes specific configurations for the board and its
> > peripherals.
> >
> > +config MACH_MX51_3DS
> > + bool "Support MX51PDK (3DS)"
> > + help
> > + Include support for MX51PDK (3DS) platform. This includes specific
> > + configurations for the board and its peripherals.
> > endif
> > diff --git a/arch/arm/mach-mx5/Makefile b/arch/arm/mach-mx5/Makefile
> > index bf23f86..c757c59 100644
> > --- a/arch/arm/mach-mx5/Makefile
> > +++ b/arch/arm/mach-mx5/Makefile
> > @@ -6,4 +6,4 @@
> > obj-y := cpu.o mm.o clock-mx51.o devices.o
> >
> > obj-$(CONFIG_MACH_MX51_BABBAGE) += board-mx51_babbage.o
> > -
> > +obj-$(CONFIG_MACH_MX51_3DS) += board-mx51_3ds.o
> > diff --git a/arch/arm/mach-mx5/board-mx51_3ds.c b/arch/arm/mach-mx5/board-mx51_3ds.c
> > new file mode 100644
> > index 0000000..5da90e9
> > --- /dev/null
> > +++ b/arch/arm/mach-mx5/board-mx51_3ds.c
> > @@ -0,0 +1,263 @@
> > +/*
> > + * Copyright 2008-2009 Freescale Semiconductor, Inc. All Rights Reserved.
> > + * Copyright (C) 2010 Jason Wang <jason77.wang@gmail.com>
> > + *
> > + * The code contained herein is licensed under the GNU General Public
> > + * License. You may obtain a copy of the GNU General Public License
> > + * Version 2 or later at the following locations:
> > + *
> > + * http://www.opensource.org/licenses/gpl-license.html
> > + * http://www.gnu.org/copyleft/gpl.html
> > + */
> > +
> > +#include <linux/interrupt.h>
> > +#include <linux/irq.h>
> > +#include <linux/io.h>
> > +#include <linux/platform_device.h>
> > +#include <linux/gpio.h>
> > +#include <linux/smsc911x.h>
> > +
> > +#include <asm/mach-types.h>
> > +#include <asm/mach/arch.h>
> > +#include <asm/mach/time.h>
> > +
> > +#include <mach/hardware.h>
> > +#include <mach/common.h>
> > +#include <mach/iomux-mx51.h>
> > +#include <mach/board-mx51_3ds.h>
> > +#include <mach/imx-uart.h>
> > +
> > +#include "devices.h"
> > +
> > +static void __iomem *brd_io;
> > +
> > +static void expio_ack_irq(u32 irq);
> > +
> > +static struct pad_desc mx51_3ds_pads[] = {
> > + /* UART1 */
> > + MX51_PAD_UART1_RXD__UART1_RXD,
> > + MX51_PAD_UART1_TXD__UART1_TXD,
> > + MX51_PAD_UART1_RTS__UART1_RTS,
> > + MX51_PAD_UART1_CTS__UART1_CTS,
> > +
> > + /* UART2 */
> > + MX51_PAD_UART2_RXD__UART2_RXD,
> > + MX51_PAD_UART2_TXD__UART2_TXD,
> > + MX51_PAD_EIM_D25__UART2_CTS,
> > + MX51_PAD_EIM_D26__UART2_RTS,
> > +
> > + /* UART3 */
> > + MX51_PAD_GPIO_1_22__UART3_RXD,
> > + MX51_PAD_GPIO_1_23__UART3_TXD,
> > + MX51_PAD_EIM_D24__UART3_CTS,
> > + MX51_PAD_EIM_D27__UART3_RTS,
> > +
> > + /* CPLD PARENT IRQ PIN */
> > + MX51_PAD_GPIO_1_6__GPIO1_6,
> > +};
> > +
> > +
> > +#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
> > +static struct resource smsc911x_resources[] = {
> > + {
> > + .start = LAN9217_BASE_ADDR,
> > + .end = LAN9217_BASE_ADDR + 0x100 - 1,
> > + .flags = IORESOURCE_MEM,
> > + } , {
> > + .start = EXPIO_INT_ENET,
> > + .end = EXPIO_INT_ENET,
> > + .flags = IORESOURCE_IRQ,
> > + },
> > +};
> > +
> > +struct smsc911x_platform_config smsc911x_config = {
> > + .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
> > + .flags = SMSC911X_USE_32BIT | SMSC911X_FORCE_INTERNAL_PHY,
> > +};
> > +
> > +static struct platform_device smsc_lan9217_device = {
> > + .name = "smsc911x",
> > + .id = 0,
> > + .dev = {
> > + .platform_data = &smsc911x_config,
> > + },
> > + .num_resources = ARRAY_SIZE(smsc911x_resources),
> > + .resource = smsc911x_resources,
> > +};
>
> You forgot to move this platform_device to devices.c
No, devices.c is the place for the i.MX51 integrated peripherals, not
for externally conntected peripherals.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2010-06-03 13:57 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-03 12:05 [V2 0/3]Add i.MX51 3-stack board support Jason Wang
2010-06-03 12:05 ` [V2 1/3] mxc: Add support for the imx51 3-stack board Jason Wang
2010-06-03 12:05 ` [V2 2/3] mxc/iomux: add GPIO bank offset for iomux v3 platforms Jason Wang
2010-06-03 12:05 ` [V2 3/3] mx51/keypad: add keypad support for i.MX51 platforms Jason Wang
2010-06-05 9:35 ` Alberto Panizzo
2010-06-05 14:13 ` jason
2010-06-06 18:11 ` Alberto Panizzo
2010-06-07 23:22 ` jason
2010-06-03 12:39 ` [V2 1/3] mxc: Add support for the imx51 3-stack board Amit Kucheria
2010-06-03 13:57 ` Sascha Hauer [this message]
2010-06-03 14:35 ` Amit Kucheria
2010-06-03 14:36 ` jason
2010-06-03 14:39 ` jason
2010-06-04 8:53 ` Sascha Hauer
2010-06-04 9:48 ` Alberto Panizzo
2010-06-04 15:22 ` Sascha Hauer
2010-06-04 10:53 ` Amit Kucheria
2010-06-04 14:09 ` [PATCH] mxc: Fix pad names for imx51 Amit Kucheria
2010-06-07 20:41 ` Troy Kisky
2010-06-07 21:04 ` Amit Kucheria
2010-06-07 21:15 ` Troy Kisky
2010-06-08 6:30 ` Sascha Hauer
2010-06-09 13:09 ` Amit Kucheria
2010-06-10 11:49 ` Sascha Hauer
2010-06-10 13:04 ` jason
2010-06-10 13:59 ` Sascha Hauer
2010-06-10 19:24 ` Amit Kucheria
2010-06-04 12:50 ` [V2 1/3] mxc: Add support for the imx51 3-stack board jason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100603135705.GA25357@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).