| * HTC PASIC3 driver - LEDs and DS1WM |
| * Copyright (c) 2007 Philipp Zabel <philipp.zabel@gmail.com> |
| * This file is subject to the terms and conditions of the GNU General Public |
| * License. See the file COPYING in the main directory of this archive for |
| #include <linux/platform_device.h> |
| extern void pasic3_write_register(struct device *dev, u32 reg, u8 val); |
| extern u8 pasic3_read_register(struct device *dev, u32 reg); |
| * mask for registers 0x20,0x21,0x22 |
| #define PASIC3_MASK_LED0 0x04 |
| #define PASIC3_MASK_LED1 0x08 |
| #define PASIC3_MASK_LED2 0x40 |
| #define PASIC3_BIT2_LED0 0x08 |
| #define PASIC3_BIT2_LED1 0x10 |
| #define PASIC3_BIT2_LED2 0x20 |
| struct pasic3_leds_machinfo *pdata; |
| struct pasic3_leds_machinfo { |
| struct pasic3_platform_data { |
| struct pasic3_leds_machinfo *led_pdata; |