Lines Matching +full:gpio +full:- +full:backlight
1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-omap1/board-sx1.c
5 * Modified from board-generic.c
9 * Original version : Vladimir Ananiev (Vovan888-at-gmail com)
14 #include <linux/gpio/machine.h>
15 #include <linux/gpio/consumer.h>
29 #include <linux/platform_data/keypad-omap.h>
30 #include <linux/omap-dma.h>
33 #include <asm/mach-types.h>
39 #include "board-sx1.h"
54 return -ENODEV; in sx1_i2c_write_byte()
55 msg->addr = devaddr; /* I2C address of chip */ in sx1_i2c_write_byte()
56 msg->flags = 0; in sx1_i2c_write_byte()
57 msg->len = 2; in sx1_i2c_write_byte()
58 msg->buf = data; in sx1_i2c_write_byte()
78 return -ENODEV; in sx1_i2c_read_byte()
80 msg->addr = devaddr; /* I2C address of chip */ in sx1_i2c_read_byte()
81 msg->flags = 0; in sx1_i2c_read_byte()
82 msg->len = 1; in sx1_i2c_read_byte()
83 msg->buf = data; in sx1_i2c_read_byte()
87 msg->addr = devaddr; /* I2C address */ in sx1_i2c_read_byte()
88 msg->flags = I2C_M_RD; in sx1_i2c_read_byte()
89 msg->len = 1; in sx1_i2c_read_byte()
90 msg->buf = data; in sx1_i2c_read_byte()
99 /* set keyboard backlight intensity */
111 /* set LCD backlight intensity */
112 int sx1_setbacklight(u8 backlight) in sx1_setbacklight() argument
114 if (backlight > SOFIA_MAX_LIGHT_VAL) in sx1_setbacklight()
115 backlight = SOFIA_MAX_LIGHT_VAL; in sx1_setbacklight()
117 backlight); in sx1_setbacklight()
119 /* get current LCD backlight intensity */
120 int sx1_getbacklight (u8 * backlight) in sx1_getbacklight() argument
123 backlight); in sx1_getbacklight()
125 /* set LCD backlight power on/off */
162 /*----------- Keypad -------------------------*/
216 .name = "omap-keypad",
217 .id = -1,
225 /*----------- MTD -------------------------*/
228 /* bootloader (U-Boot, etc) in first sector */
233 .mask_flags = MTD_WRITEABLE, /* force read-only */
246 .size = SZ_2M - 2 * SZ_128K,
265 /* MTD Intel 4000 flash - new flashes */
268 .end = OMAP_CS0_PHYS + SZ_32M - 1,
273 .name = "physmap-flash",
282 /*----------- USB -------------------------*/
294 /*----------- LCD -------------------------*/
300 /*-----------------------------------------*/
306 /*-----------------------------------------*/
311 GPIO_LOOKUP("gpio-0-15", 1, "irda_off",
313 GPIO_LOOKUP("gpio-0-15", 11, "switch",
315 GPIO_LOOKUP("gpio-0-15", 15, "usb_on",
345 pr_err("Unable to get IRDA OFF GPIO descriptor\n"); in omap_sx1_init()
350 pr_err("Unable to get SWITCH GPIO descriptor\n"); in omap_sx1_init()
355 pr_err("Unable to get USB ON GPIO descriptor\n"); in omap_sx1_init()