Lines Matching +full:cs +full:- +full:gpio
2 * linux/arch/arm/mach-omap2/board-3430sdp.c
6 * Modified from mach-omap2/board-generic.c
25 #include <linux/gpio.h>
29 #include <asm/mach-types.h>
40 #include <video/omap-panel-dvi.h>
42 #include <plat/gpmc-smc91x.h>
44 #include "board-flash.h"
46 #include "sdram-qimonda-hyb18m512160af-6.h"
50 #include "common-board-devices.h"
111 static struct gpio sdp3430_dss_gpios[] __initdata = {
134 return -EINVAL; in sdp3430_panel_enable_lcd()
157 return -EINVAL; in sdp3430_panel_enable_dvi()
245 unsigned gpio, unsigned ngpio) in sdp3430_twl_gpio_setup() argument
247 /* gpio + 0 is "mmc0_cd" (input/IRQ), in sdp3430_twl_gpio_setup()
248 * gpio + 1 is "mmc1_cd" (input/IRQ) in sdp3430_twl_gpio_setup()
250 mmc[0].gpio_cd = gpio + 0; in sdp3430_twl_gpio_setup()
251 mmc[1].gpio_cd = gpio + 1; in sdp3430_twl_gpio_setup()
254 /* gpio + 7 is "sub_lcd_en_bkl" (output/PWM1) */ in sdp3430_twl_gpio_setup()
255 gpio_request_one(gpio + 7, GPIOF_OUT_INIT_LOW, "sub_lcd_en_bkl"); in sdp3430_twl_gpio_setup()
257 /* gpio + 15 is "sub_lcd_nRST" (output) */ in sdp3430_twl_gpio_setup()
258 gpio_request_one(gpio + 15, GPIOF_OUT_INIT_LOW, "sub_lcd_nRST"); in sdp3430_twl_gpio_setup()
292 * Apply all the fixed voltages since most versions of U-Boot
296 /* VAUX1 for mainboard (irda and sub-lcd) */
397 .gpio = &sdp3430_gpio_data,
416 sdp3430_twldata.vdac->constraints.apply_uV = true; in omap3430_i2c_init()
417 sdp3430_twldata.vpll2->constraints.apply_uV = true; in omap3430_i2c_init()
418 sdp3430_twldata.vpll2->constraints.name = "VDVI"; in omap3430_i2c_init()
432 .cs = 3,
471 .reset_gpio_port[2] = -EINVAL
483 * SDP3430 V2 Board CS organization
484 * Different from SDP3430 V1. Now 4 switches used to specify CS
495 /* bootloader (U-Boot, etc) in first sector */
497 .name = "Bootloader-NOR",
500 .mask_flags = MTD_WRITEABLE, /* force read-only */
504 .name = "Params-NOR",
511 .name = "Kernel-NOR",
518 .name = "Filesystem-NOR",
527 .name = "X-Loader-OneNAND",
530 .mask_flags = MTD_WRITEABLE /* force read-only */
533 .name = "U-Boot-OneNAND",
536 .mask_flags = MTD_WRITEABLE /* force read-only */
539 .name = "U-Boot Environment-OneNAND",
544 .name = "Kernel-OneNAND",
549 .name = "File System-OneNAND",
558 .name = "X-Loader-NAND",
561 .mask_flags = MTD_WRITEABLE, /* force read-only */
564 .name = "U-Boot-NAND",
567 .mask_flags = MTD_WRITEABLE, /* force read-only */
570 .name = "Boot Env-NAND",
576 .name = "Kernel-NAND",
581 .name = "File System - NAND",
627 /* Maintainer: Syed Khasim - Texas Instruments Inc */