Go to the documentation of this file.
13 #include <linux/module.h>
14 #include <linux/kernel.h>
15 #include <linux/device.h>
16 #include <linux/list.h>
17 #include <linux/errno.h>
19 #include <linux/string.h>
24 #include <mach/hardware.h>
26 #define REG_MFSEL (W90X900_VA_GCR + 0xC)
28 #define GPSELF (0x01 << 1)
29 #define GPSELC (0x03 << 2)
30 #define GPSELD (0x0f << 4)
32 #define GPSELEI0 (0x01 << 26)
33 #define GPSELEI1 (0x01 << 27)
35 #define GPIOG0TO1 (0x03 << 14)
36 #define GPIOG2TO3 (0x03 << 16)
37 #define GPIOG22TO23 (0x03 << 22)
38 #define GPIOG18TO20 (0x07 << 18)
40 #define ENSPI (0x0a << 14)
41 #define ENI2C0 (0x01 << 14)
42 #define ENI2C1 (0x01 << 16)
43 #define ENAC97 (0x02 << 22)
44 #define ENSD1 (0x02 << 18)
45 #define ENSD0 (0x0a << 4)
46 #define ENKPI (0x02 << 2)
47 #define ENNAND (0x01 << 2)
60 dev_id = dev_name(dev);
64 if (
strcmp(dev_id,
"nuc900-emc") == 0)
84 dev_id = dev_name(dev);
88 if (
strcmp(dev_id,
"nuc900-lcd") == 0)
90 else if (
strcmp(dev_id,
"nuc900-kpi") == 0) {
93 }
else if (
strcmp(dev_id,
"nuc900-nand") == 0) {
114 dev_id = dev_name(dev);
120 if (
strcmp(dev_id,
"nuc900-wdog") == 0)
122 else if (
strcmp(dev_id,
"nuc900-atapi") == 0)
124 else if (
strcmp(dev_id,
"nuc900-keypad") == 0)
138 BUG_ON((!dev) && (!subname));
145 dev_id = dev_name(dev);
149 if (
strcmp(dev_id,
"nuc900-spi") == 0) {
152 }
else if (
strcmp(dev_id,
"nuc900-i2c0") == 0) {
155 }
else if (
strcmp(dev_id,
"nuc900-i2c1") == 0) {
158 }
else if (
strcmp(dev_id,
"nuc900-ac97") == 0) {
161 }
else if (
strcmp(dev_id,
"nuc900-mmc-port1") == 0) {
163 mfpen |= (
ENSD1 | 0x01);
179 BUG_ON((!dev) && (!subname));
186 dev_id = dev_name(dev);
190 if (
strcmp(dev_id,
"nuc900-mmc-port0") == 0) {