lkml.org 
[lkml]   [2016]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 15/17] sh: SH-INTC helper files
    Date
    Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
    ---
    arch/sh/boot/dts/include/dt-bindings | 1 +
    include/dt-bindings/interrupt-controller/sh_intc.h | 2 ++
    2 files changed, 3 insertions(+)
    create mode 120000 arch/sh/boot/dts/include/dt-bindings
    create mode 100644 include/dt-bindings/interrupt-controller/sh_intc.h

    diff --git a/arch/sh/boot/dts/include/dt-bindings b/arch/sh/boot/dts/include/dt-bindings
    new file mode 120000
    index 0000000..08c00e4
    --- /dev/null
    +++ b/arch/sh/boot/dts/include/dt-bindings
    @@ -0,0 +1 @@
    +../../../../../include/dt-bindings
    \ No newline at end of file
    diff --git a/include/dt-bindings/interrupt-controller/sh_intc.h b/include/dt-bindings/interrupt-controller/sh_intc.h
    new file mode 100644
    index 0000000..8c9dcdc
    --- /dev/null
    +++ b/include/dt-bindings/interrupt-controller/sh_intc.h
    @@ -0,0 +1,2 @@
    +#define evt2irq(evt) (((evt) >> 5) - 16)
    +#define irq2evt(irq) (((irq) + 16) << 5)
    --
    2.7.0
    \
     
     \ /
      Last update: 2016-06-12 09:21    [W:4.040 / U:0.304 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site