Deleted Added
full compact
qca953x_chip.c (290910) qca953x_chip.c (292247)
1/*-
2 * Copyright (c) 2015 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) 2015 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/qca953x_chip.c 290910 2015-11-16 04:28:00Z adrian $");
28__FBSDID("$FreeBSD: head/sys/mips/atheros/qca953x_chip.c 292247 2015-12-15 04:45:00Z 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>

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

191static void
192qca953x_chip_set_pll_ge(int unit, int speed, uint32_t pll)
193{
194 switch (unit) {
195 case 0:
196 ATH_WRITE_REG(QCA953X_PLL_ETH_XMII_CONTROL_REG, pll);
197 break;
198 case 1:
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>

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

191static void
192qca953x_chip_set_pll_ge(int unit, int speed, uint32_t pll)
193{
194 switch (unit) {
195 case 0:
196 ATH_WRITE_REG(QCA953X_PLL_ETH_XMII_CONTROL_REG, pll);
197 break;
198 case 1:
199 ATH_WRITE_REG(QCA953X_PLL_ETH_SGMII_CONTROL_REG, pll);
199 /* nothing */
200 break;
201 default:
202 printf("%s: invalid PLL set for arge unit: %d\n",
203 __func__, unit);
204 return;
205 }
206}
207

--- 186 unchanged lines hidden ---
200 break;
201 default:
202 printf("%s: invalid PLL set for arge unit: %d\n",
203 __func__, unit);
204 return;
205 }
206}
207

--- 186 unchanged lines hidden ---