ARM: mvebu: fix DT def. of PCIe units for mv78230 and mv78260
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ARM: mvebu: second PCIe unit of Armada XP mv78230 is only x1 capable | +0 | 2 replies | |
| 1/2 | ARM: mvebu: second PCIe unit of Armada XP mv78230 is only x1 capable | +0 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] ARM: mvebu: fix DT def. of PCIe units for mv78230 and mv78260
Jason,
On Wed, Nov 06, 2013 at 11:37:24AM -0700, Jason Gunthorpe wrote:
...
Quoted 9 lines
This PCI stuff would be 100% more readable with some macros ..
#define
PCI_REG_BDF(bus,device,function)(....)#define PCI_MEM_BAR_BDF(bus,device,function,bar) \ (0x82000000 | PCI_REG_BDF(bus,device,function) + bar*XX) 0)So that:
reg = <PCI_REG_BDF(0,1,0)0 0>
assigned-addresses = <PCI_MEM_BAR_BDF(0,1,0,0)0x4000000x2000>
Do I smell a patch brewing? :)
Arnaud, would you like to take a crack at it?
thx,
Jason.