hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/x86/include/asm/olpc.h
....@@ -9,12 +9,10 @@
99 struct olpc_platform_t {
1010 int flags;
1111 uint32_t boardrev;
12
- int ecver;
1312 };
1413
1514 #define OLPC_F_PRESENT 0x01
1615 #define OLPC_F_DCON 0x02
17
-#define OLPC_F_EC_WIDE_SCI 0x04
1816
1917 #ifdef CONFIG_OLPC
2018
....@@ -64,13 +62,6 @@
6462 return olpc_platform_info.boardrev >= rev;
6563 }
6664
67
-extern void olpc_ec_wakeup_set(u16 value);
68
-extern void olpc_ec_wakeup_clear(u16 value);
69
-extern bool olpc_ec_wakeup_available(void);
70
-
71
-extern int olpc_ec_mask_write(u16 bits);
72
-extern int olpc_ec_sci_query(u16 *sci_value);
73
-
7465 #else
7566
7667 static inline int machine_is_olpc(void)
....@@ -83,14 +74,6 @@
8374 return 0;
8475 }
8576
86
-static inline void olpc_ec_wakeup_set(u16 value) { }
87
-static inline void olpc_ec_wakeup_clear(u16 value) { }
88
-
89
-static inline bool olpc_ec_wakeup_available(void)
90
-{
91
- return false;
92
-}
93
-
9477 #endif
9578
9679 #ifdef CONFIG_OLPC_XO1_PM
....@@ -100,20 +83,6 @@
10083 #endif
10184
10285 extern int pci_olpc_init(void);
103
-
104
-/* SCI source values */
105
-
106
-#define EC_SCI_SRC_EMPTY 0x00
107
-#define EC_SCI_SRC_GAME 0x01
108
-#define EC_SCI_SRC_BATTERY 0x02
109
-#define EC_SCI_SRC_BATSOC 0x04
110
-#define EC_SCI_SRC_BATERR 0x08
111
-#define EC_SCI_SRC_EBOOK 0x10 /* XO-1 only */
112
-#define EC_SCI_SRC_WLAN 0x20 /* XO-1 only */
113
-#define EC_SCI_SRC_ACPWR 0x40
114
-#define EC_SCI_SRC_BATCRIT 0x80
115
-#define EC_SCI_SRC_GPWAKE 0x100 /* XO-1.5 only */
116
-#define EC_SCI_SRC_ALL 0x1FF
11786
11887 /* GPIO assignments */
11988