Deleted Added
full compact
ar933xreg.h (249123) ar933xreg.h (256482)
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 *
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * $FreeBSD: head/sys/mips/atheros/ar933xreg.h 249123 2013-04-05 01:35:59Z adrian $
26 * $FreeBSD: head/sys/mips/atheros/ar933xreg.h 256482 2013-10-14 23:57:12Z adrian $
27 */
28
29#ifndef __AR93XX_REG_H__
30#define __AR93XX_REG_H__
31
32#define REV_ID_MAJOR_AR9330 0x0110
33#define REV_ID_MAJOR_AR9331 0x1110
34
35#define AR933X_REV_ID_REVISION_MASK 0x3
36
37#define AR933X_GPIO_COUNT 30
38
39#define AR933X_UART_BASE (AR71XX_APB_BASE + 0x00020000)
40#define AR933X_UART_SIZE 0x14
27 */
28
29#ifndef __AR93XX_REG_H__
30#define __AR93XX_REG_H__
31
32#define REV_ID_MAJOR_AR9330 0x0110
33#define REV_ID_MAJOR_AR9331 0x1110
34
35#define AR933X_REV_ID_REVISION_MASK 0x3
36
37#define AR933X_GPIO_COUNT 30
38
39#define AR933X_UART_BASE (AR71XX_APB_BASE + 0x00020000)
40#define AR933X_UART_SIZE 0x14
41
42#define AR933X_GMAC_BASE (AR71XX_APB_BASE + 0x00070000)
43#define AR933X_GMAC_SIZE 0x04
44
45#define AR933X_GMAC_REG_ETH_CFG (AR933X_GMAC_BASE + 0x00)
46
47#define AR933X_ETH_CFG_RGMII_GE0 (1 << 0)
48#define AR933X_ETH_CFG_MII_GE0 (1 << 1)
49#define AR933X_ETH_CFG_GMII_GE0 (1 << 2)
50#define AR933X_ETH_CFG_MII_GE0_MASTER (1 << 3)
51#define AR933X_ETH_CFG_MII_GE0_SLAVE (1 << 4)
52#define AR933X_ETH_CFG_MII_GE0_ERR_EN (1 << 5)
53#define AR933X_ETH_CFG_SW_PHY_SWAP (1 << 7)
54#define AR933X_ETH_CFG_SW_PHY_ADDR_SWAP (1 << 8)
55#define AR933X_ETH_CFG_RMII_GE0 (1 << 9)
56#define AR933X_ETH_CFG_RMII_GE0_SPD_10 0
57#define AR933X_ETH_CFG_RMII_GE0_SPD_100 (1 << 10)
58
41#define AR933X_WMAC_BASE (AR71XX_APB_BASE + 0x00100000)
42#define AR933X_WMAC_SIZE 0x20000
43#define AR933X_EHCI_BASE 0x1b000000
44#define AR933X_EHCI_SIZE 0x1000
45
46#define AR933X_DDR_REG_FLUSH_GE0 (AR71XX_APB_BASE + 0x7c)
47#define AR933X_DDR_REG_FLUSH_GE1 (AR71XX_APB_BASE + 0x80)
48#define AR933X_DDR_REG_FLUSH_USB (AR71XX_APB_BASE + 0x84)

--- 34 unchanged lines hidden ---
59#define AR933X_WMAC_BASE (AR71XX_APB_BASE + 0x00100000)
60#define AR933X_WMAC_SIZE 0x20000
61#define AR933X_EHCI_BASE 0x1b000000
62#define AR933X_EHCI_SIZE 0x1000
63
64#define AR933X_DDR_REG_FLUSH_GE0 (AR71XX_APB_BASE + 0x7c)
65#define AR933X_DDR_REG_FLUSH_GE1 (AR71XX_APB_BASE + 0x80)
66#define AR933X_DDR_REG_FLUSH_USB (AR71XX_APB_BASE + 0x84)

--- 34 unchanged lines hidden ---