• David Brownell's avatar
    davinci: dm365 gpio irq support · 7a36071e
    David Brownell authored
    Support DM365 GPIOs ... primarily by handling non-banked GPIO IRQs:
    
     - Flag DM365 chips as using non-banked GPIO interrupts, using a
       new soc_info field.
    
     - Replace the gpio_to_irq() mapping logic.  This now uses some
       runtime infrastructure, keyed off that new soc_info field,
       which doesn't handle irq_to_gpio().
    
     - Provide a new irq_chip ... GPIO IRQs handled directly by AINTC
       still need edge triggering managed by the GPIO controller.
    
    DM365 chips no longer falsely report 104 GPIO IRQs as they boot.
    
    Intelligence about IRQ muxing is missing, so for the moment this
    only exposes the first eight DM365 GPIOs, which are never muxed.
    The next eight are muxed, half with Ethernet (which uses most of
    those pins anyway).
    
    Tested on DM355 (10 unbanked IRQs _or_ 104 banked ones) and also
    on DM365 (16 unbanked ones, only 8 made available).
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
    7a36071e
common.h 2.14 KB