/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2003 Atheros Communications, Inc., All Rights Reserved. * Copyright (C) 2006 Imre Kaloz <kaloz@openwrt.org> * Copyright (C) 2006 Felix Fietkau <nbd@openwrt.org>
*/
/* Major revision numbers, bits 7..4 of Revision ID register */ #define AR5312_REV_MAJ_AR5312 0x4 #define AR5312_REV_MAJ_AR2313 0x5
/* Minor revision numbers, bits 3..0 of Revision ID register */ #define AR5312_REV_MIN_DUAL 0x0 /* Dual WLAN version */ #define AR5312_REV_MIN_SINGLE 0x1 /* Single WLAN version */
/* * ARM Flash Controller -- 3 flash banks with either x8 or x16 devices
*/ #define AR5312_FLASHCTL0 0x0000 #define AR5312_FLASHCTL1 0x0004 #define AR5312_FLASHCTL2 0x0008
/* AR5312_FLASHCTL register bit field definitions */ #define AR5312_FLASHCTL_IDCY 0x0000000f /* Idle cycle turnaround time */ #define AR5312_FLASHCTL_IDCY_S 0 #define AR5312_FLASHCTL_WST1 0x000003e0 /* Wait state 1 */ #define AR5312_FLASHCTL_WST1_S 5 #define AR5312_FLASHCTL_RBLE 0x00000400 /* Read byte lane enable */ #define AR5312_FLASHCTL_WST2 0x0000f800 /* Wait state 2 */ #define AR5312_FLASHCTL_WST2_S 11 #define AR5312_FLASHCTL_AC 0x00070000 /* Flash addr check (added) */ #define AR5312_FLASHCTL_AC_S 16 #define AR5312_FLASHCTL_AC_128K 0x00000000 #define AR5312_FLASHCTL_AC_256K 0x00010000 #define AR5312_FLASHCTL_AC_512K 0x00020000 #define AR5312_FLASHCTL_AC_1M 0x00030000 #define AR5312_FLASHCTL_AC_2M 0x00040000 #define AR5312_FLASHCTL_AC_4M 0x00050000 #define AR5312_FLASHCTL_AC_8M 0x00060000 #define AR5312_FLASHCTL_AC_RES 0x00070000 /* 16MB is not supported */ #define AR5312_FLASHCTL_E 0x00080000 /* Flash bank enable (added) */ #define AR5312_FLASHCTL_BUSERR 0x01000000 /* Bus transfer error flag */ #define AR5312_FLASHCTL_WPERR 0x02000000 /* Write protect error flag */ #define AR5312_FLASHCTL_WP 0x04000000 /* Write protect */ #define AR5312_FLASHCTL_BM 0x08000000 /* Burst mode */ #define AR5312_FLASHCTL_MW 0x30000000 /* Mem width */ #define AR5312_FLASHCTL_MW8 0x00000000 /* Mem width x8 */ #define AR5312_FLASHCTL_MW16 0x10000000 /* Mem width x16 */ #define AR5312_FLASHCTL_MW32 0x20000000 /* Mem width x32 (not supp) */ #define AR5312_FLASHCTL_ATNR 0x00000000 /* Access == no retry */ #define AR5312_FLASHCTL_ATR 0x80000000 /* Access == retry every */ #define AR5312_FLASHCTL_ATR4 0xc0000000 /* Access == retry every 4 */
/* * ARM SDRAM Controller -- just enough to determine memory size
*/ #define AR5312_MEM_CFG1 0x0004
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.