]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
powerpc/p5040ds: add per pci endpoint liodn offset list
authorLaurentiu Tudor <Laurentiu.Tudor@freescale.com>
Fri, 5 Oct 2012 09:48:54 +0000 (09:48 +0000)
committerAndy Fleming <afleming@freescale.com>
Mon, 22 Oct 2012 19:31:13 +0000 (14:31 -0500)
commit71cfcef6499a9e2a552cbd0403fae497cc017093
treeb0b0141ae501c88f944660bfc876bdebe9d00510
parent11860d888cdc2be5da7b8738a067b84cd76e71c0
powerpc/p5040ds: add per pci endpoint liodn offset list

Add a new device tree property named "fsl,liodn-offset-list"
holding a list of per pci endpoint permitted liodn offsets.
This property is useful in virtualization scenarios
that implement per pci endpoint partitioning.
The final liodn of a partitioned pci endpoint is
calculated by the hardware, by adding these offsets
to pci controller's base liodn, stored in the
"fsl,liodn" property of its node.
The liodn offsets are interleaved to get better cache
utilization. As an example, given 3 pci controllers,
the following liodns are generated for the pci endpoints:
    pci0: 193 256 259 262 265 268 271 274 277
    pci1: 194 257 260 263 266 269 272 275 278
    pci2: 195 258 261 264 267 270 273 276 279

Signed-off-by: Laurentiu Tudor <Laurentiu.Tudor@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
arch/powerpc/cpu/mpc85xx/liodn.c