Deleted Added
full compact
ar933x_chip.c (248809) ar933x_chip.c (249123)
1/*-
2 * Copyright (c) 2012 Adrian Chadd <adrian@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2012 Adrian Chadd <adrian@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/mips/atheros/ar933x_chip.c 248809 2013-03-28 05:43:03Z adrian $");
28__FBSDID("$FreeBSD: head/sys/mips/atheros/ar933x_chip.c 249123 2013-04-05 01:35:59Z adrian $");
29
30#include "opt_ddb.h"
31
32#include <sys/param.h>
33#include <sys/conf.h>
34#include <sys/kernel.h>
35#include <sys/systm.h>
36#include <sys/bus.h>

--- 158 unchanged lines hidden (view full) ---

195{
196
197 ar71xx_ddr_flush(AR933X_DDR_REG_FLUSH_WMAC);
198}
199
200static uint32_t
201ar933x_chip_get_eth_pll(unsigned int mac, int speed)
202{
29
30#include "opt_ddb.h"
31
32#include <sys/param.h>
33#include <sys/conf.h>
34#include <sys/kernel.h>
35#include <sys/systm.h>
36#include <sys/bus.h>

--- 158 unchanged lines hidden (view full) ---

195{
196
197 ar71xx_ddr_flush(AR933X_DDR_REG_FLUSH_WMAC);
198}
199
200static uint32_t
201ar933x_chip_get_eth_pll(unsigned int mac, int speed)
202{
203 uint32_t pll;
203
204
204 return (0);
205 switch (speed) {
206 case 10:
207 pll = AR933X_PLL_VAL_10;
208 break;
209 case 100:
210 pll = AR933X_PLL_VAL_100;
211 break;
212 case 1000:
213 pll = AR933X_PLL_VAL_1000;
214 break;
215 default:
216 printf("%s%d: invalid speed %d\n", __func__, mac, speed);
217 pll = 0;
218 }
219 return (pll);
205}
206
207static void
208ar933x_chip_init_usb_peripheral(void)
209{
210#if 0
211 switch (ar71xx_soc) {
212 case AR71XX_SOC_AR7240:

--- 50 unchanged lines hidden ---
220}
221
222static void
223ar933x_chip_init_usb_peripheral(void)
224{
225#if 0
226 switch (ar71xx_soc) {
227 case AR71XX_SOC_AR7240:

--- 50 unchanged lines hidden ---