paul@128 | 1 | /* |
paul@128 | 2 | * Clock identifiers for clock and power management. |
paul@128 | 3 | * |
paul@128 | 4 | * Copyright (C) 2021 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@128 | 32 | Clock_cim, |
paul@128 | 33 | Clock_dma, |
paul@128 | 34 | Clock_emac, |
paul@128 | 35 | Clock_hdmi, |
paul@128 | 36 | Clock_i2c, |
paul@128 | 37 | Clock_kbc, |
paul@128 | 38 | Clock_lcd, |
paul@128 | 39 | Clock_msc, |
paul@128 | 40 | Clock_pmw0, |
paul@128 | 41 | Clock_pwm1, |
paul@128 | 42 | Clock_scc, |
paul@128 | 43 | Clock_smb0, |
paul@128 | 44 | Clock_smb1, |
paul@128 | 45 | Clock_smb2, |
paul@128 | 46 | Clock_smb3, |
paul@128 | 47 | Clock_smb4, |
paul@128 | 48 | Clock_ssi, |
paul@128 | 49 | Clock_timer, |
paul@128 | 50 | Clock_uart0, |
paul@128 | 51 | Clock_uart1, |
paul@128 | 52 | Clock_uart2, |
paul@128 | 53 | Clock_uart3, |
paul@128 | 54 | Clock_udc, |
paul@128 | 55 | Clock_uhc, |
paul@128 | 56 | Clock_uprt, |
paul@128 | 57 | }; |
paul@128 | 58 | |
paul@133 | 59 | /* Identifiers for clocks whose frequencies can be adjusted or inspected. */ |
paul@133 | 60 | |
paul@133 | 61 | enum Clock_frequency_identifiers |
paul@133 | 62 | { |
paul@133 | 63 | Clock_frequency_lcd, |
paul@133 | 64 | Clock_frequency_lcd_pixel, |
paul@133 | 65 | Clock_frequency_hdmi, |
paul@133 | 66 | }; |
paul@133 | 67 | |
paul@128 | 68 | // vim: tabstop=2 expandtab shiftwidth=2 |