diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-02-16 09:23:15 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-02-16 09:23:15 +0000 |
commit | b7e5e78ae6fd8a08cb01a7a7c8f23f297459db91 (patch) | |
tree | a876d1a91d12fc5c15d05d7ec65dbf21430bcacc /target/linux/atheros-2.6/files/drivers/net/ar2313/platform.h | |
parent | c55df2a7ed31000b9e3b52b32cf7079f1f5f8cec (diff) | |
download | master-187ad058-b7e5e78ae6fd8a08cb01a7a7c8f23f297459db91.tar.gz master-187ad058-b7e5e78ae6fd8a08cb01a7a7c8f23f297459db91.tar.bz2 master-187ad058-b7e5e78ae6fd8a08cb01a7a7c8f23f297459db91.zip |
major cleanup of the ar531x code, improved hardware detection and support for multiple ethernet interfaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6307 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros-2.6/files/drivers/net/ar2313/platform.h')
-rw-r--r-- | target/linux/atheros-2.6/files/drivers/net/ar2313/platform.h | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/target/linux/atheros-2.6/files/drivers/net/ar2313/platform.h b/target/linux/atheros-2.6/files/drivers/net/ar2313/platform.h index 67d8f5c08c..8e1c565bbd 100644 --- a/target/linux/atheros-2.6/files/drivers/net/ar2313/platform.h +++ b/target/linux/atheros-2.6/files/drivers/net/ar2313/platform.h @@ -17,43 +17,6 @@ #ifndef PLATFORM_H #define PLATFORM_H -#define BIT(x) (1 << (x)) - -#define RESET_BASE 0xBC003020 -#define RESET_VALUE 0x00000001 - -/******************************************************************** - * Device controller - ********************************************************************/ -typedef struct { - volatile unsigned int flash0; -} DEVICE; - -#define device (*((volatile DEVICE *) DEV_CTL_BASE)) - -// DDRC register -#define DEV_WP (1<<26) - -/******************************************************************** - * DDR controller - ********************************************************************/ -typedef struct { - volatile unsigned int ddrc0; - volatile unsigned int ddrc1; - volatile unsigned int ddrrefresh; -} DDR; - -#define ddr (*((volatile DDR *) DDR_BASE)) - -// DDRC register -#define DDRC_CS(i) ((i&0x3)<<0) -#define DDRC_WE (1<<2) - -/******************************************************************** - * Ethernet interfaces - ********************************************************************/ -#define ETHERNET_BASE 0xB8200000 - // // New Combo structure for Both Eth0 AND eth1 // @@ -84,27 +47,9 @@ typedef struct { volatile unsigned int reset_control; /* 0x20 */ } INTERRUPT; -#define interrupt (*((volatile INTERRUPT *) INTERRUPT_BASE)) - -#define INTERRUPT_MISC_TIMER BIT(0) -#define INTERRUPT_MISC_AHBPROC BIT(1) -#define INTERRUPT_MISC_AHBDMA BIT(2) -#define INTERRUPT_MISC_GPIO BIT(3) -#define INTERRUPT_MISC_UART BIT(4) -#define INTERRUPT_MISC_UARTDMA BIT(5) -#define INTERRUPT_MISC_WATCHDOG BIT(6) -#define INTERRUPT_MISC_LOCAL BIT(7) - -#define INTERRUPT_GLOBAL_ETH BIT(2) -#define INTERRUPT_GLOBAL_WLAN BIT(3) -#define INTERRUPT_GLOBAL_MISC BIT(4) -#define INTERRUPT_GLOBAL_ITIMER BIT(5) - /******************************************************************** * DMA controller ********************************************************************/ -#define DMA_BASE 0xB8201000 - typedef struct { volatile unsigned int bus_mode; /* 0x00 (CSR0) */ volatile unsigned int xmt_poll; /* 0x04 (CSR1) */ @@ -120,9 +65,4 @@ typedef struct { volatile unsigned int cur_rx_buf_addr; /* 0x50 (CSR21) */ } DMA; -#define dma (*((volatile DMA *) DMA_BASE)) - -// macro to convert from virtual to physical address -#define phys_addr(x) (x & 0x1fffffff) - #endif /* PLATFORM_H */ |