Re: Setting up registers on PXA270?
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Tue, 29 Apr 2008 10:41:26 -0700
Then all you can do is try to adjust the functionality (alternate function
register and direction, etc.), when your driver loads. Choosing not to have
the source for the BSP was a bad decision.
Paul T.
"Steve Conner" <connermcsteve@xxxxxxxxxxxxxx> wrote in message
news:282cb8c2-dc6b-4648-8b1c-28bc571554a2@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Paul, thanks for the reply, even though I'm not sure I understood
it :-(
I don't believe I own the source code to the BSP. It was developed by
a third party who charge a wad extra for the source. They gave us
stuff that we can build customized OS images from, but I don't know if
I can change the actual code. My driver currently resides as a
subproject in a Platform Builder OS Design project.
I don't use the GPIO as such, but the chip select line I need to use
is an alternate function of a GPIO pin. So I have to reprogram a few
GPIO registers to change the direction and function of this pin. That
only needs done once at startup.
Today I managed to get my driver to actually build with a call to
MmMapIoSpace() in it, which was a start, I suppose. Maybe tomorrow I
can run it and watch it crash without explanation ;-)
steve
On Apr 29, 4:48 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
no instrument no spam DOT com> wrote:
Then that's a characteristics of your Platform/BSP. That's where the
code
to configure the memory region where the DSP will be mapped should
appear.
I'd probably do it in the bootloader myself, but that's not mandatory.
You
could do it in or from a call made in OEMInit() in your platform code.
If you are *also* using GPIO to interface to this hardware, the
initialization of the direction and initial state of those pins should,
to
my way of thinking, also be set up in the same place. Since all of this
stuff is completely specific to your hardware design, you'd never use the
driver anywhere else, but I prefer to have those things set in a central
location where you can document the connection between the schematic for
the
hardware and what you're setting up the processor to do.
.
- References:
- Setting up registers on PXA270?
- From: Steve Conner
- RE: Setting up registers on PXA270?
- From: FoolBlah
- Re: Setting up registers on PXA270?
- From: Steve Conner
- Re: Setting up registers on PXA270?
- From: Paul G. Tobey [eMVP]
- Re: Setting up registers on PXA270?
- From: Steve Conner
- Setting up registers on PXA270?
- Prev by Date: Re: Setting up registers on PXA270?
- Next by Date: Re: Can't link nk.lib and coredll.lib in kern.exe
- Previous by thread: Re: Setting up registers on PXA270?
- Next by thread: Re: Setting up registers on PXA270?
- Index(es):
Relevant Pages
|