Setting up registers on PXA270?



Hi all

I'm currently developing a driver that will let a PXA270 running CE6
communicate with a TI floating-point DSP. I've got to the stage where
I have a dummy driver running in a debug build of CE, and I've also
used the peek and poke functions in the RedBoot bootloader to test the
interface with the hardware.

What I'm stuck on is this: Some registers in the PXA270 need changed
from their default values to make the interface work. I can't figure
out where to put the code to do this. If I put it in my driver's
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.

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.

Any thoughts much appreciated,

steve
.



Relevant Pages

  • Re: Quad core CPU detected but shows as single core in 2.6.23.1
    ... pnp: PnP ACPI init ... Generic PHY: Registered new driver ... PCI: Firmware left 0000:00:04.0 e100 interrupts enabled, disabling ... Internal registers self-test: passed. ...
    (Linux-Kernel)
  • 2.6.15-rc5-mm2 does not boot on AMD64 with sata_sil
    ... Using ACPI for IRQ routing ... Uniform CD-ROM driver Revision: 3.20 ... Using ACPI for SMP configuration information Allocating PCI resources starting at e2000000 Checking aperture... ... Real Time Clock Driver v1.12 hw_random: AMD768 system management I/O registers at 0x8000. ...
    (Linux-Kernel)
  • Re: [BUG 2.6.20-rc3-mm1] raid1 mount blocks for ever
    ... Generic PHY: Registered new driver ... SGI XFS with ACLs, security attributes, no debug enabled ... XFS mounting filesystem sdb6 ...
    (Linux-Kernel)
  • Re: [PATCH] Added driver for ISL29003 ambient light sensor
    ... i2c_board_info array of the board support file, ... For now the driver sensibly ignores them ... It's not even necessary to do that - the driver can access all registers ... control registers and hence any caching method has to be very careful ...
    (Linux-Kernel)
  • device driver for the SGI system clock, mmtimer
    ... The driver has been widely used for applications on the Altix platform. ... +static int mmtimer_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg); ... * of the page where the registers are mapped) for the counter in question. ...
    (Linux-Kernel)