01 Nov, 2011

1 commit


21 Dec, 2008

1 commit


29 May, 2008

2 commits

  • With the recent DCR code rework, we get a compiler warning about
    find_dcr_parent being defined but not used. This fixes it by only defining
    the function if CONFIG_PPC_DCR_MMIO is set.

    Signed-off-by: Josh Boyer

    Josh Boyer
     
  • Previously, DCR support was configured at compile time to either use
    MMIO or native dcr instructions. Although this works for most
    platforms, it fails on FPGA platforms:

    1) Systems may include more than one DCR bus.
    2) Systems may be native DCR capable and still use memory mapped DCR interface.

    This patch provides runtime support based on the device trees for the
    case where CONFIG_PPC_DCR_MMIO and CONFIG_PPC_DCR_NATIVE are both
    selected. Previously, this was a poorly defined configuration, which
    happened to provide NATIVE support. The runtime selection is made
    based on the dcr-controller having a 'dcr-access-method' attribute
    in the device tree. If only one of the above options is selected,
    then the code uses #defines to select only the used code in order to
    avoid introducing overhead in existing usage.

    Signed-off-by: Stephen Neuendorffer
    Signed-off-by: Josh Boyer

    Stephen Neuendorffer
     

07 Feb, 2008

1 commit


16 Oct, 2007

1 commit

  • With the base stored in dcr_host_t, there's no need for callers to pass
    the dcr_n into dcr_unmap(). In fact this removes the possibility of them
    passing the incorrect value, which would then be iounmap()'ed.

    Signed-off-by: Michael Ellerman
    Signed-off-by: Jeff Garzik

    Michael Ellerman
     

03 Oct, 2007

1 commit

  • In its current form, dcr_map() doesn't remember the base address you passed
    it, which means you need to store it somewhere else. Rather than adding the
    base to another struct it seems simpler to store it in the dcr_host_t.

    Signed-off-by: Michael Ellerman
    Acked-by: Benjamin Herrenschmidt
    Signed-off-by: Paul Mackerras

    Michael Ellerman
     

17 Aug, 2007

1 commit

  • In order to compile drivers as modules that uses some of the
    DCR functions, we need to export the symbols. Example, EMAC
    driver and other drivers that are under development use these
    functions.

    Signed-off-by: Murali Iyer
    Acked-by: Arnd Bergmann
    Signed-off-by: Paul Mackerras

    Murali Iyer
     

13 Apr, 2007

1 commit


29 Mar, 2007

1 commit


04 Dec, 2006

1 commit

  • This patch adds new dcr_map/dcr_read/dcr_write accessors for DCRs that
    can be used by drivers to transparently address either native DCRs or
    memory mapped DCRs. The implementation for memory mapped DCRs is done
    after the binding being currently worked on for SLOF and the Axon
    chipset. This patch enables it for the cell native platform

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Paul Mackerras

    Benjamin Herrenschmidt