sync hh.org
[hh.org.git] / include / asm-arm / arch-pxa / hx4700-core.h
blob18f2d942c58ed363c5d04442764cb1edf8ba7696
1 /* Core Hardware driver for Hx4700 (ASIC3, EGPIOs)
3 * Copyright (c) 2005-2006 SDG Systems, LLC
5 * 2005-03-29 Todd Blumer Converted basic structure to support hx4700
6 */
8 #ifndef _HX4700_CORE_H
9 #define _HX4700_CORE_H
10 #include <linux/leds.h>
12 #define EGPIO0_VCC_3V3_EN (1<<0) /* WLAN support chip power */
13 #define EGPIO1_WL_VREG_EN (1<<1) /* WLAN Power */
14 #define EGPIO2_VCC_2V1_WL_EN (1<<2) /* unused */
15 #define EGPIO3_SS_PWR_ON (1<<3) /* smart slot power on */
16 #define EGPIO4_CF_3V3_ON (1<<4) /* CF 3.3V enable */
17 #define EGPIO5_BT_3V3_ON (1<<5) /* Bluetooth 3.3V enable */
18 #define EGPIO6_WL1V8_EN (1<<6) /* WLAN 1.8V enable */
19 #define EGPIO7_VCC_3V3_WL_EN (1<<7) /* WLAN 3.3V enable */
20 #define EGPIO8_USB_3V3_ON (1<<8) /* unused */
22 void hx4700_egpio_enable( u_int16_t bits );
23 void hx4700_egpio_disable( u_int16_t bits );
25 struct hx4700_core_funcs {
26 int (*udc_detect)( void );
29 EXTERN_LED_TRIGGER_SHARED(hx4700_radio_trig);
31 #endif /* _HX4700_CORE_H */