Lines Matching +full:power +full:- +full:button

2  * arch/arm/mach-orion5x/dns323-setup.c
32 #include <asm/mach-types.h>
77 * Check for devices with hard-wired IRQs. in dns323_pci_map_irq()
80 if (irq != -1) in dns323_pci_map_irq()
83 return -1; in dns323_pci_map_irq()
110 * Layout as used by D-Link:
111 * 0x00000000-0x00010000 : "MTD1"
112 * 0x00010000-0x00020000 : "MTD2"
113 * 0x00020000-0x001a0000 : "Linux Kernel"
114 * 0x001a0000-0x007d0000 : "File System"
115 * 0x007d0000-0x00800000 : "u-boot"
139 .name = "u-boot",
154 .end = DNS323_NOR_BOOT_BASE + DNS323_NOR_BOOT_SIZE - 1,
158 .name = "physmap-flash",
175 /* dns323_parse_hex_*() taken from tsx09-common.c; should a common copy of these
181 return n - '0'; in dns323_parse_hex_nibble()
184 return n - 'A' + 10; in dns323_parse_hex_nibble()
187 return n - 'a' + 10; in dns323_parse_hex_nibble()
189 return -1; in dns323_parse_hex_nibble()
201 return -1; in dns323_parse_hex_byte()
213 * (0x007d0000-0x00800000) starting at offset 196480 (0x2ff80). in dns323_read_mac_addr()
217 return -ENOMEM; in dns323_read_mac_addr()
238 printk("DNS-323: Found ethernet MAC address: "); in dns323_read_mac_addr()
248 return -EINVAL; in dns323_read_mac_addr()
252 * GPIO LEDs (simple - doesn't use hardware blinking support)
278 .name = "power:blue",
280 .default_trigger = "default-on",
295 .name = "power:blue",
324 .name = "leds-gpio",
325 .id = -1,
339 .desc = "Reset Button",
344 .desc = "Power Button",
358 .desc = "Power Button",
369 .name = "gpio-keys",
370 .id = -1,
392 MPP4_GPIO, /* power button LED */
393 MPP5_GPIO, /* power button LED */
394 MPP6_GPIO, /* GMT G751-2f overtemp */
396 MPP8_GPIO, /* triggers power off */
397 MPP9_GPIO, /* power button switch */
398 MPP10_GPIO, /* reset button switch */
416 MPP4_GPIO, /* power button LED */
417 MPP5_GPIO, /* power button LED */
418 MPP6_GPIO, /* GMT G751-2f overtemp */
420 MPP8_GPIO, /* triggers power off */
421 MPP9_GPIO, /* power button switch */
422 MPP10_GPIO, /* reset button switch */
437 MPP1_GPIO, /* input power switch (0 = pressed) */
438 MPP2_GPIO, /* output power off */
453 MPP17_GPIO, /* power button LED */
471 * (*) I think the two bits control two feed-in resistors into a fixed
473 * than high speed, but d-link doesn't do it and you may get out of
478 * On the DNS-323 A1 and B1 the following devices are attached via I2C:
482 * 0x48 | GMT G751-2f | temp. sensor and therm. watchdog (LM75 compatible)
496 * On the DNS-323 C1 the following devices are attached via I2C:
499 * 0x48 | GMT G751-2f | temp. sensor and therm. watchdog (LM75 compatible)
510 /* DNS-323 rev. A specific power off method */
513 pr_info("DNS-323: Triggering power-off...\n"); in dns323a_power_off()
517 /* DNS-323 rev B specific power off method */
520 pr_info("DNS-323: Triggering power-off...\n"); in dns323b_power_off()
521 /* Pin has to be changed to 1 and back to 0 to do actual power off. */ in dns323b_power_off()
527 /* DNS-323 rev. C specific power off method */
530 pr_info("DNS-323: Triggering power-off...\n"); in dns323c_power_off()
536 phy->dev_flags |= MARVELL_PHY_M1118_DNS323_LEDS; in dns323c_phy_fixup()
545 pr_debug("DNS-323: Identifying board ... \n"); in dns323_identify_rev()
550 pr_debug("DNS-323: 5181 found, board is A1\n"); in dns323_identify_rev()
553 pr_debug("DNS-323: 5182 found, board is B1 or C1, checking PHY...\n"); in dns323_identify_rev()
573 pr_warning("DNS-323: Timeout accessing PHY, assuming rev B1\n"); in dns323_identify_rev()
585 pr_warning("DNS-323: Timeout reading PHY, assuming rev B1\n"); in dns323_identify_rev()
588 pr_debug("DNS-323: Ethernet PHY ID 0x%x\n", reg & 0xffff); in dns323_identify_rev()
600 pr_warning("DNS-323: Unknown PHY ID 0x%04x, assuming rev B1\n", in dns323_identify_rev()
613 pr_info("DNS-323: Identified HW revision %c1\n", 'A' + system_rev); in dns323_init()
640 /* The 5181 power LED is active low and requires in dns323_init()
644 gpio_request(DNS323_GPIO_LED_POWER1, "Power Led Enable"); in dns323_init()
659 platform_device_register_simple("dns323c-fan", 0, NULL, 0); in dns323_init()
674 printk("DNS-323: Failed to read MAC address\n"); in dns323_init()
686 pr_err("DNS-323: failed to setup power-off GPIO\n"); in dns323_init()
690 /* 5182 built-in SATA init */ in dns323_init()
694 * Without this flag set, power LED will flash and cannot be in dns323_init()
695 * controlled via leds-gpio. in dns323_init()
703 pr_err("DNS-323: failed to setup power-off GPIO\n"); in dns323_init()
707 /* 5182 built-in SATA init */ in dns323_init()
713 pr_err("DNS-323: failed to setup power-off GPIO\n"); in dns323_init()
716 /* Now, -this- should theorically be done by the sata_mv driver in dns323_init()
729 /* Warning: D-Link uses a wrong mach-type (=526) in their bootloader */
730 MACHINE_START(DNS323, "D-Link DNS-323")