04 Oct, 2010

2 commits

  • The gpiolib debugfs entry takes a hammer approach and iterates over all
    of the potential GPIOs, regardless of their type. The SH PFC code on the
    other hand contains a variable mismash of input/output/function types
    spread out sparsely, leading to situations where the debug code can
    trigger an out of range enum for the type. Since we already have an error
    path for out of range enums, we can just hand that up to the higher level
    instead of the current BUG() behaviour.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • Presently the pinmux code is a one-way thing, but there's nothing
    preventing an unregistration if no one has grabbed any of the pins.
    This will permit us to save a bit of memory on systems that require pin
    demux for certain peripherals in the case where registration of those
    peripherals fails, or they are otherwise not attached to the system.

    Signed-off-by: Paul Mundt

    Paul Mundt
     

20 Jan, 2010

1 commit

  • This patch updates the PFC code with some clarifying
    comments together with a functional change. The change
    allows function type of GPIO to select any type of enum
    in their MARK lists. Without this patch only function
    type of enums are allowed in MARK lists.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     

09 Dec, 2009

1 commit


30 Nov, 2009

3 commits

  • For some reason this was using pr_info() nested under an ifdef DEBUG.
    While this is appealing in that it circumvents the effort necessary to
    change ones loglevel, it's not terribly practical. So, convert it over
    to pr_debug().

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • Now that the PFC code is exposed for other architectures, use the common
    __raw_xxx() routines instead of the ctrl_xxx() ones. This will be needed
    for ARM-based SH-Mobiles amongst others.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • This file breaks out the SuperH PFC code from
    arch/sh/kernel/gpio.c + arch/sh/include/asm/gpio.h
    to drivers/sh/pfc.c + include/linux/sh_pfc.h.

    Similar to the INTC stuff. The non-SuperH specific
    file location makes it possible to share the code
    between multiple architectures.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm