David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ |
| 2 | /* |
| 3 | * Copyright (c) 2019 BayLibre, SAS |
| 4 | * Author: Neil Armstrong <narmstrong@baylibre.com> |
| 5 | */ |
| 6 | |
| 7 | #ifndef __G12A_AOCLKC_H |
| 8 | #define __G12A_AOCLKC_H |
| 9 | |
| 10 | /* |
| 11 | * CLKID index values |
| 12 | * |
| 13 | * These indices are entirely contrived and do not map onto the hardware. |
| 14 | * It has now been decided to expose everything by default in the DT header: |
| 15 | * include/dt-bindings/clock/g12a-aoclkc.h. Only the clocks ids we don't want |
| 16 | * to expose, such as the internal muxes and dividers of composite clocks, |
| 17 | * will remain defined here. |
| 18 | */ |
| 19 | #define CLKID_AO_SAR_ADC_DIV 17 |
| 20 | #define CLKID_AO_32K_PRE 20 |
| 21 | #define CLKID_AO_32K_DIV 21 |
| 22 | #define CLKID_AO_32K_SEL 22 |
| 23 | #define CLKID_AO_CEC_PRE 24 |
| 24 | #define CLKID_AO_CEC_DIV 25 |
| 25 | #define CLKID_AO_CEC_SEL 26 |
| 26 | |
| 27 | #define NR_CLKS 29 |
| 28 | |
| 29 | #include <dt-bindings/clock/g12a-aoclkc.h> |
| 30 | #include <dt-bindings/reset/g12a-aoclkc.h> |
| 31 | |
| 32 | #endif /* __G12A_AOCLKC_H */ |