Lines Matching refs:base
27 static int cfi_probe_chip(struct map_info *map, __u32 base,
38 #define xip_allowed(base, map) \
40 (void) map_read(map, base); \
45 #define xip_enable(base, map, cfi) \
47 cfi_qry_mode_off(base, map, cfi); \
48 xip_allowed(base, map); \
51 #define xip_disable_qry(base, map, cfi) \
54 cfi_qry_mode_on(base, map, cfi); \
60 #define xip_allowed(base, map) do { } while (0)
61 #define xip_enable(base, map, cfi) do { } while (0)
62 #define xip_disable_qry(base, map, cfi) do { } while (0)
95 static int __xipram cfi_probe_chip(struct map_info *map, __u32 base,
100 if ((base + 0) >= map->size) {
102 "Probe at base[0x00](0x%08lx) past the end of the map(0x%08lx)\n",
103 (unsigned long)base, map->size -1);
106 if ((base + 0xff) >= map->size) {
108 "Probe at base[0x55](0x%08lx) past the end of the map(0x%08lx)\n",
109 (unsigned long)base + 0x55, map->size -1);
114 if (!cfi_qry_mode_on(base, map, cfi)) {
115 xip_enable(base, map, cfi);
126 for (i=0; i < (base >> cfi->chipshift); i++) {
142 xip_allowed(base, map);
144 map->name, base, start);
151 cfi_qry_mode_off(base, map, cfi);
153 if (cfi_qry_present(map, base, cfi)) {
154 xip_allowed(base, map);
156 map->name, base, start);
164 set_bit((base >> cfi->chipshift), chip_map); /* Update chip map */
168 cfi_qry_mode_off(base, map, cfi);
169 xip_allowed(base, map);
172 map->name, cfi->interleave, cfi->device_type*8, base,
198 __u32 base = 0;
199 int num_erase_regions = cfi_read_query(map, base + (0x10 + 28)*ofs_factor);
203 xip_enable(base, map, cfi);
221 xip_disable_qry(base, map, cfi);
223 ((unsigned char *)cfi->cfiq)[i] = cfi_read_query(map,base + (0x10 + i)*ofs_factor);
262 cfi_send_gen_cmd(0xf0, 0, base, map, cfi, cfi->device_type, NULL);
263 cfi_send_gen_cmd(0xaa, addr_unlock1, base, map, cfi, cfi->device_type, NULL);
264 cfi_send_gen_cmd(0x55, addr_unlock2, base, map, cfi, cfi->device_type, NULL);
265 cfi_send_gen_cmd(0x90, addr_unlock1, base, map, cfi, cfi->device_type, NULL);
266 cfi->mfr = cfi_read_query16(map, base);
267 cfi->id = cfi_read_query16(map, base + ofs_factor);
271 cfi->id = cfi_read_query(map, base + 0xe * ofs_factor) << 8 |
272 cfi_read_query(map, base + 0xf * ofs_factor);
275 cfi_qry_mode_off(base, map, cfi);
276 xip_allowed(base, map);
281 map->name, cfi->interleave, cfi->device_type*8, base,