paul@128 | 1 | /* |
paul@128 | 2 | * Clock identifiers for clock and power management. |
paul@128 | 3 | * |
paul@160 | 4 | * Copyright (C) 2021, 2023 Paul Boddie <paul@boddie.org.uk> |
paul@128 | 5 | * |
paul@128 | 6 | * This program is free software; you can redistribute it and/or |
paul@128 | 7 | * modify it under the terms of the GNU General Public License as |
paul@128 | 8 | * published by the Free Software Foundation; either version 2 of |
paul@128 | 9 | * the License, or (at your option) any later version. |
paul@128 | 10 | * |
paul@128 | 11 | * This program is distributed in the hope that it will be useful, |
paul@128 | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
paul@128 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
paul@128 | 14 | * GNU General Public License for more details. |
paul@128 | 15 | * |
paul@128 | 16 | * You should have received a copy of the GNU General Public License |
paul@128 | 17 | * along with this program; if not, write to the Free Software |
paul@128 | 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, |
paul@128 | 19 | * Boston, MA 02110-1301, USA |
paul@128 | 20 | */ |
paul@128 | 21 | |
paul@128 | 22 | #pragma once |
paul@128 | 23 | |
paul@133 | 24 | /* Identifiers for controllable "logical" or "abstract" clocks. Operations |
paul@133 | 25 | involving these clocks may operate on multiple "physical" or "specific" |
paul@133 | 26 | clocks. */ |
paul@133 | 27 | |
paul@128 | 28 | enum Clock_identifiers |
paul@128 | 29 | { |
paul@128 | 30 | Clock_aic_bitclk, |
paul@128 | 31 | Clock_aic_pclk, |
paul@160 | 32 | Clock_can0, |
paul@160 | 33 | Clock_can1, |
paul@160 | 34 | Clock_cdbus, |
paul@128 | 35 | Clock_cim, |
paul@160 | 36 | Clock_ddr, |
paul@128 | 37 | Clock_dma, |
paul@128 | 38 | Clock_emac, |
paul@128 | 39 | Clock_hdmi, |
paul@128 | 40 | Clock_i2c, |
paul@160 | 41 | Clock_i2c0, |
paul@160 | 42 | Clock_i2c1, |
paul@160 | 43 | Clock_i2s, |
paul@160 | 44 | Clock_i2s0_rx, |
paul@160 | 45 | Clock_i2s0_tx, |
paul@128 | 46 | Clock_kbc, |
paul@128 | 47 | Clock_lcd, |
paul@160 | 48 | Clock_lcd_pixel, |
paul@160 | 49 | Clock_mac, |
paul@128 | 50 | Clock_msc, |
paul@160 | 51 | Clock_msc0, |
paul@160 | 52 | Clock_msc1, |
paul@160 | 53 | Clock_pwm, |
paul@160 | 54 | Clock_pwm0, |
paul@128 | 55 | Clock_pwm1, |
paul@128 | 56 | Clock_scc, |
paul@160 | 57 | Clock_sfc, |
paul@128 | 58 | Clock_smb0, |
paul@128 | 59 | Clock_smb1, |
paul@128 | 60 | Clock_smb2, |
paul@128 | 61 | Clock_smb3, |
paul@128 | 62 | Clock_smb4, |
paul@128 | 63 | Clock_ssi, |
paul@128 | 64 | Clock_timer, |
paul@128 | 65 | Clock_uart0, |
paul@128 | 66 | Clock_uart1, |
paul@128 | 67 | Clock_uart2, |
paul@128 | 68 | Clock_uart3, |
paul@128 | 69 | Clock_udc, |
paul@128 | 70 | Clock_uhc, |
paul@128 | 71 | Clock_uprt, |
paul@160 | 72 | Clock_identifier_count, /* not a clock: limit for array definition */ |
paul@160 | 73 | Clock_identifier_any /* not a clock: indicates any clock */ |
paul@133 | 74 | }; |
paul@133 | 75 | |
paul@128 | 76 | // vim: tabstop=2 expandtab shiftwidth=2 |