Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 85550
b: refs/heads/master
c: c2f4d36
h: refs/heads/master
v: v3
  • Loading branch information
Kristoffer Ericson authored and Paul Mundt committed Feb 14, 2008
1 parent c1f06d7 commit 4f65493
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 26 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b770d6b9b726932a74126311fa163ebf379631d8
refs/heads/master: c2f4d36640947ddd13af7a2c36d197eb9fe5280a
28 changes: 3 additions & 25 deletions trunk/include/asm-sh/hp6xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
*
*/

#define HP680_BTN_IRQ 32 /* IRQ0_IRQ */
#define HP680_TS_IRQ 35 /* IRQ3_IRQ */
#define HP680_HD64461_IRQ 36 /* IRQ4_IRQ */
#define HP680_BTN_IRQ 32 /* IRQ0_IRQ */
#define HP680_TS_IRQ 35 /* IRQ3_IRQ */
#define HP680_HD64461_IRQ 36 /* IRQ4_IRQ */

#define DAC_LCD_BRIGHTNESS 0
#define DAC_SPEAKER_VOLUME 1
Expand Down Expand Up @@ -55,26 +55,4 @@
#define PJDR 0xa4000130
#define PKDR 0xa4000132

static inline void hp6xx_led_red(int on)
{
u16 v16;
v16 = ctrl_inw(CONFIG_HD64461_IOBASE + HD64461_GPBDR - 0x10000);
if (on)
ctrl_outw(v16 & (~HD64461_GPBDR_LED_RED), CONFIG_HD64461_IOBASE + HD64461_GPBDR - 0x10000);
else
ctrl_outw(v16 | HD64461_GPBDR_LED_RED, CONFIG_HD64461_IOBASE + HD64461_GPBDR - 0x10000);
}

static inline void hp6xx_led_green(int on)
{
u8 v8;

v8 = ctrl_inb(PKDR);
if (on)
ctrl_outb(v8 & (~PKDR_LED_GREEN), PKDR);
else
ctrl_outb(v8 | PKDR_LED_GREEN, PKDR);
}


#endif /* __ASM_SH_HP6XX_H */

0 comments on commit 4f65493

Please sign in to comment.