24 Dec, 2010

1 commit

  • This patch changes u32 to __be32 for all "ranges", "prop" and "addr" and
    such. Those variables are pointing to the device tree which contains
    integers in big endian format.

    Most functions are doing it right because of_read_number() is doing the
    right thing for them. of_bus_isa_get_flags(), of_bus_pci_get_flags() and
    of_bus_isa_map() were accessing the data directly and were doing it wrong.

    Signed-off-by: Sebastian Andrzej Siewior
    Acked-by: Benjamin Herrenschmidt
    Signed-off-by: Grant Likely

    Sebastian Andrzej Siewior
     

01 Aug, 2010

1 commit

  • This patch moves the declaration of of_get_address(), of_get_pci_address(),
    and of_pci_address_to_resource() out of arch code and into the common
    linux/of_address header file.

    This patch also fixes some of the asm/prom.h ordering issues. It still
    includes some header files that it ideally shouldn't be, but at least the
    ordering is consistent now so that of_* overrides work.

    Signed-off-by: Grant Likely

    Grant Likely
     

06 Jul, 2010

3 commits

  • 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
    Acked-by: Benjamin Herrenschmidt
    CC: Michal Simek
    CC: Wolfram Sang
    CC: Stephen Rothwell

    Grant Likely
     
  • Merge common code between PowerPC and Microblaze. This patch also
    moves the prototype of pci_address_to_pio() out of pci-bridge.h and
    into prom.h because the only user of pci_address_to_pio() is
    of_address_to_resource().

    Signed-off-by: Grant Likely
    Acked-by: Benjamin Herrenschmidt
    CC: Michal Simek
    CC: Stephen Rothwell

    Grant Likely
     
  • Merge common code between Microblaze and PowerPC. This patch creates
    new of_address.h and address.c files to containing address translation
    and mapping routines. First routine to be moved it of_iomap()

    Signed-off-by: Grant Likely
    Acked-by: Benjamin Herrenschmidt
    CC: Michal Simek
    CC: Stephen Rothwell

    Grant Likely