All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Mundt <lethal@linux-sh.org>
To: linux-sh@vger.kernel.org
Subject: Re: kernel (sometimes) boot
Date: Mon, 28 Jul 2008 09:45:27 +0000	[thread overview]
Message-ID: <20080728094526.GB32151@linux-sh.org> (raw)
In-Reply-To: <488D864C.30808@spesonline.com>

On Mon, Jul 28, 2008 at 11:30:21AM +0200, Manuel Lauss wrote:
> On Mon, Jul 28, 2008 at 10:41:48AM +0200, Luca Santini wrote:
> > . loading smc91c96 driver fails at probe()
> 
> Check MMIO area (chip is at 0x02000000 - 0x0200001f according to the
> ESDOK7760 manual available from renesas website if you didn't change any of
> the DIP switches on the board), and correct IRQ (9 if I interpret the
> schematics correctly)
> 
> Also, you need to edit drivers/net/smc91x.h and add an entry for your board
> to the jungle of ifdefs in there.
> I.e. like this:
> 
This isn't necessary anymore, you are able to specificy everything you
need through the platform data these days (this is true for smc91x as
well as smc911x). So you can reduce the following:

> ---- 8< ----
> [...]
> #elif defined(CONFIG_SH_EDOSK7760)
> 
> #define SMC_CAN_USE_8BIT        0
> #define SMC_CAN_USE_16BIT       1
> #define SMC_CAN_USE_32BIT       0
> #define SMC_NOWAIT              1
> 
> #define SMC_IO_SHIFT            0
> 
> #define SMC_inw(a, r)           inw((unsigned long)((a) + (r)))
> #define SMC_outw(v, a, r)       outw(v, (unsigned long)((a) + (r)))
> #define SMC_insw(a, r, p, l)    insw( (unsigned long)((a) + (r)), p, l)
> #define SMC_outsw(a, r, p, l)   outsw((unsigned long)((a) + (r)), p, l)
> 
> #define RPC_LSA_DEFAULT         RPC_LED_TX_RX
> #define RPC_LSB_DEFAULT         RPC_LED_100_10
> 
> #define SMC_IRQ_FLAGS           (0)
> 
> #define set_irq_type(irq, type) do { } while (0)
> 
> #elif defined(....
> 
> ---- 8< ----
> 
to:

static struct smc91x_platdata smc91x_info = {
	.flags = SMC91X_USE_16BIT,
};

And then pass that in under the platform device. We already do that today
for migor, se7722, etc.

  parent reply	other threads:[~2008-07-28  9:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-28  8:41 kernel (sometimes) boot Luca Santini
2008-07-28  9:30 ` Manuel Lauss
2008-07-28  9:45 ` Paul Mundt [this message]
2008-07-28 14:38 ` Luca Santini
2008-07-28 16:39 ` Manuel Lauss
2008-07-29 10:11 ` Luca Santini
2008-07-29 10:30 ` Paul Mundt

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=20080728094526.GB32151@linux-sh.org \
    --to=lethal@linux-sh.org \
    --cc=linux-sh@vger.kernel.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.