All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leonardo Pereira Santos <lsantos@pd3.com.br>
To: Steven Scholz <steven.scholz@imc-berlin.de>,
	Wolfgang Grandegger <wolfgang.grandegger@bluewin.ch>
Cc: LinuxPPC <linuxppc-embedded@lists.linuxppc.org>,
	Wolfgang Denk <wd@denx.de>
Subject: Re: PCMCIA on TQM8xxL
Date: Thu, 23 Jan 2003 11:55:20 -0200	[thread overview]
Message-ID: <200301231155.20895.lsantos@pd3.com.br> (raw)
In-Reply-To: <3E2FC0F1.41C65F18@imc-berlin.de>



1) Define _IO_BASE and _IO_BASE_SIZE in arch/ppc/platforms/tqm8xxl.h
2) just copy and paste the line of code for the RPX to TQM8xxL section in
arch/ppc/kernel/m8xx_setup.c m8xx_map_io(), as you pointed. If there's no
#ifdef CONFIG_TQM8XXL (or something like that), just create one near the ones
already defined for FADS, RPX, MBX. For example, for my FADS board, its
section looks like this:

#ifdef CONFIG_FADS
	io_block_mapping(BCSR_ADDR, BCSR_ADDR, BCSR_SIZE, _PAGE_IO);
	io_block_mapping(_IO_BASE,_IO_BASE,_IO_BASE_SIZE, _PAGE_IO);
#endif

the first call to io_block_mapping() maps the EPLD's registers, the second the
PCMCIA address space. And that's it.

On Thursday 23 January 2003 08:16, Steven Scholz wrote:
> Wolfgang Grandegger wrote:
> > On 01/23/2003 10:52 AM Steven Scholz wrote:
> > > Hi there,
> > >
> > > this is about PCMCIA on TQM8xxL using DENX ELDK 2.0 with DENX
> > > linuxppc_2_4_devel CVS tree:
> > >
> > > I am confused:
> > >
> > > In order to get pcmcia working on mpc8xx one have to define a proper
> > > _IO_BASE and then ioremap it early enough so the physical address
> > > equals the virtual adress.
> > >
> > > That fair enough, but I just can't find the place where _IO_BASE is
> > > remapped for TQM8xxL.
> > >
> > > It should be done in arch/ppc/kernel/m8xx_setup.c:m8xx_map_io(), but
> > > there's no "#ifdef TQM8xxL" or something !?
> > >
> > > Any ideas, why it should work at all?
> >
> > Check "arch/ppc/platforms/tqm8xx.h", which is somehow include by
> > "include/asm-ppc/io.h".
>
> Thanks for your reply.
>
> I know _IO_BASE is defined in arch/ppc/platforms/tqm8xx.h.
> But IMHO it's never ioremapped like it is done for  RPC Boards in
> arch/ppc/kernel/m8xx_setup.c:m8xx_map_io():
>
> #if defined(CONFIG_RPXLITE) || defined(CONFIG_RPXCLASSIC)
>         io_block_mapping(RPX_CSR_ADDR, RPX_CSR_ADDR, RPX_CSR_SIZE,
> _PAGE_IO); #if !defined(CONFIG_PCI)
>         io_block_mapping(_IO_BASE,_IO_BASE,_IO_BASE_SIZE, _PAGE_IO);
> #endif
> #endif
>
> That's what I don't understand!
>
> My HW is similar to TQM8xx and I have to add something like
> #if defined(CONFIG_MYBOARD)
>         io_block_mapping(_IO_BASE,_IO_BASE,_IO_BASE_SIZE, _PAGE_IO);
> #endif
> to get PCMCIA working...
>
> Steven
>

- --
This is Linux country.
On a quiet night, you can hear Windows reboot.

Leonardo Pereira Santos
Engenheiro de Projetos
PD3 Tecnologia
av. Pará 330/202
(51) 3337 1237

Today Fortune tells us:
Of ______\b\b\b\b\b\bcourse it's the murder weapon.  Who would frame someone with a
fake?


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

       reply	other threads:[~2003-01-23 13:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3E2FBB5E.E16D577E@imc-berlin.de>
     [not found] ` <3E2FBF48.6040200@bluewin.ch>
     [not found]   ` <3E2FC0F1.41C65F18@imc-berlin.de>
2003-01-23 13:55     ` Leonardo Pereira Santos [this message]
     [not found]       ` <3E2FF5F6.B0F5CE15@imc-berlin.de>
2003-01-23 14:32         ` PCMCIA on TQM8xxL Wolfgang Grandegger

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=200301231155.20895.lsantos@pd3.com.br \
    --to=lsantos@pd3.com.br \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=steven.scholz@imc-berlin.de \
    --cc=wd@denx.de \
    --cc=wolfgang.grandegger@bluewin.ch \
    /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.