All of lore.kernel.org
 help / color / mirror / Atom feed
From: u.kleine-koenig@pengutronix.de (Uwe Kleine-König)
To: linux-arm-kernel@lists.infradead.org
Subject: mx35pdk lan911x support
Date: Thu, 14 Oct 2010 15:13:02 +0200	[thread overview]
Message-ID: <20101014131302.GD6747@pengutronix.de> (raw)
In-Reply-To: <AANLkTi=MfssV4a9ynu77BckbOQcc5ngo4Dxw8-=LJdtV@mail.gmail.com>

Hello,

On Thu, Oct 14, 2010 at 09:05:39PM +0800, xiao jiang wrote:
> Hi,
> 2010/10/14 Fabio Estevam <festevam@gmail.com>
> 
> > Hi Xiao Jiang,
> >
> > 2010/10/14 Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>:
> > > Hello Xiao (hoping this is the part of your name corresponding to your
> > > first name),
> > >
> > > On Thu, Oct 14, 2010 at 12:06:25AM -0400, xiao jiang wrote:
> > >> I saw the mach-mx35_3ds.c  are come from you, so  I think you are the
> > right
> > >> person to answer my queston, :).
> > > It was me, who renamed the file and touched it a few times when cleaning
> > > up and reorganising things for the i.MX machines.  Initially it was
> > > Fabio Estevam who brought the machine into mainline.
> >
> > I suggest you to look at MX51 3stack board or MX31 3stack boards, as
> > they have support for LAN9217 controller.
> >
> >
> Uwe,
> I forgot to subscribe the list, now it is ok after done it.:)
> 
> Fabio,
> Thanks for your hint, I can boot the kernel thru lan9217 now, only a few
> lines added.
> 
> diff --git a/arch/arm/mach-mx3/mach-mx35_3ds.c
> b/arch/arm/mach-mx3/mach-mx35_3ds.c
> index 1c30d72..7e30a4e 100644
> --- a/arch/arm/mach-mx3/mach-mx35_3ds.c
> +++ b/arch/arm/mach-mx3/mach-mx35_3ds.c
> @@ -35,6 +35,7 @@
>  #include <mach/hardware.h>
>  #include <mach/common.h>
>  #include <mach/iomux-mx35.h>
> +#include <mach/3ds_debugboard.h>
> 
>  #include "devices-imx35.h"
>  #include "devices.h"
> @@ -86,6 +87,7 @@ static struct fsl_usb2_platform_data usb_pdata = {
>  /*
>   * Board specific initialization.
>   */
> +#define EXPIO_PARENT_INT 65
>  static void __init mxc_board_init(void)
>  {
>         mxc_iomux_v3_setup_multiple_pads(mx35pdk_pads,
> ARRAY_SIZE(mx35pdk_pads));
> @@ -95,6 +97,10 @@ static void __init mxc_board_init(void)
>         imx35_add_imx_uart0(&uart_pdata);
> 
>         mxc_register_device(&mxc_otg_udc_device, &usb_pdata);
> +
> +       if (!mxc_expio_init(MX35_CS5_BASE_ADDR, EXPIO_PARENT_INT))
> +               printk(KERN_WARNING "Init of the debugboard failed, all "
> +                       "devices on the board are unusable.\n");
If you intend this patch to go mainline please use pr_warn instead of
printk(KERN_WARNING ...).

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

  parent reply	other threads:[~2010-10-14 13:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AANLkTi=aTdbj8bjo3i1wRxG03rbh=kUwLTYPvTESLqpT@mail.gmail.com>
2010-10-14  6:30 ` mx35pdk lan911x support Uwe Kleine-König
2010-10-14  8:49   ` Fabio Estevam
2010-10-14  9:26     ` xiao jiang
     [not found]     ` <AANLkTi=MfssV4a9ynu77BckbOQcc5ngo4Dxw8-=LJdtV@mail.gmail.com>
2010-10-14 13:13       ` Uwe Kleine-König [this message]
2010-10-15  7:13         ` xiao jiang

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=20101014131302.GD6747@pengutronix.de \
    --to=u.kleine-koenig@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.