Lines Matching +full:nand +full:- +full:has +full:- +full:wp

1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * dm355evm_msp.c - driver for MSP430 firmware on DM355EVM board
23 * EVM board has an MSP430 programmed with firmware for various board
27 * Because this firmware is entirely board-specific, this file embeds
58 /*----------------------------------------------------------------------*/
65 * dm355evm_msp_write - Writes a register in dm355evm_msp
69 * Returns result of operation - 0 is success, else negative errno
78 * dm355evm_msp_read - Reads a register from dm355evm_msp
81 * Returns result of operation - value, or negative errno
89 /*----------------------------------------------------------------------*/
92 * Many of the msp430 pins are just used as fixed-direction GPIOs.
116 MSP_GPIO(2, SDMMC), MSP_GPIO(1, SDMMC), /* mmc0 WP, nCD */
117 MSP_GPIO(4, SDMMC), MSP_GPIO(3, SDMMC), /* mmc1 WP, nCD */
126 /* could also be a CE-ATA drive */
129 .default_trigger = "nand-disk", },
142 .dev_id = "leds-gpio",
179 return -EINVAL; in msp_gpio_in()
207 return -EINVAL; in msp_gpio_out()
232 .base = -EINVAL, /* dynamic assignment */
237 /*----------------------------------------------------------------------*/
246 pdev = platform_device_alloc(name, -1); in add_child()
248 return ERR_PTR(-ENOMEM); in add_child()
250 device_init_wakeup(&pdev->dev, can_wakeup); in add_child()
251 pdev->dev.parent = &client->dev; in add_child()
256 dev_dbg(&pdev->dev, "can't add platform_data\n"); in add_child()
269 dev_dbg(&pdev->dev, "can't add irq\n"); in add_child()
278 return &pdev->dev; in add_child()
282 dev_err(&client->dev, "failed to add device %s\n", name); in add_child()
304 /* GPIO-ish stuff */ in add_children()
305 dm355evm_msp_gpio.parent = &client->dev; in add_children()
314 * on the board, since GPIO-61/ds22 (and many signals in add_children()
316 * unless the top 1 GB of NAND is unused... in add_children()
318 child = add_child(client, "leds-gpio", in add_children()
335 /* MMC/SD inputs -- right after the last config input */ in add_children()
336 if (dev_get_platdata(&client->dev)) { in add_children()
337 void (*mmcsd_setup)(unsigned) = dev_get_platdata(&client->dev); in add_children()
344 child = add_child(client, "rtc-dm355evm", in add_children()
353 NULL, 0, true, client->irq); in add_children()
361 /*----------------------------------------------------------------------*/
369 dev_err(&msp430->dev, "command %d failure %d\n", in dm355evm_command()
391 return -EBUSY; in dm355evm_msp_probe()
398 dev_info(&client->dev, "firmware v.%02X, %s as video-in\n", in dm355evm_msp_probe()
405 dev_warn(&client->dev, "error %d muxing %s as video-in\n", in dm355evm_msp_probe()