Home | History | Annotate | Line # | Download | only in ic
      1  1.1  jakllsch /* $NetBSD: pl061reg.h,v 1.1 2018/06/15 19:52:01 jakllsch Exp $ */
      2  1.1  jakllsch 
      3  1.1  jakllsch /*
      4  1.1  jakllsch  * Copyright (c) 2018 Jonathan A. Kollasch
      5  1.1  jakllsch  * All rights reserved.
      6  1.1  jakllsch  *
      7  1.1  jakllsch  * Redistribution and use in source and binary forms, with or without
      8  1.1  jakllsch  * modification, are permitted provided that the following conditions
      9  1.1  jakllsch  * are met:
     10  1.1  jakllsch  * 1. Redistributions of source code must retain the above copyright
     11  1.1  jakllsch  *    notice, this list of conditions and the following disclaimer.
     12  1.1  jakllsch  * 2. Redistributions in binary form must reproduce the above copyright
     13  1.1  jakllsch  *    notice, this list of conditions and the following disclaimer in the
     14  1.1  jakllsch  *    documentation and/or other materials provided with the distribution.
     15  1.1  jakllsch  *
     16  1.1  jakllsch  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     17  1.1  jakllsch  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     18  1.1  jakllsch  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     19  1.1  jakllsch  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
     20  1.1  jakllsch  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
     21  1.1  jakllsch  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     22  1.1  jakllsch  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
     23  1.1  jakllsch  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
     24  1.1  jakllsch  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
     25  1.1  jakllsch  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
     26  1.1  jakllsch  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     27  1.1  jakllsch  */
     28  1.1  jakllsch 
     29  1.1  jakllsch #ifndef _IC_PL061REG_H
     30  1.1  jakllsch #define _IC_PL061REG_H
     31  1.1  jakllsch 
     32  1.1  jakllsch #define PL061_GPIODATA_REG(m)	(0x000 + (m) * 4)
     33  1.1  jakllsch #define PL061_GPIODIR_REG	0x400
     34  1.1  jakllsch #define PL061_GPIOIS_REG	0x404
     35  1.1  jakllsch #define PL061_GPIOIBE_REG	0x408
     36  1.1  jakllsch #define PL061_GPIOIEV_REG	0x40c
     37  1.1  jakllsch #define PL061_GPIOIE_REG	0x410
     38  1.1  jakllsch #define PL061_GPIORIS_REG	0x414
     39  1.1  jakllsch #define PL061_GPIOMIS_REG	0x418
     40  1.1  jakllsch #define PL061_GPIOIC_REG	0x41c
     41  1.1  jakllsch #define PL061_GPIOAFSEL_REG	0x420
     42  1.1  jakllsch #define PL061_GPIOPeriphID(n)	(0xfe0 + (n) * 4)
     43  1.1  jakllsch #define PL061_GPIOCellID(n)	(0xff0 + (n) * 4)
     44  1.1  jakllsch 
     45  1.1  jakllsch #endif /* _IC_PL061REG_H */
     46