Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2011 The Chromium OS Authors. |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License as |
| 6 | * published by the Free Software Foundation; either version 2 of |
| 7 | * the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
Furquan Shaikh | 2af76f4 | 2014-04-28 16:39:40 -0700 | [diff] [blame] | 13 | */ |
| 14 | |
| 15 | /* Standard clock speeds */ |
| 16 | |
| 17 | /* |
| 18 | * We define some commonly-used clock speeds to avoid error since long |
| 19 | * numbers are hard to read. |
| 20 | * |
| 21 | * The format of the label is |
| 22 | * CLK_x_yU where: |
| 23 | * x is the integer speed |
| 24 | * y is the fractional part which can be omitted if 0 |
| 25 | * U is the units (blank for Hz, K or M for KHz and MHz) |
| 26 | * |
| 27 | * Please order the items by increasing Hz |
| 28 | */ |
| 29 | enum { |
| 30 | CLK_32768 = 32768, |
| 31 | CLK_20M = 20000000, |
| 32 | CLK_24M = 24000000, |
| 33 | CLK_144M = 144000000, |
| 34 | CLK_216M = 216000000, |
| 35 | CLK_300M = 300000000, |
| 36 | }; |