From 36a73de5fb6bbdda57931ef5b4eeff8d2674b603 Mon Sep 17 00:00:00 2001 From: blogic Date: Thu, 13 Dec 2007 20:51:57 +0000 Subject: danube led cleanup git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9733 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../linux/danube/files/include/asm-mips/danube/danube.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'target/linux/danube/files/include/asm-mips') diff --git a/target/linux/danube/files/include/asm-mips/danube/danube.h b/target/linux/danube/files/include/asm-mips/danube/danube.h index 5809fd94c..34feb88ca 100644 --- a/target/linux/danube/files/include/asm-mips/danube/danube.h +++ b/target/linux/danube/files/include/asm-mips/danube/danube.h @@ -304,4 +304,19 @@ #define DANUBE_BIU_WDT_CR_CLKDIV_SET(value) (((( 1 << 2) - 1) & (value)) << 24) #define DANUBE_BIU_WDT_CR_RELOAD_SET(value) (((( 1 << 16) - 1) & (value)) << 0) + +/*------------ LED */ + +#define DANUBE_LED_BASE_ADDR (KSEG1 + 0x1E100BB0) +#define DANUBE_LED_CON0 ((u32*)(DANUBE_LED_BASE_ADDR + 0x0000)) +#define DANUBE_LED_CON1 ((u32*)(DANUBE_LED_BASE_ADDR + 0x0004)) +#define DANUBE_LED_CPU0 ((u32*)(DANUBE_LED_BASE_ADDR + 0x0008)) +#define DANUBE_LED_CPU1 ((u32*)(DANUBE_LED_BASE_ADDR + 0x000C)) +#define DANUBE_LED_AR ((u32*)(DANUBE_LED_BASE_ADDR + 0x0010)) + + +#define LED_CON0_SWU (1 << 31) +#define LED_CON0_AD1 (1 << 25) +#define LED_CON0_AD0 (1 << 24) + #endif -- cgit v1.2.3