Changeset 10871
- Timestamp:
- 11/11/08 18:43:02 (5 years ago)
- Location:
- src/linux/ar531x/linux-2.6.23/arch/mips/atheros/ar5315
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/linux/ar531x/linux-2.6.23/arch/mips/atheros/ar5315/Makefile
r8169 r10871 9 9 # 10 10 11 obj-y := board.o irq.o 11 obj-y := board.o irq.o -
src/linux/ar531x/linux-2.6.23/arch/mips/atheros/ar5315/board.c
r9404 r10871 27 27 #include <asm/irq.h> 28 28 #include <asm/io.h> 29 #include " ../ar531x.h"29 #include "ar531x.h" 30 30 31 31 static int is_5315 = 0; … … 196 196 bcfg = (struct ar531x_boarddata *) board_config; 197 197 198 #if 0199 {200 /* Detect the hardware based on the device ID */201 u32 devid = sysRegRead(AR5315_SREV) & AR5315_REV_MAJ >> AR5315_REV_MAJ_S;202 switch(devid) {203 case 0x9:204 mips_machtype = MACH_ATHEROS_AR2317;205 break;206 /* FIXME: how can we detect AR2316? */207 case 0x8:208 default:209 mips_machtype = MACH_ATHEROS_AR2315;210 break;211 }212 }213 #endif214 198 215 199 config = (struct ar531x_config *) kzalloc(sizeof(struct ar531x_config), GFP_KERNEL); … … 343 327 add_memory_region(0, memsize, BOOT_MEM_RAM); 344 328 345 /* Initialize it to AR2315 for now. Real detection will be done 346 * in ar5315_init_devices() */ 347 mips_machtype = MACH_ATHEROS_AR2315; 329 /* Detect the hardware based on the device ID */ 330 devid = sysRegRead(AR5315_SREV) & AR5315_REV_CHIP; 331 switch(devid) { 332 case 0x90: 333 case 0x91: 334 mips_machtype = MACH_ATHEROS_AR2317; 335 break; 336 default: 337 mips_machtype = MACH_ATHEROS_AR2315; 338 break; 339 } 348 340 } 349 341 -
src/linux/ar531x/linux-2.6.23/arch/mips/atheros/ar5315/irq.c
r8224 r10871 24 24 #include <asm/irq_cpu.h> 25 25 #include <asm/io.h> 26 #include " ../ar531x.h"26 #include "ar531x.h" 27 27 28 28 static u32 gpiointmask = 0, gpiointval = 0;
Note: See TracChangeset
for help on using the changeset viewer.
