[PATCH 2/2] Export Physical IO base address

Jake Moilanen moilanen at austin.ibm.com
Tue Nov 1 08:45:40 EST 2005


On Sat, 29 Oct 2005 08:54:47 +1000
Benjamin Herrenschmidt <benh at kernel.crashing.org> wrote:

> On Fri, 2005-10-28 at 15:08 -0500, Jake Moilanen wrote:
> > This patch exports the physical IO base address so drivers can pick it
> > up when using addresses from the device-tree.
> 
> Why ? What is your driver exactly trying to do ?

TPM needs to get the base address for IO as an offset into IO space.

This base physical address is stored in the reg property in the
device-node.  

To calculate the offset, need to do: TPM_base_phy_addr - io_base_phys.

Thus the need to export this address.

Jake



More information about the Linuxppc64-dev mailing list