ar724x_chip.c (228450) | ar724x_chip.c (233081) |
---|---|
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 228450 2011-12-13 05:13:51Z adrian $"); | 28__FBSDID("$FreeBSD: head/sys/mips/atheros/ar724x_chip.c 233081 2012-03-17 07:25:23Z 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> --- 81 unchanged lines hidden (view full) --- 118{ 119 uint32_t reg; 120 121 reg = ATH_READ_REG(AR724X_RESET_REG_RESET_MODULE); 122 return ((reg & mask) == mask); 123} 124 125static 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> --- 81 unchanged lines hidden (view full) --- 118{ 119 uint32_t reg; 120 121 reg = ATH_READ_REG(AR724X_RESET_REG_RESET_MODULE); 122 return ((reg & mask) == mask); 123} 124 125static void |
126ar724x_chip_set_mii_speed(uint32_t unit, uint32_t speed) 127{ 128 /* XXX TODO */ 129 return; 130} 131 132static void |
|
126ar724x_chip_set_pll_ge(int unit, int speed) 127{ 128 129 switch (unit) { 130 case 0: 131 /* XXX TODO */ 132 break; 133 case 1: --- 81 unchanged lines hidden (view full) --- 215 216struct ar71xx_cpu_def ar724x_chip_def = { 217 &ar724x_chip_detect_mem_size, 218 &ar724x_chip_detect_sys_frequency, 219 &ar724x_chip_device_stop, 220 &ar724x_chip_device_start, 221 &ar724x_chip_device_stopped, 222 &ar724x_chip_set_pll_ge, | 133ar724x_chip_set_pll_ge(int unit, int speed) 134{ 135 136 switch (unit) { 137 case 0: 138 /* XXX TODO */ 139 break; 140 case 1: --- 81 unchanged lines hidden (view full) --- 222 223struct ar71xx_cpu_def ar724x_chip_def = { 224 &ar724x_chip_detect_mem_size, 225 &ar724x_chip_detect_sys_frequency, 226 &ar724x_chip_device_stop, 227 &ar724x_chip_device_start, 228 &ar724x_chip_device_stopped, 229 &ar724x_chip_set_pll_ge, |
230 &ar724x_chip_set_mii_speed, |
|
223 &ar724x_chip_ddr_flush_ge, 224 &ar724x_chip_get_eth_pll, 225 &ar724x_chip_ddr_flush_ip2, 226 &ar724x_chip_init_usb_peripheral 227}; | 231 &ar724x_chip_ddr_flush_ge, 232 &ar724x_chip_get_eth_pll, 233 &ar724x_chip_ddr_flush_ip2, 234 &ar724x_chip_init_usb_peripheral 235}; |