Lines Matching +full:nand +full:- +full:style
5 * 2003-2005 (c) MontaVista Software, Inc.
6 * (C) Copyright TOSHIBA CORPORATION 2000-2001, 2004-2007
18 #include <linux/clk-provider.h>
71 txx9_reg_res.end = (base & 0xfffffffffULL) + (size - 1); in txx9_reg_res_init()
102 if (strstr(board_vecs[i]->system, name)) in find_board_byname()
112 int i; /* Always ignore the "-c" at argv[0] */ in prom_init_cmdline()
188 pr_info("TX49XX I-Cache disabled.\n"); in txx9_cache_fixup()
190 pr_info("TX49XX D-Cache disabled.\n"); in txx9_cache_fixup()
273 strcpy(txx9_system_type, txx9_board_vec->system); in prom_init()
275 txx9_board_vec->prom_init(); in prom_init()
291 /* YAMON style ("name", "value" pairs) */ in prom_getenv()
324 .end = base + 0x100 - 1, in txx9_wdt_init()
327 platform_device_register_simple("txx9wdt", -1, &res, 1); in txx9_wdt_init()
335 __raw_writel(TXx9_TMWTMR_WDIS | TXx9_TMWTMR_TWC, &tmrptr->wtmr); in txx9_wdt_now()
336 __raw_writel(0, &tmrptr->tcr); in txx9_wdt_now()
338 __raw_writel(TXx9_TMWTMR_TWIE, &tmrptr->wtmr); in txx9_wdt_now()
339 __raw_writel(1, &tmrptr->cpra); /* immediate */ in txx9_wdt_now()
341 &tmrptr->tcr); in txx9_wdt_now()
350 .end = base + 0x20 - 1, in txx9_spi_init()
364 platform_device_alloc("tc35815-mac", id); in txx9_ethaddr_init()
441 txx9_board_vec->mem_setup(); in plat_mem_setup()
446 txx9_board_vec->irq_setup(); in arch_init_irq()
454 txx9_board_vec->time_init(); in plat_time_init()
476 error = clk_hw_register_clkdev(hw, "spi-baseclk", NULL); in txx9_clk_init()
492 if (txx9_board_vec->arch_init) in _txx9_arch_init()
493 txx9_board_vec->arch_init(); in _txx9_arch_init()
500 if (txx9_board_vec->device_init) in _txx9_device_init()
501 txx9_board_vec->device_init(); in _txx9_device_init()
518 /* see include/asm-mips/mach-tx39xx/mangle-port.h, for example. */
535 .end = addr + size - 1, in txx9_physmap_flash_init()
543 if (pdata->nr_parts == 0 && !pdata->parts && in txx9_physmap_flash_init()
547 parts[0].offset = 0x1fc00000 - addr; in txx9_physmap_flash_init()
548 parts[0].size = addr + size - 0x1fc00000; in txx9_physmap_flash_init()
551 parts[1].size = 0x1fc00000 - addr; in txx9_physmap_flash_init()
558 pdev = platform_device_alloc("physmap-flash", no); in txx9_physmap_flash_init()
573 .end = baseaddr + 0x1000 - 1, in txx9_ndfmc_init()
576 struct platform_device *pdev = platform_device_alloc("txx9ndfmc", -1); in txx9_ndfmc_init()
603 return !!(data->cur_val & (1 << offset)); in txx9_iocled_get()
613 data->cur_val |= 1 << offset; in txx9_iocled_set()
615 data->cur_val &= ~(1 << offset); in txx9_iocled_set()
616 writeb(data->cur_val, data->mmioaddr); in txx9_iocled_set()
642 "disk-activity", in txx9_iocled_init()
643 "nand-disk", in txx9_iocled_init()
652 iocled->mmioaddr = ioremap(baseaddr, 1); in txx9_iocled_init()
653 if (!iocled->mmioaddr) in txx9_iocled_init()
655 iocled->chip.get = txx9_iocled_get; in txx9_iocled_init()
656 iocled->chip.set = txx9_iocled_set; in txx9_iocled_init()
657 iocled->chip.direction_input = txx9_iocled_dir_in; in txx9_iocled_init()
658 iocled->chip.direction_output = txx9_iocled_dir_out; in txx9_iocled_init()
659 iocled->chip.label = "iocled"; in txx9_iocled_init()
660 iocled->chip.base = basenum; in txx9_iocled_init()
661 iocled->chip.ngpio = num; in txx9_iocled_init()
662 if (gpiochip_add_data(&iocled->chip, iocled)) in txx9_iocled_init()
665 basenum = iocled->chip.base; in txx9_iocled_init()
667 pdev = platform_device_alloc("leds-gpio", basenum); in txx9_iocled_init()
670 iocled->pdata.num_leds = num; in txx9_iocled_init()
671 iocled->pdata.leds = iocled->leds; in txx9_iocled_init()
673 struct gpio_led *led = &iocled->leds[i]; in txx9_iocled_init()
674 snprintf(iocled->names[i], sizeof(iocled->names[i]), in txx9_iocled_init()
676 led->name = iocled->names[i]; in txx9_iocled_init()
677 led->gpio = basenum + i; in txx9_iocled_init()
678 led->active_low = lowactive; in txx9_iocled_init()
680 led->default_trigger = *deftriggers++; in txx9_iocled_init()
682 pdev->dev.platform_data = &iocled->pdata; in txx9_iocled_init()
690 gpiochip_remove(&iocled->chip); in txx9_iocled_init()
692 iounmap(iocled->mmioaddr); in txx9_iocled_init()
711 .end = baseaddr + 0x800 - 1, in txx9_dmac_init()
744 pdev = platform_device_alloc("txx9dmac-chan", in txx9_dmac_init()
780 struct txx9_sramc_dev *dev = bin_attr->private; in txx9_sram_read()
781 size_t ramsize = bin_attr->size; in txx9_sram_read()
786 size = ramsize - pos; in txx9_sram_read()
787 memcpy_fromio(buf, dev->base + pos, size); in txx9_sram_read()
795 struct txx9_sramc_dev *dev = bin_attr->private; in txx9_sram_write()
796 size_t ramsize = bin_attr->size; in txx9_sram_write()
801 size = ramsize - pos; in txx9_sram_write()
802 memcpy_toio(dev->base + pos, buf, size); in txx9_sram_write()
827 dev->base = ioremap(r->start, size); in txx9_sramc_init()
828 if (!dev->base) { in txx9_sramc_init()
832 dev->dev.release = &txx9_device_release; in txx9_sramc_init()
833 dev->dev.bus = &txx9_sramc_subsys; in txx9_sramc_init()
834 sysfs_bin_attr_init(&dev->bindata_attr); in txx9_sramc_init()
835 dev->bindata_attr.attr.name = "bindata"; in txx9_sramc_init()
836 dev->bindata_attr.attr.mode = S_IRUSR | S_IWUSR; in txx9_sramc_init()
837 dev->bindata_attr.read = txx9_sram_read; in txx9_sramc_init()
838 dev->bindata_attr.write = txx9_sram_write; in txx9_sramc_init()
839 dev->bindata_attr.size = size; in txx9_sramc_init()
840 dev->bindata_attr.private = dev; in txx9_sramc_init()
841 err = device_register(&dev->dev); in txx9_sramc_init()
844 err = sysfs_create_bin_file(&dev->dev.kobj, &dev->bindata_attr); in txx9_sramc_init()
846 iounmap(dev->base); in txx9_sramc_init()
847 device_unregister(&dev->dev); in txx9_sramc_init()
851 iounmap(dev->base); in txx9_sramc_init()
852 put_device(&dev->dev); in txx9_sramc_init()