Skip to content

Commit dbbdee9

Browse files
committed
of/address: Merge all of the bus translation code
Microblaze and PowerPC share a large chunk of code for translating OF device tree data into usable addresses. Differences between the two consist of cosmetic differences, and the addition of dma-ranges support code to powerpc but not microblaze. This patch moves the powerpc version into common code and applies many of the cosmetic (non-functional) changes from the microblaze version. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> CC: Michal Simek <monstr@monstr.eu> CC: Wolfram Sang <w.sang@pengutronix.de> CC: Stephen Rothwell <sfr@canb.auug.org.au>
1 parent 1f5bef3 commit dbbdee9

6 files changed

Lines changed: 515 additions & 1018 deletions

File tree

‎arch/microblaze/include/asm/prom.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ extern void pci_create_OF_bus_map(void);
5252
* OF address retreival & translation
5353
*/
5454

55-
/* Translate an OF address block into a CPU physical address
56-
*/
57-
extern u64 of_translate_address(struct device_node *np, const u32 *addr);
58-
5955
/* Extract an address from a device, returns the region size and
6056
* the address space flags too. The PCI version uses a BAR number
6157
* instead of an absolute index

0 commit comments

Comments
 (0)