Re: Setting up registers on PXA270?
- From: porkingson@xxxxxxxxx
- Date: Tue, 29 Apr 2008 18:04:35 -0700 (PDT)
XXX_Init, I suppose I need to access the registers by virtual
addresses, but I'm not sure how to do this. Is it ok to use
MmMapIoSpace() on them? I don't know if they are already controlled by
some other piece of code in the BSP that could cause conflicts.
Using MmMapIoSpace:
- It's OK to map the same physical memory to the virtual memory of
different processes at the same time, if that's what you're worried
about. You won't get a conflict because the GPIO driver has the same
memory mapped, but you WILL get a conflict if the GPIO driver happens
to be toggling your pin. Said conflict will be expressed in the form
of your device not working. You should check the documentation for
your BSP or call the people you bought it from and make sure that GPIO
is available
- Make sure your driver is running in kernel space and not user
space. User mode drivers can't access physical memory directly, as I
understand it
The only alternative I can think of is to modify RedBoot so it does
the required setup before CE even loads, but I don't know if this is a
sensible thing to do.
I agree with FoolBlah in that you should set your peripheral up in the
driver
.
- References:
- Setting up registers on PXA270?
- From: Steve Conner
- Setting up registers on PXA270?
- Prev by Date: Re: GetVersionEx - dwBuildNumber how to change
- Next by Date: PXA 270 USB client not function after suspend/resume
- Previous by thread: Re: Setting up registers on PXA270?
- Next by thread: Problem in porting WINCE 5.0 to smdk2410 board.
- Index(es):
Relevant Pages
|
Loading