Lines Matching +full:0 +full:x400000
40 tx4939_time_init(0); in rbtx4939_time_init()
46 ((((unsigned long)(addr) - IO_BASE) & 0xfff00000) == TXX9_CE(1))
73 c = txx9_alloc_pci_controller(NULL, 0, 0x10000, 0, 0x10000); in rbtx4939_pci_setup()
75 tx4927_pcic_setup(tx4939_pcic1ptr, c, 0); in rbtx4939_pci_setup()
83 0x01c0000000007608ULL, /* 64M ROM */
84 0x017f000000007049ULL, /* 1M IOC */
85 0x0180000000408608ULL, /* ISA */
86 0,
95 sp = TX4939_EBUSC_CR(0) & 0x30; in rbtx4939_ebusc_setup()
96 default_ebccr[0] |= sp; in rbtx4939_ebusc_setup()
100 for (i = 0; i < ARRAY_SIZE(default_ebccr); i++) { in rbtx4939_ebusc_setup()
119 pe1 |= RBTX4939_PE1_ATA(0); in rbtx4939_update_ioc_pen()
121 pe1 &= ~RBTX4939_PE1_ATA(0); in rbtx4939_update_ioc_pen()
124 pe1 &= ~(RBTX4939_PE1_RMII(0) | RBTX4939_PE1_RMII(1)); in rbtx4939_update_ioc_pen()
128 pe1 |= RBTX4939_PE1_RMII(0); in rbtx4939_update_ioc_pen()
130 pe1 &= ~RBTX4939_PE1_RMII(0); in rbtx4939_update_ioc_pen()
142 if (vmode == 0) in rbtx4939_update_ioc_pen()
207 led_val[num] = (led_val[num] & 0x7f) | (value ? 0x80 : 0); in rbtx4939_led_brightness_set()
226 for (i = 0; i < RBTX4939_MAX_7SEGLEDS; i++) { in rbtx4939_led_probe()
237 if (rc < 0) in rbtx4939_led_probe()
239 led_dat->cdev.brightness_set(&led_dat->cdev, 0); in rbtx4939_led_probe()
241 return 0; in rbtx4939_led_probe()
253 platform_device_register_simple("rbtx4939-led", -1, NULL, 0); in rbtx4939_led_setup()
268 led_val[pos] = (led_val[pos] & 0x80) | (val & 0x7f); in __rbtx4939_7segled_putc()
278 val = (val & 0x88) | in rbtx4939_7segled_putc()
279 ((val & 0x40) >> 6) | in rbtx4939_7segled_putc()
280 ((val & 0x20) >> 4) | in rbtx4939_7segled_putc()
281 ((val & 0x10) >> 2) | in rbtx4939_7segled_putc()
282 ((val & 0x04) << 2) | in rbtx4939_7segled_putc()
283 ((val & 0x02) << 4) | in rbtx4939_7segled_putc()
284 ((val & 0x01) << 6); in rbtx4939_7segled_putc()
292 u8 bdipsw = readb(rbtx4939_bdipsw_addr) & 0x0f; in rbtx4939_flash_fixup_ofs()
299 return (ofs & ~0xc00000) | ((((ofs >> 22) + shift) & 3) << 22); in rbtx4939_flash_fixup_ofs()
302 if (bdipsw == 0) in rbtx4939_flash_fixup_ofs()
304 ofs ^= 0x400000; /* swap A[22] */ in rbtx4939_flash_fixup_ofs()
314 r.x[0] = __raw_readw(map->virt + ofs); in rbtx4939_flash_read16()
322 __raw_writew(datum.x[0], map->virt + ofs); in rbtx4939_flash_write16()
329 u8 bdipsw = readb(rbtx4939_bdipsw_addr) & 0x0f; in rbtx4939_flash_copy_from()
339 0x400000 - (from & (0x400000 - 1))); in rbtx4939_flash_copy_from()
341 (void *)((from & ~0xc00000) | in rbtx4939_flash_copy_from()
351 if (bdipsw == 0) { in rbtx4939_flash_copy_from()
355 0x400000 - (from & (0x400000 - 1))); in rbtx4939_flash_copy_from()
356 memcpy(to, (void *)(from ^ 0x400000), curlen); in rbtx4939_flash_copy_from()
384 struct rbtx4939_flash_data *boot_pdata = &pdevs[0].data; in rbtx4939_mtd_init()
385 u8 bdipsw = readb(rbtx4939_bdipsw_addr) & 0x0f; in rbtx4939_mtd_init()
390 for (i = 0; i < boot_pdata->nr_parts; i++) { in rbtx4939_mtd_init()
393 parts[i].size = 0x400000; in rbtx4939_mtd_init()
396 } else if (bdipsw == 0) { in rbtx4939_mtd_init()
399 strcpy(names[0], "big"); in rbtx4939_mtd_init()
401 for (i = 0; i < boot_pdata->nr_parts; i++) { in rbtx4939_mtd_init()
403 parts[i].size = 0x400000; in rbtx4939_mtd_init()
409 parts[0].name = "boot"; in rbtx4939_mtd_init()
410 parts[0].offset = 0xc00000; in rbtx4939_mtd_init()
411 parts[0].size = 0x400000; in rbtx4939_mtd_init()
413 parts[1].offset = 0; in rbtx4939_mtd_init()
414 parts[1].size = 0xc00000; in rbtx4939_mtd_init()
419 for (i = 0; i < ARRAY_SIZE(pdevs); i++) { in rbtx4939_mtd_init()
423 r->start = 0x1f000000 - i * 0x1000000; in rbtx4939_mtd_init()
424 r->end = r->start + 0x1000000 - 1; in rbtx4939_mtd_init()
452 .end = smc_addr + 0x10 - 1, in rbtx4939_device_init()
467 u8 bdipsw = readb(rbtx4939_bdipsw_addr) & 0x0f; in rbtx4939_device_init()
469 for (i = 0; i < 2; i++) { in rbtx4939_device_init()
470 unsigned long area = CKSEG1 + 0x1fff0000 + (i * 0x10); in rbtx4939_device_init()
471 if (bdipsw == 0) in rbtx4939_device_init()
476 area -= 0x03000000; in rbtx4939_device_init()
478 area -= 0x01000000; in rbtx4939_device_init()
479 for (j = 0; j < 3; j++) in rbtx4939_device_init()
484 tx4939_ethaddr_init(ethaddr[0], ethaddr[1]); in rbtx4939_device_init()
501 tx4939_dmac_init(0, 2); in rbtx4939_device_init()
503 platform_device_register_simple("txx9aclc-generic", -1, NULL, 0); in rbtx4939_device_init()
515 if (txx9_master_clock == 0) in rbtx4939_setup()
527 for (i = 0; i < RBTX4939_MAX_7SEGLEDS; i++) in rbtx4939_setup()
534 txx9_alloc_pci_controller(&txx9_primary_pcic, 0, 0, 0, 0); in rbtx4939_setup()
540 tx4939_sio_init(TX4939_SCLK0(txx9_master_clock), 0); in rbtx4939_setup()