Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / gpio / pca9554_regs.h
blob602c4a90e0d4d8044e63a420dd4090d08f49a910
1 /*
2 * PCA9554 I/O port registers
4 * Copyright (c) 2023, IBM Corporation.
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8 #ifndef PCA9554_REGS_H
9 #define PCA9554_REGS_H
12 * Bits [0:1] are used to address a specific register.
14 #define PCA9554_INPUT 0 /* read only input register */
15 #define PCA9554_OUTPUT 1 /* read/write pin output state */
16 #define PCA9554_POLARITY 2 /* Set polarity of input register */
17 #define PCA9554_CONFIG 3 /* Set pins as inputs our ouputs */
19 #endif