Lines Matching +full:factory +full:- +full:programmed

1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * arch/arm/mach-ep93xx/core.c
19 #include <linux/dma-mapping.h>
33 #include <linux/irqchip/arm-vic.h>
39 #include <linux/platform_data/video-ep93xx.h>
40 #include <linux/platform_data/keypad-ep93xx.h>
41 #include <linux/platform_data/spi-ep93xx.h>
44 #include "gpio-ep93xx.h"
122 * ep93xx_chip_revision() - returns the EP93xx chip revision
154 .name = "gpio-ep93xx",
155 .id = -1,
197 .name = "ep93xx-rtc",
198 .id = -1,
212 ep93xx_ohci_host_clock = devm_clk_get(&pdev->dev, NULL); in ep93xx_ohci_power_on()
239 .name = "ohci-platform",
240 .id = -1,
260 .name = "physmap-flash",
270 * ep93xx_register_flash() - Register the external flash device.
281 ep93xx_flash_resource.end = start + size - 1; in ep93xx_register_flash()
300 .name = "ep93xx-eth",
301 .id = -1,
312 * ep93xx_register_eth - Register the built-in ethernet platform device.
315 * from the IndAd registers (as programmed by the bootloader)
320 memcpy_fromio(data->dev_addr, EP93XX_ETHERNET_BASE + 0x50, 6); in ep93xx_register_eth()
331 /* All EP93xx devices use the same two GPIO pins for I2C bit-banging */
333 .dev_id = "i2c-gpio.0",
344 .name = "i2c-gpio",
352 * ep93xx_register_i2c - Register the i2c platform device.
359 * FIXME: this just sets the two pins as non-opendrain, as no in ep93xx_register_i2c()
363 * be. Right now i2c-gpio emulates open drain which is not in ep93xx_register_i2c()
387 .name = "ep93xx-spi",
399 * ep93xx_register_spi() - registers spi platform device
447 .name = "ep93xx-pwm",
458 .name = "ep93xx-pwm",
478 if (pdev->id == 0) { in ep93xx_pwm_acquire_gpio()
480 } else if (pdev->id == 1) { in ep93xx_pwm_acquire_gpio()
482 dev_name(&pdev->dev)); in ep93xx_pwm_acquire_gpio()
492 err = -ENODEV; in ep93xx_pwm_acquire_gpio()
505 if (pdev->id == 1) { in ep93xx_pwm_release_gpio()
526 .name = "ep93xx-fb",
527 .id = -1,
546 .name = "ep93xx-bl",
547 .id = -1,
553 * ep93xx_register_fb - Register the framebuffer platform device.
575 .name = "ep93xx-keypad",
576 .id = -1,
585 * ep93xx_register_keypad - Register the keypad platform device.
600 err = gpio_request(EP93XX_GPIO_LINE_C(i), dev_name(&pdev->dev)); in ep93xx_keypad_acquire_gpio()
603 err = gpio_request(EP93XX_GPIO_LINE_D(i), dev_name(&pdev->dev)); in ep93xx_keypad_acquire_gpio()
617 for (--i; i >= 0; --i) { in ep93xx_keypad_acquire_gpio()
649 .name = "ep93xx-i2s",
650 .id = -1,
656 .name = "ep93xx-pcm-audio",
657 .id = -1,
709 .name = "ep93xx-ac97",
710 .id = -1,
734 .name = "ep93xx-wdt",
735 .id = -1,
749 .name = "ep93xx-ide",
750 .id = -1,
769 err = gpio_request(EP93XX_GPIO_LINE_EGPIO2, dev_name(&pdev->dev)); in ep93xx_ide_acquire_gpio()
772 err = gpio_request(EP93XX_GPIO_LINE_EGPIO15, dev_name(&pdev->dev)); in ep93xx_ide_acquire_gpio()
776 err = gpio_request(EP93XX_GPIO_LINE_E(i), dev_name(&pdev->dev)); in ep93xx_ide_acquire_gpio()
781 err = gpio_request(EP93XX_GPIO_LINE_G(i), dev_name(&pdev->dev)); in ep93xx_ide_acquire_gpio()
786 err = gpio_request(EP93XX_GPIO_LINE_H(i), dev_name(&pdev->dev)); in ep93xx_ide_acquire_gpio()
798 for (--i; i >= 0; --i) in ep93xx_ide_acquire_gpio()
802 for (--i; i >= 4; --i) in ep93xx_ide_acquire_gpio()
806 for (--i; i >= 2; --i) in ep93xx_ide_acquire_gpio()
845 .name = "ep93xx-adc",
846 .id = -1,
865 * The Maverick Key is 256 bits of micro fuses blown at the factory during
937 return kasprintf(GFP_KERNEL,"%s", machine_desc->name); in ep93xx_get_machine_name()
949 soc_dev_attr->machine = ep93xx_get_machine_name(); in ep93xx_init_soc()
950 soc_dev_attr->family = "Cirrus Logic EP93xx"; in ep93xx_init_soc()
951 soc_dev_attr->revision = ep93xx_get_soc_rev(); in ep93xx_init_soc()
952 soc_dev_attr->soc_id = ep93xx_get_soc_id(); in ep93xx_init_soc()
956 kfree(soc_dev_attr->machine); in ep93xx_init_soc()
991 gpio_led_register_device(-1, &ep93xx_led_data); in ep93xx_init_devices()