Lines Matching +full:power +full:- +full:off
1 // SPDX-License-Identifier: GPL-2.0-only
3 * arch/arm/mach-orion5x/net2big-setup.c
23 #include <asm/mach-types.h>
25 #include <plat/orion-gpio.h>
46 * TODO: Check write support on flash MX29LV400CBTC-70G
68 + NET2BIG_NOR_BOOT_SIZE - 1,
72 .name = "physmap-flash",
126 err = gpio_request(NET2BIG_GPIO_SATA0_POWER, "SATA0 power status"); in net2big_sata_power_init()
133 pr_err("net2big: failed to setup SATA0 power GPIO\n"); in net2big_sata_power_init()
137 err = gpio_request(NET2BIG_GPIO_SATA1_POWER, "SATA1 power status"); in net2big_sata_power_init()
144 pr_err("net2big: failed to setup SATA1 power GPIO\n"); in net2big_sata_power_init()
148 err = gpio_request(NET2BIG_GPIO_SATA_POWER_REQ, "SATA power request"); in net2big_sata_power_init()
155 pr_err("net2big: failed to setup SATA power request GPIO\n"); in net2big_sata_power_init()
165 * SATA power up on both disk is done by pulling high the CPLD power in net2big_sata_power_init()
172 pr_info("net2big: power up SATA hard disks\n"); in net2big_sata_power_init()
189 * The power front LEDs (blue and red) and SATA red LEDs are controlled via a
190 * single GPIO line and are compatible with the leds-gpio driver.
198 * 1 | 0 | off
217 .name = "net2big:red:power",
220 .name = "net2big:blue:power",
231 .dev_id = "leds-gpio",
251 .name = "leds-gpio",
252 .id = -1,
262 /* Stop initial CPLD slow red/blue blinking on power LED. */ in net2big_gpio_leds_init()
264 "Power LED blink stop"); in net2big_gpio_leds_init()
271 pr_err("net2big: failed to setup power LED blink GPIO\n"); in net2big_gpio_leds_init()
317 .desc = "Power rocker switch (auto|off)",
324 .desc = "Power rocker switch (on|auto)",
342 .name = "gpio-keys",
343 .id = -1,
358 MPP4_GPIO, /* Fan activity (0 = Off, 1 = On) */
360 MPP6_GPIO, /* Red front LED (0 = Off, 1 = On) */
362 MPP8_GPIO, /* Rear power switch (on|auto) */
363 MPP9_GPIO, /* Rear power switch (auto|off) */
364 MPP10_GPIO, /* SATA 1 red LED (0 = Off, 1 = On) */
365 MPP11_GPIO, /* SATA 0 red LED (0 = Off, 1 = On) */
373 MPP19_GPIO, /* SATA{0,1} power On/Off request */
376 /* 23: SATA 0 power status */
377 /* 24: Board power off */
378 /* 25: SATA 1 power status */
424 if (gpio_request(NET2BIG_GPIO_POWER_OFF, "power-off") == 0 && in net2big_init()
428 pr_err("net2big: failed to configure power-off GPIO\n"); in net2big_init()
433 /* Warning: LaCie use a wrong mach-type (0x20e=526) in their bootloader. */