Lines Matching +full:pcfg +full:-
6 * Copyright (C) 2000-2001,2005-2007 Toshiba Corporation
7 * 2003-2005 (c) MontaVista Software, Inc. This file is licensed under the
46 ((((unsigned long)(addr) - IO_BASE) & 0xfff00000) == TXX9_CE(1))
60 int extarb = !(__raw_readq(&tx4939_ccfgptr->ccfg) & TX4939_CCFG_PCIARB); in rbtx4939_pci_setup()
67 if (!(__raw_readq(&tx4939_ccfgptr->pcfg) & TX4939_PCFG_ATA1MODE) && in rbtx4939_pci_setup()
68 (__raw_readq(&tx4939_ccfgptr->pcfg) & in rbtx4939_pci_setup()
94 /* use user-configured speed */ in rbtx4939_ebusc_setup()
103 &tx4939_ebuscptr->cr[i]); in rbtx4939_ebusc_setup()
105 ____raw_writeq(____raw_readq(&tx4939_ebuscptr->cr[i]) in rbtx4939_ebusc_setup()
107 &tx4939_ebuscptr->cr[i]); in rbtx4939_ebusc_setup()
113 __u64 pcfg = ____raw_readq(&tx4939_ccfgptr->pcfg); in rbtx4939_update_ioc_pen() local
114 __u64 ccfg = ____raw_readq(&tx4939_ccfgptr->ccfg); in rbtx4939_update_ioc_pen()
118 if (pcfg & TX4939_PCFG_ATA0MODE) in rbtx4939_update_ioc_pen()
122 if (pcfg & TX4939_PCFG_ATA1MODE) { in rbtx4939_update_ioc_pen()
127 if (pcfg & TX4939_PCFG_ET0MODE) in rbtx4939_update_ioc_pen()
131 if (pcfg & TX4939_PCFG_ET1MODE) in rbtx4939_update_ioc_pen()
140 __u64 vmode = pcfg & in rbtx4939_update_ioc_pen()
156 if (pcfg & TX4939_PCFG_SPIMODE) { in rbtx4939_update_ioc_pen()
157 if (pcfg & TX4939_PCFG_SIO2MODE_GPIO) in rbtx4939_update_ioc_pen()
160 if (pcfg & TX4939_PCFG_SIO2MODE_SIO2) { in rbtx4939_update_ioc_pen()
168 if (pcfg & TX4939_PCFG_SIO3MODE) in rbtx4939_update_ioc_pen()
178 if ((pcfg & TX4939_PCFG_I2SMODE_MASK) == TX4939_PCFG_I2SMODE_GPIO) in rbtx4939_update_ioc_pen()
203 unsigned int num = led_dat->num; in rbtx4939_led_brightness_set()
218 "disk-activity", in rbtx4939_led_probe()
219 "nand-disk", in rbtx4939_led_probe()
225 return -ENOMEM; in rbtx4939_led_probe()
230 led_dat->num = i; in rbtx4939_led_probe()
231 led_dat->cdev.brightness_set = rbtx4939_led_brightness_set; in rbtx4939_led_probe()
232 sprintf(led_dat->name, "rbtx4939:amber:%u", i); in rbtx4939_led_probe()
233 led_dat->cdev.name = led_dat->name; in rbtx4939_led_probe()
235 led_dat->cdev.default_trigger = default_triggers[i]; in rbtx4939_led_probe()
236 rc = led_classdev_register(&pdev->dev, &led_dat->cdev); in rbtx4939_led_probe()
239 led_dat->cdev.brightness_set(&led_dat->cdev, 0); in rbtx4939_led_probe()
247 .name = "rbtx4939-led",
253 platform_device_register_simple("rbtx4939-led", -1, NULL, 0); in rbtx4939_led_setup()
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()
333 from += (unsigned long)map->virt; in rbtx4939_flash_copy_from()
339 0x400000 - (from & (0x400000 - 1))); in rbtx4939_flash_copy_from()
344 len -= curlen; in rbtx4939_flash_copy_from()
355 0x400000 - (from & (0x400000 - 1))); in rbtx4939_flash_copy_from()
357 len -= curlen; in rbtx4939_flash_copy_from()
369 map->read = rbtx4939_flash_read16; in rbtx4939_flash_map_init()
370 map->write = rbtx4939_flash_write16; in rbtx4939_flash_map_init()
371 map->copy_from = rbtx4939_flash_copy_from; in rbtx4939_flash_map_init()
389 boot_pdata->nr_parts = 4; in rbtx4939_mtd_init()
390 for (i = 0; i < boot_pdata->nr_parts; i++) { in rbtx4939_mtd_init()
391 sprintf(names[i], "img%d", 4 - i); in rbtx4939_mtd_init()
398 boot_pdata->nr_parts = 2; in rbtx4939_mtd_init()
401 for (i = 0; i < boot_pdata->nr_parts; i++) { in rbtx4939_mtd_init()
408 boot_pdata->nr_parts = 2; in rbtx4939_mtd_init()
416 boot_pdata->parts = parts; in rbtx4939_mtd_init()
417 boot_pdata->map_init = rbtx4939_flash_map_init; 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()
425 r->flags = IORESOURCE_MEM; in rbtx4939_mtd_init()
427 dev->num_resources = 1; in rbtx4939_mtd_init()
428 dev->resource = r; in rbtx4939_mtd_init()
429 dev->id = i; in rbtx4939_mtd_init()
430 dev->name = "rbtx4939-flash"; in rbtx4939_mtd_init()
431 dev->dev.platform_data = &pdevs[i].data; in rbtx4939_mtd_init()
448 unsigned long smc_addr = RBTX4939_ETHER_ADDR - IO_BASE; in rbtx4939_device_init()
452 .end = smc_addr + 0x10 - 1, in rbtx4939_device_init()
476 area -= 0x03000000; in rbtx4939_device_init()
478 area -= 0x01000000; in rbtx4939_device_init()
486 pdev = platform_device_alloc("smc91x", -1); in rbtx4939_device_init()
503 platform_device_register_simple("txx9aclc-generic", -1, NULL, 0); in rbtx4939_device_init()
514 txx9_set64(&tx4939_ccfgptr->pcfg, TX4939_PCFG_ATA0MODE); in rbtx4939_setup()
528 txx9_7segled_putc(i, '-'); in rbtx4939_setup()
529 pr_info("RBTX4939 (Rev %02x) --- FPGA(Rev %02x) DIPSW:%02x,%02x\n", in rbtx4939_setup()