[PATCH 1/4] dt-bindings: add ARM GIC
Sascha Hauer
s.hauer at pengutronix.de
Mon Jan 27 03:22:00 EST 2014
On Sat, Jan 25, 2014 at 09:15:55PM +0100, Lucas Stach wrote:
> Signed-off-by: Lucas Stach <dev at lynxeye.de>
Applied, thanks
Sascha
> ---
> include/dt-bindings/interrupt-controller/arm-gic.h | 22 ++++++++++++++++++++++
> 1 file changed, 22 insertions(+)
> create mode 100644 include/dt-bindings/interrupt-controller/arm-gic.h
>
> diff --git a/include/dt-bindings/interrupt-controller/arm-gic.h b/include/dt-bindings/interrupt-controller/arm-gic.h
> new file mode 100644
> index 0000000..1ea1b70
> --- /dev/null
> +++ b/include/dt-bindings/interrupt-controller/arm-gic.h
> @@ -0,0 +1,22 @@
> +/*
> + * This header provides constants for the ARM GIC.
> + */
> +
> +#ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H
> +#define _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H
> +
> +#include <dt-bindings/interrupt-controller/irq.h>
> +
> +/* interrupt specific cell 0 */
> +
> +#define GIC_SPI 0
> +#define GIC_PPI 1
> +
> +/*
> + * Interrupt specifier cell 2.
> + * The flaggs in irq.h are valid, plus those below.
> + */
> +#define GIC_CPU_MASK_RAW(x) ((x) << 8)
> +#define GIC_CPU_MASK_SIMPLE(num) GIC_CPU_MASK_RAW((1 << (num)) - 1)
> +
> +#endif
> --
> 1.8.4.2
>
>
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list