aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/chips/cfi_probe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/chips/cfi_probe.c')
-rw-r--r--drivers/mtd/chips/cfi_probe.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/mtd/chips/cfi_probe.c b/drivers/mtd/chips/cfi_probe.c
index e706be2ad0cb..e63e6749429a 100644
--- a/drivers/mtd/chips/cfi_probe.c
+++ b/drivers/mtd/chips/cfi_probe.c
@@ -44,14 +44,14 @@ do { \
44 44
45#define xip_enable(base, map, cfi) \ 45#define xip_enable(base, map, cfi) \
46do { \ 46do { \
47 qry_mode_off(base, map, cfi); \ 47 cfi_qry_mode_off(base, map, cfi); \
48 xip_allowed(base, map); \ 48 xip_allowed(base, map); \
49} while (0) 49} while (0)
50 50
51#define xip_disable_qry(base, map, cfi) \ 51#define xip_disable_qry(base, map, cfi) \
52do { \ 52do { \
53 xip_disable(); \ 53 xip_disable(); \
54 qry_mode_on(base, map, cfi); \ 54 cfi_qry_mode_on(base, map, cfi); \
55} while (0) 55} while (0)
56 56
57#else 57#else
@@ -87,7 +87,7 @@ static int __xipram cfi_probe_chip(struct map_info *map, __u32 base,
87 } 87 }
88 88
89 xip_disable(); 89 xip_disable();
90 if (!qry_mode_on(base, map, cfi)) { 90 if (!cfi_qry_mode_on(base, map, cfi)) {
91 xip_enable(base, map, cfi); 91 xip_enable(base, map, cfi);
92 return 0; 92 return 0;
93 } 93 }
@@ -108,13 +108,13 @@ static int __xipram cfi_probe_chip(struct map_info *map, __u32 base,
108 start = i << cfi->chipshift; 108 start = i << cfi->chipshift;
109 /* This chip should be in read mode if it's one 109 /* This chip should be in read mode if it's one
110 we've already touched. */ 110 we've already touched. */
111 if (qry_present(map, start, cfi)) { 111 if (cfi_qry_present(map, start, cfi)) {
112 /* Eep. This chip also had the QRY marker. 112 /* Eep. This chip also had the QRY marker.
113 * Is it an alias for the new one? */ 113 * Is it an alias for the new one? */
114 qry_mode_off(start, map, cfi); 114 cfi_qry_mode_off(start, map, cfi);
115 115
116 /* If the QRY marker goes away, it's an alias */ 116 /* If the QRY marker goes away, it's an alias */
117 if (!qry_present(map, start, cfi)) { 117 if (!cfi_qry_present(map, start, cfi)) {
118 xip_allowed(base, map); 118 xip_allowed(base, map);
119 printk(KERN_DEBUG "%s: Found an alias at 0x%x for the chip at 0x%lx\n", 119 printk(KERN_DEBUG "%s: Found an alias at 0x%x for the chip at 0x%lx\n",
120 map->name, base, start); 120 map->name, base, start);
@@ -124,9 +124,9 @@ static int __xipram cfi_probe_chip(struct map_info *map, __u32 base,
124 * unfortunate. Stick the new chip in read mode 124 * unfortunate. Stick the new chip in read mode
125 * too and if it's the same, assume it's an alias. */ 125 * too and if it's the same, assume it's an alias. */
126 /* FIXME: Use other modes to do a proper check */ 126 /* FIXME: Use other modes to do a proper check */
127 qry_mode_off(base, map, cfi); 127 cfi_qry_mode_off(base, map, cfi);
128 128
129 if (qry_present(map, base, cfi)) { 129 if (cfi_qry_present(map, base, cfi)) {
130 xip_allowed(base, map); 130 xip_allowed(base, map);
131 printk(KERN_DEBUG "%s: Found an alias at 0x%x for the chip at 0x%lx\n", 131 printk(KERN_DEBUG "%s: Found an alias at 0x%x for the chip at 0x%lx\n",
132 map->name, base, start); 132 map->name, base, start);
@@ -141,7 +141,7 @@ static int __xipram cfi_probe_chip(struct map_info *map, __u32 base,
141 cfi->numchips++; 141 cfi->numchips++;
142 142
143 /* Put it back into Read Mode */ 143 /* Put it back into Read Mode */
144 qry_mode_off(base, map, cfi); 144 cfi_qry_mode_off(base, map, cfi);
145 xip_allowed(base, map); 145 xip_allowed(base, map);
146 146
147 printk(KERN_INFO "%s: Found %d x%d devices at 0x%x in %d-bit bank\n", 147 printk(KERN_INFO "%s: Found %d x%d devices at 0x%x in %d-bit bank\n",
@@ -201,7 +201,7 @@ static int __xipram cfi_chip_setup(struct map_info *map,
201 cfi_read_query(map, base + 0xf * ofs_factor); 201 cfi_read_query(map, base + 0xf * ofs_factor);
202 202
203 /* Put it back into Read Mode */ 203 /* Put it back into Read Mode */
204 qry_mode_off(base, map, cfi); 204 cfi_qry_mode_off(base, map, cfi);
205 xip_allowed(base, map); 205 xip_allowed(base, map);
206 206
207 /* Do any necessary byteswapping */ 207 /* Do any necessary byteswapping */