Deleted Added
full compact
ar724x_chip.c (234906) ar724x_chip.c (234907)
1/*-
2 * Copyright (c) 2010 Adrian Chadd
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) 2010 Adrian Chadd
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/ar724x_chip.c 234906 2012-05-02 01:21:57Z adrian $");
28__FBSDID("$FreeBSD: head/sys/mips/atheros/ar724x_chip.c 234907 2012-05-02 04:51:43Z 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>

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

134/*
135 * XXX TODO: set the PLL for arge0 only on AR7242.
136 * The PLL/clock requirements are different.
137 *
138 * Otherwise, it's a NULL function for AR7240, AR7241 and
139 * AR7242 arge1.
140 */
141static void
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>

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

134/*
135 * XXX TODO: set the PLL for arge0 only on AR7242.
136 * The PLL/clock requirements are different.
137 *
138 * Otherwise, it's a NULL function for AR7240, AR7241 and
139 * AR7242 arge1.
140 */
141static void
142ar724x_chip_set_pll_ge(int unit, int speed)
142ar724x_chip_set_pll_ge(int unit, int speed, uint32_t pll)
143{
144
145 switch (unit) {
146 case 0:
147 /* XXX TODO */
148 break;
149 case 1:
150 /* XXX TODO */

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

180
181 ar71xx_ddr_flush(AR724X_DDR_REG_FLUSH_PCIE);
182}
183
184static uint32_t
185ar724x_chip_get_eth_pll(unsigned int mac, int speed)
186{
187
143{
144
145 switch (unit) {
146 case 0:
147 /* XXX TODO */
148 break;
149 case 1:
150 /* XXX TODO */

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

180
181 ar71xx_ddr_flush(AR724X_DDR_REG_FLUSH_PCIE);
182}
183
184static uint32_t
185ar724x_chip_get_eth_pll(unsigned int mac, int speed)
186{
187
188 return 0;
188 return (0);
189}
190
191static void
192ar724x_chip_init_usb_peripheral(void)
193{
194
195 switch (ar71xx_soc) {
196 case AR71XX_SOC_AR7240:

--- 49 unchanged lines hidden ---
189}
190
191static void
192ar724x_chip_init_usb_peripheral(void)
193{
194
195 switch (ar71xx_soc) {
196 case AR71XX_SOC_AR7240:

--- 49 unchanged lines hidden ---