linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* test - please ignore
@ 2006-08-22 23:27 Benjamin Herrenschmidt
  0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Herrenschmidt @ 2006-08-22 23:27 UTC (permalink / raw)
  To: linuxppc-dev list

Mail with accents: èéêëä

Now, let's see if the CRLF's, one is here ->
have been corrupted.

Ben.

^ permalink raw reply	[flat|nested] 2+ messages in thread
* Re: Writing to CPLD mapped to EBC Port of AMCC440EP
@ 2008-07-30  0:02 Josh Boyer
  2008-07-30 22:29 ` test - please ignore Victor Gallardo
  0 siblings, 1 reply; 2+ messages in thread
From: Josh Boyer @ 2008-07-30  0:02 UTC (permalink / raw)
  To: Henry Bausley; +Cc: linuxppc-embedded

On Mon, 28 Jul 2008 16:40:35 -0700
"Henry Bausley" <hbausley@deltatau.com> wrote:

> 
> I am attempting to write to a CPLD mapped to the EBC port of a AMCC 440EP.  When I attempt to write using an unsigned variable
> ie. unsigned *pbase = (unsigned char *)ioremap64(0x8F000000,0x1000000);
> I get a kernel access of bad area, sig: 11 fault.  However, if I change to an unsigned char ie. unsigned char *pbase = (unsigned char *)ioremap64(0x8F000000,
> 0x1000000); The system doesn't crash.  I need to write using an unsigned.  Does any one have any ideas what I am doing wrong?

The documentation I have for the Bamboo board says the EPLD is at
address 0x80002000 and is only 8 bytes in size.  Similarly, the
Yosemite board CPLD is at 0x80002000 and is only 16 bytes in size.  Why
you are ioremapping 16MiB at 0x8F000000 I have no idea.

Also, the individual registers of the EPLD/CPLD on both boards are only
8 bits, so an unsigned char seems appropriate.  If you have a custom
board that does something totally different from how the eval boards
are set up, then I'm not sure many people will be able to help you
without documentation for that board.

josh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-30 22:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-22 23:27 test - please ignore Benjamin Herrenschmidt
  -- strict thread matches above, loose matches on Subject: below --
2008-07-30  0:02 Writing to CPLD mapped to EBC Port of AMCC440EP Josh Boyer
2008-07-30 22:29 ` test - please ignore Victor Gallardo

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).