mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
port atheros to 2.6.24 (untested), but do not use the new kernel by default yet
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10335 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
#ifndef __AR531X_H
|
||||
#define __AR531X_H
|
||||
|
||||
#include <linux/version.h>
|
||||
#include <asm/cpu-info.h>
|
||||
#include <ar531x_platform.h>
|
||||
#include "ar5312/ar5312.h"
|
||||
#include "ar5315/ar5315.h"
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
|
||||
extern void (*board_time_init)(void);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* C access to CLZ instruction
|
||||
|
||||
@@ -180,6 +180,7 @@ const char *get_system_type(void)
|
||||
return "Atheros (unknown)";
|
||||
}
|
||||
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24))
|
||||
void __init plat_timer_setup(struct irqaction *irq)
|
||||
{
|
||||
unsigned int count;
|
||||
@@ -191,6 +192,7 @@ void __init plat_timer_setup(struct irqaction *irq)
|
||||
count = read_c0_count();
|
||||
write_c0_compare(count + 1000);
|
||||
}
|
||||
#endif
|
||||
|
||||
asmlinkage void plat_irq_dispatch(void)
|
||||
{
|
||||
@@ -198,6 +200,13 @@ asmlinkage void plat_irq_dispatch(void)
|
||||
DO_AR5315(ar5315_irq_dispatch();)
|
||||
}
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
|
||||
void (*board_time_init)(void);
|
||||
void __init plat_time_init(void) {
|
||||
board_time_init();
|
||||
}
|
||||
#endif
|
||||
|
||||
void __init arch_init_irq(void)
|
||||
{
|
||||
clear_c0_status(ST0_IM);
|
||||
|
||||
@@ -29,7 +29,6 @@ void __init prom_init(void)
|
||||
{
|
||||
char **argv;
|
||||
|
||||
mips_machgroup = MACH_GROUP_ATHEROS;
|
||||
mips_machtype = -1;
|
||||
|
||||
DO_AR5312(ar5312_prom_init();)
|
||||
|
||||
Reference in New Issue
Block a user