1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * Copyright (C) 2005 Ivan Kokshaysky 4*4882a593Smuzhiyun * Copyright (C) SAN People 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * Parallel I/O Controller (PIO) - System peripherals registers. 7*4882a593Smuzhiyun */ 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun #ifndef __PINCTRL_AT91_H 10*4882a593Smuzhiyun #define __PINCTRL_AT91_H 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun #define PIO_PER 0x00 /* Enable Register */ 13*4882a593Smuzhiyun #define PIO_PDR 0x04 /* Disable Register */ 14*4882a593Smuzhiyun #define PIO_PSR 0x08 /* Status Register */ 15*4882a593Smuzhiyun #define PIO_OER 0x10 /* Output Enable Register */ 16*4882a593Smuzhiyun #define PIO_ODR 0x14 /* Output Disable Register */ 17*4882a593Smuzhiyun #define PIO_OSR 0x18 /* Output Status Register */ 18*4882a593Smuzhiyun #define PIO_IFER 0x20 /* Glitch Input Filter Enable */ 19*4882a593Smuzhiyun #define PIO_IFDR 0x24 /* Glitch Input Filter Disable */ 20*4882a593Smuzhiyun #define PIO_IFSR 0x28 /* Glitch Input Filter Status */ 21*4882a593Smuzhiyun #define PIO_SODR 0x30 /* Set Output Data Register */ 22*4882a593Smuzhiyun #define PIO_CODR 0x34 /* Clear Output Data Register */ 23*4882a593Smuzhiyun #define PIO_ODSR 0x38 /* Output Data Status Register */ 24*4882a593Smuzhiyun #define PIO_PDSR 0x3c /* Pin Data Status Register */ 25*4882a593Smuzhiyun #define PIO_IER 0x40 /* Interrupt Enable Register */ 26*4882a593Smuzhiyun #define PIO_IDR 0x44 /* Interrupt Disable Register */ 27*4882a593Smuzhiyun #define PIO_IMR 0x48 /* Interrupt Mask Register */ 28*4882a593Smuzhiyun #define PIO_ISR 0x4c /* Interrupt Status Register */ 29*4882a593Smuzhiyun #define PIO_MDER 0x50 /* Multi-driver Enable Register */ 30*4882a593Smuzhiyun #define PIO_MDDR 0x54 /* Multi-driver Disable Register */ 31*4882a593Smuzhiyun #define PIO_MDSR 0x58 /* Multi-driver Status Register */ 32*4882a593Smuzhiyun #define PIO_PUDR 0x60 /* Pull-up Disable Register */ 33*4882a593Smuzhiyun #define PIO_PUER 0x64 /* Pull-up Enable Register */ 34*4882a593Smuzhiyun #define PIO_PUSR 0x68 /* Pull-up Status Register */ 35*4882a593Smuzhiyun #define PIO_ASR 0x70 /* Peripheral A Select Register */ 36*4882a593Smuzhiyun #define PIO_ABCDSR1 0x70 /* Peripheral ABCD Select Register 1 [some sam9 only] */ 37*4882a593Smuzhiyun #define PIO_BSR 0x74 /* Peripheral B Select Register */ 38*4882a593Smuzhiyun #define PIO_ABCDSR2 0x74 /* Peripheral ABCD Select Register 2 [some sam9 only] */ 39*4882a593Smuzhiyun #define PIO_ABSR 0x78 /* AB Status Register */ 40*4882a593Smuzhiyun #define PIO_IFSCDR 0x80 /* Input Filter Slow Clock Disable Register */ 41*4882a593Smuzhiyun #define PIO_IFSCER 0x84 /* Input Filter Slow Clock Enable Register */ 42*4882a593Smuzhiyun #define PIO_IFSCSR 0x88 /* Input Filter Slow Clock Status Register */ 43*4882a593Smuzhiyun #define PIO_SCDR 0x8c /* Slow Clock Divider Debouncing Register */ 44*4882a593Smuzhiyun #define PIO_SCDR_DIV (0x3fff << 0) /* Slow Clock Divider Mask */ 45*4882a593Smuzhiyun #define PIO_PPDDR 0x90 /* Pad Pull-down Disable Register */ 46*4882a593Smuzhiyun #define PIO_PPDER 0x94 /* Pad Pull-down Enable Register */ 47*4882a593Smuzhiyun #define PIO_PPDSR 0x98 /* Pad Pull-down Status Register */ 48*4882a593Smuzhiyun #define PIO_OWER 0xa0 /* Output Write Enable Register */ 49*4882a593Smuzhiyun #define PIO_OWDR 0xa4 /* Output Write Disable Register */ 50*4882a593Smuzhiyun #define PIO_OWSR 0xa8 /* Output Write Status Register */ 51*4882a593Smuzhiyun #define PIO_AIMER 0xb0 /* Additional Interrupt Modes Enable Register */ 52*4882a593Smuzhiyun #define PIO_AIMDR 0xb4 /* Additional Interrupt Modes Disable Register */ 53*4882a593Smuzhiyun #define PIO_AIMMR 0xb8 /* Additional Interrupt Modes Mask Register */ 54*4882a593Smuzhiyun #define PIO_ESR 0xc0 /* Edge Select Register */ 55*4882a593Smuzhiyun #define PIO_LSR 0xc4 /* Level Select Register */ 56*4882a593Smuzhiyun #define PIO_ELSR 0xc8 /* Edge/Level Status Register */ 57*4882a593Smuzhiyun #define PIO_FELLSR 0xd0 /* Falling Edge/Low Level Select Register */ 58*4882a593Smuzhiyun #define PIO_REHLSR 0xd4 /* Rising Edge/ High Level Select Register */ 59*4882a593Smuzhiyun #define PIO_FRLHSR 0xd8 /* Fall/Rise - Low/High Status Register */ 60*4882a593Smuzhiyun #define PIO_SCHMITT 0x100 /* Schmitt Trigger Register */ 61*4882a593Smuzhiyun 62*4882a593Smuzhiyun #define SAMA5D3_PIO_DRIVER1 0x118 /*PIO Driver 1 register offset*/ 63*4882a593Smuzhiyun #define SAMA5D3_PIO_DRIVER2 0x11C /*PIO Driver 2 register offset*/ 64*4882a593Smuzhiyun 65*4882a593Smuzhiyun #define AT91SAM9X5_PIO_DRIVER1 0x114 /*PIO Driver 1 register offset*/ 66*4882a593Smuzhiyun #define AT91SAM9X5_PIO_DRIVER2 0x118 /*PIO Driver 2 register offset*/ 67*4882a593Smuzhiyun 68*4882a593Smuzhiyun #define SAM9X60_PIO_SLEWR 0x110 /* PIO Slew Rate Control Register */ 69*4882a593Smuzhiyun #define SAM9X60_PIO_DRIVER1 0x118 /* PIO Driver 1 register offset */ 70*4882a593Smuzhiyun 71*4882a593Smuzhiyun #endif 72