Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2000-2002 |
| 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | * |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 5 | * Copyright (C) 2004-2007 Freescale Semiconductor, Inc. |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 6 | * |
| 7 | * See file CREDITS for list of people who contributed to this |
| 8 | * project. |
| 9 | * |
| 10 | * This program is free software; you can redistribute it and/or |
| 11 | * modify it under the terms of the GNU General Public License as |
| 12 | * published by the Free Software Foundation; either version 2 of |
| 13 | * the License, or (at your option) any later version. |
| 14 | * |
| 15 | * This program is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
| 19 | * |
| 20 | * You should have received a copy of the GNU General Public License |
| 21 | * along with this program; if not, write to the Free Software |
| 22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 23 | * MA 02111-1307 USA |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 24 | */ |
| 25 | |
| 26 | #include <common.h> |
| 27 | #include <mpc83xx.h> |
Kim Phillips | 54b2d43 | 2007-04-30 15:26:21 -0500 | [diff] [blame] | 28 | #include <command.h> |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 29 | #include <asm/processor.h> |
| 30 | |
Wolfgang Denk | d87080b | 2006-03-31 18:32:53 +0200 | [diff] [blame] | 31 | DECLARE_GLOBAL_DATA_PTR; |
| 32 | |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 33 | /* ----------------------------------------------------------------- */ |
| 34 | |
| 35 | typedef enum { |
| 36 | _unk, |
| 37 | _off, |
| 38 | _byp, |
| 39 | _x8, |
| 40 | _x4, |
| 41 | _x2, |
| 42 | _x1, |
| 43 | _1x, |
| 44 | _1_5x, |
| 45 | _2x, |
| 46 | _2_5x, |
| 47 | _3x |
| 48 | } mult_t; |
| 49 | |
| 50 | typedef struct { |
| 51 | mult_t core_csb_ratio; |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 52 | mult_t vco_divider; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 53 | } corecnf_t; |
| 54 | |
| 55 | corecnf_t corecnf_tab[] = { |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 56 | {_byp, _byp}, /* 0x00 */ |
| 57 | {_byp, _byp}, /* 0x01 */ |
| 58 | {_byp, _byp}, /* 0x02 */ |
| 59 | {_byp, _byp}, /* 0x03 */ |
| 60 | {_byp, _byp}, /* 0x04 */ |
| 61 | {_byp, _byp}, /* 0x05 */ |
| 62 | {_byp, _byp}, /* 0x06 */ |
| 63 | {_byp, _byp}, /* 0x07 */ |
| 64 | {_1x, _x2}, /* 0x08 */ |
| 65 | {_1x, _x4}, /* 0x09 */ |
| 66 | {_1x, _x8}, /* 0x0A */ |
| 67 | {_1x, _x8}, /* 0x0B */ |
| 68 | {_1_5x, _x2}, /* 0x0C */ |
| 69 | {_1_5x, _x4}, /* 0x0D */ |
| 70 | {_1_5x, _x8}, /* 0x0E */ |
| 71 | {_1_5x, _x8}, /* 0x0F */ |
| 72 | {_2x, _x2}, /* 0x10 */ |
| 73 | {_2x, _x4}, /* 0x11 */ |
| 74 | {_2x, _x8}, /* 0x12 */ |
| 75 | {_2x, _x8}, /* 0x13 */ |
| 76 | {_2_5x, _x2}, /* 0x14 */ |
| 77 | {_2_5x, _x4}, /* 0x15 */ |
| 78 | {_2_5x, _x8}, /* 0x16 */ |
| 79 | {_2_5x, _x8}, /* 0x17 */ |
| 80 | {_3x, _x2}, /* 0x18 */ |
| 81 | {_3x, _x4}, /* 0x19 */ |
| 82 | {_3x, _x8}, /* 0x1A */ |
| 83 | {_3x, _x8}, /* 0x1B */ |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 84 | }; |
| 85 | |
| 86 | /* ----------------------------------------------------------------- */ |
| 87 | |
| 88 | /* |
| 89 | * |
| 90 | */ |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 91 | int get_clocks(void) |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 92 | { |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 93 | volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 94 | u32 pci_sync_in; |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 95 | u8 spmf; |
| 96 | u8 clkin_div; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 97 | u32 sccr; |
| 98 | u32 corecnf_tab_index; |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 99 | u8 corepll; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 100 | u32 lcrr; |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 101 | |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 102 | u32 csb_clk; |
Ilya Yanok | 7c619dd | 2010-06-28 16:44:33 +0400 | [diff] [blame] | 103 | #if defined(CONFIG_MPC8308) || defined(CONFIG_MPC831x) || \ |
| 104 | defined(CONFIG_MPC834x) || defined(CONFIG_MPC837x) |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 105 | u32 tsec1_clk; |
| 106 | u32 tsec2_clk; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 107 | u32 usbdr_clk; |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 108 | #endif |
Peter Tyser | 2c7920a | 2009-05-22 17:23:25 -0500 | [diff] [blame] | 109 | #ifdef CONFIG_MPC834x |
Scott Wood | 7c98e51 | 2007-04-16 14:34:19 -0500 | [diff] [blame] | 110 | u32 usbmph_clk; |
| 111 | #endif |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 112 | u32 core_clk; |
| 113 | u32 i2c1_clk; |
Peter Tyser | 2c7920a | 2009-05-22 17:23:25 -0500 | [diff] [blame] | 114 | #if !defined(CONFIG_MPC832x) |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 115 | u32 i2c2_clk; |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 116 | #endif |
Dave Liu | 555da61 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 117 | #if defined(CONFIG_MPC8315) |
| 118 | u32 tdm_clk; |
| 119 | #endif |
Rini van Zetten | 27ef578 | 2010-04-15 16:03:05 +0200 | [diff] [blame] | 120 | #if defined(CONFIG_FSL_ESDHC) |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 121 | u32 sdhc_clk; |
| 122 | #endif |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 123 | u32 enc_clk; |
| 124 | u32 lbiu_clk; |
| 125 | u32 lclk_clk; |
Kim Phillips | 35cf155 | 2008-03-28 10:18:40 -0500 | [diff] [blame] | 126 | u32 mem_clk; |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 127 | #if defined(CONFIG_MPC8360) |
Kim Phillips | 35cf155 | 2008-03-28 10:18:40 -0500 | [diff] [blame] | 128 | u32 mem_sec_clk; |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 129 | #endif |
Gerlando Falauto | 4b5282d | 2012-10-10 22:13:06 +0000 | [diff] [blame] | 130 | #if defined(CONFIG_QE) |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 131 | u32 qepmf; |
| 132 | u32 qepdf; |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 133 | u32 qe_clk; |
| 134 | u32 brg_clk; |
| 135 | #endif |
Ilya Yanok | 7c619dd | 2010-06-28 16:44:33 +0400 | [diff] [blame] | 136 | #if defined(CONFIG_MPC8308) || defined(CONFIG_MPC831x) || \ |
| 137 | defined(CONFIG_MPC837x) |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 138 | u32 pciexp1_clk; |
| 139 | u32 pciexp2_clk; |
Dave Liu | 555da61 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 140 | #endif |
Peter Tyser | 2c7920a | 2009-05-22 17:23:25 -0500 | [diff] [blame] | 141 | #if defined(CONFIG_MPC837x) || defined(CONFIG_MPC8315) |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 142 | u32 sata_clk; |
| 143 | #endif |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 144 | |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 145 | if ((im->sysconf.immrbar & IMMRBAR_BASE_ADDR) != (u32) im) |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 146 | return -1; |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 147 | |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 148 | clkin_div = ((im->clk.spmr & SPMR_CKID) >> SPMR_CKID_SHIFT); |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 149 | |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 150 | if (im->reset.rcwh & HRCWH_PCI_HOST) { |
| 151 | #if defined(CONFIG_83XX_CLKIN) |
| 152 | pci_sync_in = CONFIG_83XX_CLKIN / (1 + clkin_div); |
| 153 | #else |
| 154 | pci_sync_in = 0xDEADBEEF; |
| 155 | #endif |
| 156 | } else { |
| 157 | #if defined(CONFIG_83XX_PCICLK) |
| 158 | pci_sync_in = CONFIG_83XX_PCICLK; |
| 159 | #else |
| 160 | pci_sync_in = 0xDEADBEEF; |
| 161 | #endif |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 162 | } |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 163 | |
Joakim Tjernlund | 26e5f79 | 2011-01-27 16:30:54 +0100 | [diff] [blame] | 164 | spmf = (im->clk.spmr & SPMR_SPMF) >> SPMR_SPMF_SHIFT; |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 165 | csb_clk = pci_sync_in * (1 + clkin_div) * spmf; |
| 166 | |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 167 | sccr = im->clk.sccr; |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 168 | |
Ilya Yanok | 7c619dd | 2010-06-28 16:44:33 +0400 | [diff] [blame] | 169 | #if defined(CONFIG_MPC8308) || defined(CONFIG_MPC831x) || \ |
| 170 | defined(CONFIG_MPC834x) || defined(CONFIG_MPC837x) |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 171 | switch ((sccr & SCCR_TSEC1CM) >> SCCR_TSEC1CM_SHIFT) { |
| 172 | case 0: |
| 173 | tsec1_clk = 0; |
| 174 | break; |
| 175 | case 1: |
| 176 | tsec1_clk = csb_clk; |
| 177 | break; |
| 178 | case 2: |
| 179 | tsec1_clk = csb_clk / 2; |
| 180 | break; |
| 181 | case 3: |
| 182 | tsec1_clk = csb_clk / 3; |
| 183 | break; |
| 184 | default: |
| 185 | /* unkown SCCR_TSEC1CM value */ |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 186 | return -2; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 187 | } |
Gerlando Falauto | 8afad91 | 2012-10-10 22:13:07 +0000 | [diff] [blame^] | 188 | #endif |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 189 | |
Gerlando Falauto | 8afad91 | 2012-10-10 22:13:07 +0000 | [diff] [blame^] | 190 | #if defined(CONFIG_MPC830x) || defined(CONFIG_MPC831x) || \ |
| 191 | defined(CONFIG_MPC834x) || defined(CONFIG_MPC837x) |
Scott Wood | 7c98e51 | 2007-04-16 14:34:19 -0500 | [diff] [blame] | 192 | switch ((sccr & SCCR_USBDRCM) >> SCCR_USBDRCM_SHIFT) { |
| 193 | case 0: |
| 194 | usbdr_clk = 0; |
| 195 | break; |
| 196 | case 1: |
| 197 | usbdr_clk = csb_clk; |
| 198 | break; |
| 199 | case 2: |
| 200 | usbdr_clk = csb_clk / 2; |
| 201 | break; |
| 202 | case 3: |
| 203 | usbdr_clk = csb_clk / 3; |
| 204 | break; |
| 205 | default: |
| 206 | /* unkown SCCR_USBDRCM value */ |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 207 | return -3; |
Scott Wood | 7c98e51 | 2007-04-16 14:34:19 -0500 | [diff] [blame] | 208 | } |
| 209 | #endif |
| 210 | |
Ilya Yanok | 7c619dd | 2010-06-28 16:44:33 +0400 | [diff] [blame] | 211 | #if defined(CONFIG_MPC8308) || defined(CONFIG_MPC8315) || \ |
| 212 | defined(CONFIG_MPC834x) || defined(CONFIG_MPC837x) |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 213 | switch ((sccr & SCCR_TSEC2CM) >> SCCR_TSEC2CM_SHIFT) { |
| 214 | case 0: |
| 215 | tsec2_clk = 0; |
| 216 | break; |
| 217 | case 1: |
| 218 | tsec2_clk = csb_clk; |
| 219 | break; |
| 220 | case 2: |
| 221 | tsec2_clk = csb_clk / 2; |
| 222 | break; |
| 223 | case 3: |
| 224 | tsec2_clk = csb_clk / 3; |
| 225 | break; |
| 226 | default: |
| 227 | /* unkown SCCR_TSEC2CM value */ |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 228 | return -4; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 229 | } |
Dave Liu | 555da61 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 230 | #elif defined(CONFIG_MPC8313) |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 231 | tsec2_clk = tsec1_clk; |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 232 | |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 233 | if (!(sccr & SCCR_TSEC1ON)) |
| 234 | tsec1_clk = 0; |
| 235 | if (!(sccr & SCCR_TSEC2ON)) |
| 236 | tsec2_clk = 0; |
| 237 | #endif |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 238 | |
Peter Tyser | 2c7920a | 2009-05-22 17:23:25 -0500 | [diff] [blame] | 239 | #if defined(CONFIG_MPC834x) |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 240 | switch ((sccr & SCCR_USBMPHCM) >> SCCR_USBMPHCM_SHIFT) { |
| 241 | case 0: |
| 242 | usbmph_clk = 0; |
| 243 | break; |
| 244 | case 1: |
| 245 | usbmph_clk = csb_clk; |
| 246 | break; |
| 247 | case 2: |
| 248 | usbmph_clk = csb_clk / 2; |
| 249 | break; |
| 250 | case 3: |
| 251 | usbmph_clk = csb_clk / 3; |
| 252 | break; |
| 253 | default: |
| 254 | /* unkown SCCR_USBMPHCM value */ |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 255 | return -5; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 256 | } |
| 257 | |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 258 | if (usbmph_clk != 0 && usbdr_clk != 0 && usbmph_clk != usbdr_clk) { |
| 259 | /* if USB MPH clock is not disabled and |
| 260 | * USB DR clock is not disabled then |
| 261 | * USB MPH & USB DR must have the same rate |
| 262 | */ |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 263 | return -6; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 264 | } |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 265 | #endif |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 266 | switch ((sccr & SCCR_ENCCM) >> SCCR_ENCCM_SHIFT) { |
| 267 | case 0: |
| 268 | enc_clk = 0; |
| 269 | break; |
| 270 | case 1: |
| 271 | enc_clk = csb_clk; |
| 272 | break; |
| 273 | case 2: |
| 274 | enc_clk = csb_clk / 2; |
| 275 | break; |
| 276 | case 3: |
| 277 | enc_clk = csb_clk / 3; |
| 278 | break; |
| 279 | default: |
| 280 | /* unkown SCCR_ENCCM value */ |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 281 | return -7; |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 282 | } |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 283 | |
Rini van Zetten | 27ef578 | 2010-04-15 16:03:05 +0200 | [diff] [blame] | 284 | #if defined(CONFIG_FSL_ESDHC) |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 285 | switch ((sccr & SCCR_SDHCCM) >> SCCR_SDHCCM_SHIFT) { |
| 286 | case 0: |
| 287 | sdhc_clk = 0; |
| 288 | break; |
| 289 | case 1: |
| 290 | sdhc_clk = csb_clk; |
| 291 | break; |
| 292 | case 2: |
| 293 | sdhc_clk = csb_clk / 2; |
| 294 | break; |
| 295 | case 3: |
| 296 | sdhc_clk = csb_clk / 3; |
| 297 | break; |
| 298 | default: |
| 299 | /* unkown SCCR_SDHCCM value */ |
| 300 | return -8; |
| 301 | } |
| 302 | #endif |
Dave Liu | 555da61 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 303 | #if defined(CONFIG_MPC8315) |
| 304 | switch ((sccr & SCCR_TDMCM) >> SCCR_TDMCM_SHIFT) { |
| 305 | case 0: |
| 306 | tdm_clk = 0; |
| 307 | break; |
| 308 | case 1: |
| 309 | tdm_clk = csb_clk; |
| 310 | break; |
| 311 | case 2: |
| 312 | tdm_clk = csb_clk / 2; |
| 313 | break; |
| 314 | case 3: |
| 315 | tdm_clk = csb_clk / 3; |
| 316 | break; |
| 317 | default: |
| 318 | /* unkown SCCR_TDMCM value */ |
| 319 | return -8; |
| 320 | } |
| 321 | #endif |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 322 | |
Peter Tyser | 2c7920a | 2009-05-22 17:23:25 -0500 | [diff] [blame] | 323 | #if defined(CONFIG_MPC834x) |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 324 | i2c1_clk = tsec2_clk; |
| 325 | #elif defined(CONFIG_MPC8360) |
| 326 | i2c1_clk = csb_clk; |
Peter Tyser | 2c7920a | 2009-05-22 17:23:25 -0500 | [diff] [blame] | 327 | #elif defined(CONFIG_MPC832x) |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 328 | i2c1_clk = enc_clk; |
Ilya Yanok | 7c619dd | 2010-06-28 16:44:33 +0400 | [diff] [blame] | 329 | #elif defined(CONFIG_MPC8308) || defined(CONFIG_MPC831x) |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 330 | i2c1_clk = enc_clk; |
Rini van Zetten | 27ef578 | 2010-04-15 16:03:05 +0200 | [diff] [blame] | 331 | #elif defined(CONFIG_FSL_ESDHC) |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 332 | i2c1_clk = sdhc_clk; |
Andre Schwarz | 1bda162 | 2011-04-14 14:57:40 +0200 | [diff] [blame] | 333 | #elif defined(CONFIG_MPC837x) |
| 334 | i2c1_clk = enc_clk; |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 335 | #endif |
Peter Tyser | 2c7920a | 2009-05-22 17:23:25 -0500 | [diff] [blame] | 336 | #if !defined(CONFIG_MPC832x) |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 337 | i2c2_clk = csb_clk; /* i2c-2 clk is equal to csb clk */ |
| 338 | #endif |
| 339 | |
Ilya Yanok | 7c619dd | 2010-06-28 16:44:33 +0400 | [diff] [blame] | 340 | #if defined(CONFIG_MPC8308) || defined(CONFIG_MPC831x) || \ |
| 341 | defined(CONFIG_MPC837x) |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 342 | switch ((sccr & SCCR_PCIEXP1CM) >> SCCR_PCIEXP1CM_SHIFT) { |
| 343 | case 0: |
| 344 | pciexp1_clk = 0; |
| 345 | break; |
| 346 | case 1: |
| 347 | pciexp1_clk = csb_clk; |
| 348 | break; |
| 349 | case 2: |
| 350 | pciexp1_clk = csb_clk / 2; |
| 351 | break; |
| 352 | case 3: |
| 353 | pciexp1_clk = csb_clk / 3; |
| 354 | break; |
| 355 | default: |
| 356 | /* unkown SCCR_PCIEXP1CM value */ |
| 357 | return -9; |
| 358 | } |
| 359 | |
| 360 | switch ((sccr & SCCR_PCIEXP2CM) >> SCCR_PCIEXP2CM_SHIFT) { |
| 361 | case 0: |
| 362 | pciexp2_clk = 0; |
| 363 | break; |
| 364 | case 1: |
| 365 | pciexp2_clk = csb_clk; |
| 366 | break; |
| 367 | case 2: |
| 368 | pciexp2_clk = csb_clk / 2; |
| 369 | break; |
| 370 | case 3: |
| 371 | pciexp2_clk = csb_clk / 3; |
| 372 | break; |
| 373 | default: |
| 374 | /* unkown SCCR_PCIEXP2CM value */ |
| 375 | return -10; |
| 376 | } |
| 377 | #endif |
| 378 | |
Peter Tyser | 2c7920a | 2009-05-22 17:23:25 -0500 | [diff] [blame] | 379 | #if defined(CONFIG_MPC837x) || defined(CONFIG_MPC8315) |
Dave Liu | a8cb43a | 2008-01-17 18:23:19 +0800 | [diff] [blame] | 380 | switch ((sccr & SCCR_SATA1CM) >> SCCR_SATA1CM_SHIFT) { |
| 381 | case 0: |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 382 | sata_clk = 0; |
| 383 | break; |
Dave Liu | a8cb43a | 2008-01-17 18:23:19 +0800 | [diff] [blame] | 384 | case 1: |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 385 | sata_clk = csb_clk; |
| 386 | break; |
Dave Liu | a8cb43a | 2008-01-17 18:23:19 +0800 | [diff] [blame] | 387 | case 2: |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 388 | sata_clk = csb_clk / 2; |
| 389 | break; |
Dave Liu | a8cb43a | 2008-01-17 18:23:19 +0800 | [diff] [blame] | 390 | case 3: |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 391 | sata_clk = csb_clk / 3; |
| 392 | break; |
| 393 | default: |
Kim Phillips | 9e89647 | 2008-01-16 12:06:16 -0600 | [diff] [blame] | 394 | /* unkown SCCR_SATACM value */ |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 395 | return -11; |
| 396 | } |
| 397 | #endif |
| 398 | |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 399 | lbiu_clk = csb_clk * |
Joakim Tjernlund | 26e5f79 | 2011-01-27 16:30:54 +0100 | [diff] [blame] | 400 | (1 + ((im->clk.spmr & SPMR_LBIUCM) >> SPMR_LBIUCM_SHIFT)); |
Becky Bruce | f51cdaf | 2010-06-17 11:37:20 -0500 | [diff] [blame] | 401 | lcrr = (im->im_lbc.lcrr & LCRR_CLKDIV) >> LCRR_CLKDIV_SHIFT; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 402 | switch (lcrr) { |
| 403 | case 2: |
| 404 | case 4: |
| 405 | case 8: |
| 406 | lclk_clk = lbiu_clk / lcrr; |
| 407 | break; |
| 408 | default: |
| 409 | /* unknown lcrr */ |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 410 | return -12; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 411 | } |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 412 | |
Kim Phillips | 35cf155 | 2008-03-28 10:18:40 -0500 | [diff] [blame] | 413 | mem_clk = csb_clk * |
Joakim Tjernlund | 26e5f79 | 2011-01-27 16:30:54 +0100 | [diff] [blame] | 414 | (1 + ((im->clk.spmr & SPMR_DDRCM) >> SPMR_DDRCM_SHIFT)); |
| 415 | corepll = (im->clk.spmr & SPMR_COREPLL) >> SPMR_COREPLL_SHIFT; |
| 416 | |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 417 | #if defined(CONFIG_MPC8360) |
Kim Phillips | 35cf155 | 2008-03-28 10:18:40 -0500 | [diff] [blame] | 418 | mem_sec_clk = csb_clk * (1 + |
Joakim Tjernlund | 26e5f79 | 2011-01-27 16:30:54 +0100 | [diff] [blame] | 419 | ((im->clk.spmr & SPMR_LBIUCM) >> SPMR_LBIUCM_SHIFT)); |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 420 | #endif |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 421 | |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 422 | corecnf_tab_index = ((corepll & 0x1F) << 2) | ((corepll & 0x60) >> 5); |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 423 | if (corecnf_tab_index > (sizeof(corecnf_tab) / sizeof(corecnf_t))) { |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 424 | /* corecnf_tab_index is too high, possibly worng value */ |
| 425 | return -11; |
| 426 | } |
| 427 | switch (corecnf_tab[corecnf_tab_index].core_csb_ratio) { |
| 428 | case _byp: |
| 429 | case _x1: |
| 430 | case _1x: |
| 431 | core_clk = csb_clk; |
| 432 | break; |
| 433 | case _1_5x: |
| 434 | core_clk = (3 * csb_clk) / 2; |
| 435 | break; |
| 436 | case _2x: |
| 437 | core_clk = 2 * csb_clk; |
| 438 | break; |
| 439 | case _2_5x: |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 440 | core_clk = (5 * csb_clk) / 2; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 441 | break; |
| 442 | case _3x: |
| 443 | core_clk = 3 * csb_clk; |
| 444 | break; |
| 445 | default: |
| 446 | /* unkown core to csb ratio */ |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 447 | return -13; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 448 | } |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 449 | |
Gerlando Falauto | 4b5282d | 2012-10-10 22:13:06 +0000 | [diff] [blame] | 450 | #if defined(CONFIG_QE) |
Joakim Tjernlund | 26e5f79 | 2011-01-27 16:30:54 +0100 | [diff] [blame] | 451 | qepmf = (im->clk.spmr & SPMR_CEPMF) >> SPMR_CEPMF_SHIFT; |
| 452 | qepdf = (im->clk.spmr & SPMR_CEPDF) >> SPMR_CEPDF_SHIFT; |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 453 | qe_clk = (pci_sync_in * qepmf) / (1 + qepdf); |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 454 | brg_clk = qe_clk / 2; |
| 455 | #endif |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 456 | |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 457 | gd->csb_clk = csb_clk; |
Ilya Yanok | 7c619dd | 2010-06-28 16:44:33 +0400 | [diff] [blame] | 458 | #if defined(CONFIG_MPC8308) || defined(CONFIG_MPC831x) || \ |
| 459 | defined(CONFIG_MPC834x) || defined(CONFIG_MPC837x) |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 460 | gd->tsec1_clk = tsec1_clk; |
| 461 | gd->tsec2_clk = tsec2_clk; |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 462 | gd->usbdr_clk = usbdr_clk; |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 463 | #endif |
Peter Tyser | 2c7920a | 2009-05-22 17:23:25 -0500 | [diff] [blame] | 464 | #if defined(CONFIG_MPC834x) |
Scott Wood | 7c98e51 | 2007-04-16 14:34:19 -0500 | [diff] [blame] | 465 | gd->usbmph_clk = usbmph_clk; |
| 466 | #endif |
Dave Liu | 555da61 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 467 | #if defined(CONFIG_MPC8315) |
| 468 | gd->tdm_clk = tdm_clk; |
| 469 | #endif |
Rini van Zetten | 27ef578 | 2010-04-15 16:03:05 +0200 | [diff] [blame] | 470 | #if defined(CONFIG_FSL_ESDHC) |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 471 | gd->sdhc_clk = sdhc_clk; |
| 472 | #endif |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 473 | gd->core_clk = core_clk; |
| 474 | gd->i2c1_clk = i2c1_clk; |
Peter Tyser | 2c7920a | 2009-05-22 17:23:25 -0500 | [diff] [blame] | 475 | #if !defined(CONFIG_MPC832x) |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 476 | gd->i2c2_clk = i2c2_clk; |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 477 | #endif |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 478 | gd->enc_clk = enc_clk; |
| 479 | gd->lbiu_clk = lbiu_clk; |
| 480 | gd->lclk_clk = lclk_clk; |
Kim Phillips | 35cf155 | 2008-03-28 10:18:40 -0500 | [diff] [blame] | 481 | gd->mem_clk = mem_clk; |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 482 | #if defined(CONFIG_MPC8360) |
Kim Phillips | 35cf155 | 2008-03-28 10:18:40 -0500 | [diff] [blame] | 483 | gd->mem_sec_clk = mem_sec_clk; |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 484 | #endif |
Gerlando Falauto | 4b5282d | 2012-10-10 22:13:06 +0000 | [diff] [blame] | 485 | #if defined(CONFIG_QE) |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 486 | gd->qe_clk = qe_clk; |
| 487 | gd->brg_clk = brg_clk; |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 488 | #endif |
Bill Cook | 810cb19 | 2011-05-25 15:51:07 -0400 | [diff] [blame] | 489 | #if defined(CONFIG_MPC8308) || defined(CONFIG_MPC831x) || \ |
| 490 | defined(CONFIG_MPC837x) |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 491 | gd->pciexp1_clk = pciexp1_clk; |
| 492 | gd->pciexp2_clk = pciexp2_clk; |
Dave Liu | 555da61 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 493 | #endif |
Peter Tyser | 2c7920a | 2009-05-22 17:23:25 -0500 | [diff] [blame] | 494 | #if defined(CONFIG_MPC837x) || defined(CONFIG_MPC8315) |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 495 | gd->sata_clk = sata_clk; |
| 496 | #endif |
Kim Phillips | 8f9e0e9 | 2007-08-15 22:30:19 -0500 | [diff] [blame] | 497 | gd->pci_clk = pci_sync_in; |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 498 | gd->cpu_clk = gd->core_clk; |
| 499 | gd->bus_clk = gd->csb_clk; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 500 | return 0; |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 501 | |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 502 | } |
| 503 | |
| 504 | /******************************************** |
| 505 | * get_bus_freq |
| 506 | * return system bus freq in Hz |
| 507 | *********************************************/ |
Kim Phillips | f7fb2e7 | 2006-11-02 19:47:11 -0600 | [diff] [blame] | 508 | ulong get_bus_freq(ulong dummy) |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 509 | { |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 510 | return gd->csb_clk; |
| 511 | } |
| 512 | |
York Sun | d29d17d | 2011-08-26 11:32:44 -0700 | [diff] [blame] | 513 | /******************************************** |
| 514 | * get_ddr_freq |
| 515 | * return ddr bus freq in Hz |
| 516 | *********************************************/ |
| 517 | ulong get_ddr_freq(ulong dummy) |
| 518 | { |
| 519 | return gd->mem_clk; |
| 520 | } |
| 521 | |
Wolfgang Denk | 54841ab | 2010-06-28 22:00:46 +0200 | [diff] [blame] | 522 | int do_clocks (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 523 | { |
Wolfgang Denk | 08ef89e | 2008-10-19 02:35:49 +0200 | [diff] [blame] | 524 | char buf[32]; |
| 525 | |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 526 | printf("Clock configuration:\n"); |
Wolfgang Denk | 08ef89e | 2008-10-19 02:35:49 +0200 | [diff] [blame] | 527 | printf(" Core: %-4s MHz\n", strmhz(buf, gd->core_clk)); |
| 528 | printf(" Coherent System Bus: %-4s MHz\n", strmhz(buf, gd->csb_clk)); |
Gerlando Falauto | 4b5282d | 2012-10-10 22:13:06 +0000 | [diff] [blame] | 529 | #if defined(CONFIG_QE) |
Wolfgang Denk | 08ef89e | 2008-10-19 02:35:49 +0200 | [diff] [blame] | 530 | printf(" QE: %-4s MHz\n", strmhz(buf, gd->qe_clk)); |
| 531 | printf(" BRG: %-4s MHz\n", strmhz(buf, gd->brg_clk)); |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 532 | #endif |
Wolfgang Denk | 08ef89e | 2008-10-19 02:35:49 +0200 | [diff] [blame] | 533 | printf(" Local Bus Controller:%-4s MHz\n", strmhz(buf, gd->lbiu_clk)); |
| 534 | printf(" Local Bus: %-4s MHz\n", strmhz(buf, gd->lclk_clk)); |
| 535 | printf(" DDR: %-4s MHz\n", strmhz(buf, gd->mem_clk)); |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 536 | #if defined(CONFIG_MPC8360) |
Wolfgang Denk | 08ef89e | 2008-10-19 02:35:49 +0200 | [diff] [blame] | 537 | printf(" DDR Secondary: %-4s MHz\n", strmhz(buf, gd->mem_sec_clk)); |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 538 | #endif |
Wolfgang Denk | 08ef89e | 2008-10-19 02:35:49 +0200 | [diff] [blame] | 539 | printf(" SEC: %-4s MHz\n", strmhz(buf, gd->enc_clk)); |
| 540 | printf(" I2C1: %-4s MHz\n", strmhz(buf, gd->i2c1_clk)); |
Peter Tyser | 2c7920a | 2009-05-22 17:23:25 -0500 | [diff] [blame] | 541 | #if !defined(CONFIG_MPC832x) |
Wolfgang Denk | 08ef89e | 2008-10-19 02:35:49 +0200 | [diff] [blame] | 542 | printf(" I2C2: %-4s MHz\n", strmhz(buf, gd->i2c2_clk)); |
Dave Liu | 24c3aca | 2006-12-07 21:13:15 +0800 | [diff] [blame] | 543 | #endif |
Dave Liu | 555da61 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 544 | #if defined(CONFIG_MPC8315) |
Wolfgang Denk | 08ef89e | 2008-10-19 02:35:49 +0200 | [diff] [blame] | 545 | printf(" TDM: %-4s MHz\n", strmhz(buf, gd->tdm_clk)); |
Dave Liu | 555da61 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 546 | #endif |
Rini van Zetten | 27ef578 | 2010-04-15 16:03:05 +0200 | [diff] [blame] | 547 | #if defined(CONFIG_FSL_ESDHC) |
Wolfgang Denk | 08ef89e | 2008-10-19 02:35:49 +0200 | [diff] [blame] | 548 | printf(" SDHC: %-4s MHz\n", strmhz(buf, gd->sdhc_clk)); |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 549 | #endif |
Ilya Yanok | 7c619dd | 2010-06-28 16:44:33 +0400 | [diff] [blame] | 550 | #if defined(CONFIG_MPC8308) || defined(CONFIG_MPC831x) || \ |
| 551 | defined(CONFIG_MPC834x) || defined(CONFIG_MPC837x) |
Wolfgang Denk | 08ef89e | 2008-10-19 02:35:49 +0200 | [diff] [blame] | 552 | printf(" TSEC1: %-4s MHz\n", strmhz(buf, gd->tsec1_clk)); |
| 553 | printf(" TSEC2: %-4s MHz\n", strmhz(buf, gd->tsec2_clk)); |
| 554 | printf(" USB DR: %-4s MHz\n", strmhz(buf, gd->usbdr_clk)); |
Dave Liu | 5f82043 | 2006-11-03 19:33:44 -0600 | [diff] [blame] | 555 | #endif |
Peter Tyser | 2c7920a | 2009-05-22 17:23:25 -0500 | [diff] [blame] | 556 | #if defined(CONFIG_MPC834x) |
Wolfgang Denk | 08ef89e | 2008-10-19 02:35:49 +0200 | [diff] [blame] | 557 | printf(" USB MPH: %-4s MHz\n", strmhz(buf, gd->usbmph_clk)); |
Scott Wood | 7c98e51 | 2007-04-16 14:34:19 -0500 | [diff] [blame] | 558 | #endif |
Bill Cook | 810cb19 | 2011-05-25 15:51:07 -0400 | [diff] [blame] | 559 | #if defined(CONFIG_MPC8308) || defined(CONFIG_MPC831x) || \ |
| 560 | defined(CONFIG_MPC837x) |
Wolfgang Denk | 08ef89e | 2008-10-19 02:35:49 +0200 | [diff] [blame] | 561 | printf(" PCIEXP1: %-4s MHz\n", strmhz(buf, gd->pciexp1_clk)); |
| 562 | printf(" PCIEXP2: %-4s MHz\n", strmhz(buf, gd->pciexp2_clk)); |
Dave Liu | 555da61 | 2007-09-18 12:36:58 +0800 | [diff] [blame] | 563 | #endif |
Peter Tyser | 2c7920a | 2009-05-22 17:23:25 -0500 | [diff] [blame] | 564 | #if defined(CONFIG_MPC837x) || defined(CONFIG_MPC8315) |
Wolfgang Denk | 08ef89e | 2008-10-19 02:35:49 +0200 | [diff] [blame] | 565 | printf(" SATA: %-4s MHz\n", strmhz(buf, gd->sata_clk)); |
Dave Liu | 03051c3 | 2007-09-18 12:36:11 +0800 | [diff] [blame] | 566 | #endif |
Jon Loeliger | de1d0a6 | 2005-08-01 13:20:47 -0500 | [diff] [blame] | 567 | return 0; |
Eran Liberty | f046ccd | 2005-07-28 10:08:46 -0500 | [diff] [blame] | 568 | } |
Kim Phillips | 54b2d43 | 2007-04-30 15:26:21 -0500 | [diff] [blame] | 569 | |
| 570 | U_BOOT_CMD(clocks, 1, 0, do_clocks, |
Peter Tyser | 2fb2604 | 2009-01-27 18:03:12 -0600 | [diff] [blame] | 571 | "print clock configuration", |
Wolfgang Denk | a89c33d | 2009-05-24 17:06:54 +0200 | [diff] [blame] | 572 | " clocks" |
Kim Phillips | 54b2d43 | 2007-04-30 15:26:21 -0500 | [diff] [blame] | 573 | ); |