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
     

13 Oct, 2010

1 commit


06 Jul, 2010

6 commits

  • Resource names appear in human readable output, so when extracting IRQ
    and address resources from a device tree node, use the full node name
    to give proper context in places like /proc/iomem.

    Signed-off-by: Grant Likely
    CC: Michal Simek
    CC: Stephen Rothwell
    CC: Benjamin Herrenschmidt
    CC: microblaze-uclinux@itee.uq.edu.au
    CC: linuxppc-dev@ozlabs.org

    Grant Likely
     
  • Certain Apple machines don't use the ranges property correctly, but the
    workaround should not be applied on other architectures. This patch
    disables the workaround for non-powerpc architectures.

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

    Grant Likely
     
  • Fix some endian issues in the OF address translation code.

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

    Grant Likely
     
  • 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