kirkwood.c (209131) | kirkwood.c (238873) |
---|---|
1/*- 2 * Copyright (C) 2008 MARVELL INTERNATIONAL LTD. 3 * All rights reserved. 4 * 5 * Developed by Semihalf. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 16 unchanged lines hidden (view full) --- 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (C) 2008 MARVELL INTERNATIONAL LTD. 3 * All rights reserved. 4 * 5 * Developed by Semihalf. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 16 unchanged lines hidden (view full) --- 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/arm/mv/kirkwood/kirkwood.c 209131 2010-06-13 13:28:53Z raj $"); | 33__FBSDID("$FreeBSD: head/sys/arm/mv/kirkwood/kirkwood.c 238873 2012-07-28 21:56:24Z hrs $"); |
34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/bus.h> 38 39#include <machine/bus.h> 40 41#include <arm/mv/mvreg.h> --- 27 unchanged lines hidden (view full) --- 69 * On Kirkwood TCLK is not configurable and depends on silicon 70 * revision: 71 * - A0 and A1 have TCLK hardcoded to 200 MHz. 72 * - Z0 and others have TCLK hardcoded to 166 MHz. 73 */ 74 soc_id(&dev, &rev); 75 if (dev == MV_DEV_88F6281 && (rev == 2 || rev == 3)) 76 return (TCLK_200MHZ); | 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/bus.h> 38 39#include <machine/bus.h> 40 41#include <arm/mv/mvreg.h> --- 27 unchanged lines hidden (view full) --- 69 * On Kirkwood TCLK is not configurable and depends on silicon 70 * revision: 71 * - A0 and A1 have TCLK hardcoded to 200 MHz. 72 * - Z0 and others have TCLK hardcoded to 166 MHz. 73 */ 74 soc_id(&dev, &rev); 75 if (dev == MV_DEV_88F6281 && (rev == 2 || rev == 3)) 76 return (TCLK_200MHZ); |
77 if (dev == MV_DEV_88F6282) 78 return (TCLK_200MHZ); |
|
77 78 return (TCLK_166MHZ); 79} | 79 80 return (TCLK_166MHZ); 81} |