diff options
| -rw-r--r-- | include/asm-sh/hp6xx.h | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/include/asm-sh/hp6xx.h b/include/asm-sh/hp6xx.h index 53ca5643d9c7..0d4165a32dcd 100644 --- a/include/asm-sh/hp6xx.h +++ b/include/asm-sh/hp6xx.h | |||
| @@ -10,9 +10,9 @@ | |||
| 10 | * | 10 | * |
| 11 | */ | 11 | */ |
| 12 | 12 | ||
| 13 | #define HP680_BTN_IRQ 32 /* IRQ0_IRQ */ | 13 | #define HP680_BTN_IRQ 32 /* IRQ0_IRQ */ |
| 14 | #define HP680_TS_IRQ 35 /* IRQ3_IRQ */ | 14 | #define HP680_TS_IRQ 35 /* IRQ3_IRQ */ |
| 15 | #define HP680_HD64461_IRQ 36 /* IRQ4_IRQ */ | 15 | #define HP680_HD64461_IRQ 36 /* IRQ4_IRQ */ |
| 16 | 16 | ||
| 17 | #define DAC_LCD_BRIGHTNESS 0 | 17 | #define DAC_LCD_BRIGHTNESS 0 |
| 18 | #define DAC_SPEAKER_VOLUME 1 | 18 | #define DAC_SPEAKER_VOLUME 1 |
| @@ -55,26 +55,4 @@ | |||
| 55 | #define PJDR 0xa4000130 | 55 | #define PJDR 0xa4000130 |
| 56 | #define PKDR 0xa4000132 | 56 | #define PKDR 0xa4000132 |
| 57 | 57 | ||
| 58 | static inline void hp6xx_led_red(int on) | ||
| 59 | { | ||
| 60 | u16 v16; | ||
| 61 | v16 = ctrl_inw(CONFIG_HD64461_IOBASE + HD64461_GPBDR - 0x10000); | ||
| 62 | if (on) | ||
| 63 | ctrl_outw(v16 & (~HD64461_GPBDR_LED_RED), CONFIG_HD64461_IOBASE + HD64461_GPBDR - 0x10000); | ||
| 64 | else | ||
| 65 | ctrl_outw(v16 | HD64461_GPBDR_LED_RED, CONFIG_HD64461_IOBASE + HD64461_GPBDR - 0x10000); | ||
| 66 | } | ||
| 67 | |||
| 68 | static inline void hp6xx_led_green(int on) | ||
| 69 | { | ||
| 70 | u8 v8; | ||
| 71 | |||
| 72 | v8 = ctrl_inb(PKDR); | ||
| 73 | if (on) | ||
| 74 | ctrl_outb(v8 & (~PKDR_LED_GREEN), PKDR); | ||
| 75 | else | ||
| 76 | ctrl_outb(v8 | PKDR_LED_GREEN, PKDR); | ||
| 77 | } | ||
| 78 | |||
| 79 | |||
| 80 | #endif /* __ASM_SH_HP6XX_H */ | 58 | #endif /* __ASM_SH_HP6XX_H */ |
