Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Konstantin Porotchkin | aed8315 | 2016-12-08 12:22:29 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2016 Marvell International Ltd. |
Konstantin Porotchkin | aed8315 | 2016-12-08 12:22:29 +0200 | [diff] [blame] | 4 | * https://spdx.org/licenses |
| 5 | */ |
| 6 | |
| 7 | #ifndef _SOC_INFO_H_ |
| 8 | #define _SOC_INFO_H_ |
| 9 | |
| 10 | /* Pin Ctrl driver definitions */ |
| 11 | #define BITS_PER_PIN 4 |
| 12 | #define PIN_FUNC_MASK ((1 << BITS_PER_PIN) - 1) |
| 13 | #define PIN_REG_SHIFT 3 |
| 14 | #define PIN_FIELD_MASK ((1 << PIN_REG_SHIFT) - 1) |
| 15 | |
| 16 | #endif /* _SOC_INFO_H_ */ |