board-urquell.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) | board-urquell.c (7912825d8b755e6a5b9839eab910f451b0271aba) |
---|---|
1/* 2 * Renesas Technology Corp. SH7786 Urquell Support. 3 * 4 * Copyright (C) 2008 Kuninori Morimoto <morimoto.kuninori@renesas.com> 5 * Copyright (C) 2009, 2010 Paul Mundt 6 * 7 * Based on board-sh7785lcr.c 8 * Copyright (C) 2008 Yoshihiro Shimoda --- 176 unchanged lines hidden (view full) --- 185 /* 186 * Only handle the EXTAL case, anyone interfacing a crystal 187 * resonator will need to provide their own input clock. 188 */ 189 if (test_mode_pin(MODE_PIN9)) 190 return -EINVAL; 191 192 clk = clk_get(NULL, "extal"); | 1/* 2 * Renesas Technology Corp. SH7786 Urquell Support. 3 * 4 * Copyright (C) 2008 Kuninori Morimoto <morimoto.kuninori@renesas.com> 5 * Copyright (C) 2009, 2010 Paul Mundt 6 * 7 * Based on board-sh7785lcr.c 8 * Copyright (C) 2008 Yoshihiro Shimoda --- 176 unchanged lines hidden (view full) --- 185 /* 186 * Only handle the EXTAL case, anyone interfacing a crystal 187 * resonator will need to provide their own input clock. 188 */ 189 if (test_mode_pin(MODE_PIN9)) 190 return -EINVAL; 191 192 clk = clk_get(NULL, "extal"); |
193 if (!clk || IS_ERR(clk)) | 193 if (IS_ERR(clk)) |
194 return PTR_ERR(clk); 195 ret = clk_set_rate(clk, 33333333); 196 clk_put(clk); 197 198 return ret; 199} 200 201/* Initialize the board */ --- 19 unchanged lines hidden --- | 194 return PTR_ERR(clk); 195 ret = clk_set_rate(clk, 33333333); 196 clk_put(clk); 197 198 return ret; 199} 200 201/* Initialize the board */ --- 19 unchanged lines hidden --- |