Lines Matching +full:hi +full:- +full:speed

2  * arch/arm/mach-orion5x/dns323-setup.c
33 #include <asm/mach-types.h>
37 #include <plat/orion-gpio.h>
80 * Check for devices with hard-wired IRQs. in dns323_pci_map_irq()
83 if (irq != -1) in dns323_pci_map_irq()
86 return -1; in dns323_pci_map_irq()
112 * Layout as used by D-Link:
113 * 0x00000000-0x00010000 : "MTD1"
114 * 0x00010000-0x00020000 : "MTD2"
115 * 0x00020000-0x001a0000 : "Linux Kernel"
116 * 0x001a0000-0x007d0000 : "File System"
117 * 0x007d0000-0x00800000 : "u-boot"
141 .name = "u-boot",
156 .end = DNS323_NOR_BOOT_BASE + DNS323_NOR_BOOT_SIZE - 1,
160 .name = "physmap-flash",
177 /* dns323_parse_hex_*() taken from tsx09-common.c; should a common copy of these
183 return n - '0'; in dns323_parse_hex_nibble()
186 return n - 'A' + 10; in dns323_parse_hex_nibble()
189 return n - 'a' + 10; in dns323_parse_hex_nibble()
191 return -1; in dns323_parse_hex_nibble()
196 int hi; in dns323_parse_hex_byte() local
199 hi = dns323_parse_hex_nibble(b[0]); in dns323_parse_hex_byte()
202 if (hi < 0 || lo < 0) in dns323_parse_hex_byte()
203 return -1; in dns323_parse_hex_byte()
205 return (hi << 4) | lo; in dns323_parse_hex_byte()
215 * (0x007d0000-0x00800000) starting at offset 196480 (0x2ff80). in dns323_read_mac_addr()
219 return -ENOMEM; in dns323_read_mac_addr()
240 printk("DNS-323: Found ethernet MAC address: %pM\n", addr); in dns323_read_mac_addr()
248 return -EINVAL; in dns323_read_mac_addr()
252 * GPIO LEDs (simple - doesn't use hardware blinking support)
258 .default_trigger = "default-on",
267 .dev_id = "leds-gpio",
281 .dev_id = "leds-gpio",
305 .dev_id = "leds-gpio",
330 .name = "leds-gpio",
331 .id = -1,
375 .name = "gpio-keys",
376 .id = -1,
400 MPP6_GPIO, /* GMT G751-2f overtemp */
424 MPP6_GPIO, /* GMT G751-2f overtemp */
460 MPP18_GPIO, /* fan speed bit 0 */
461 MPP19_GPIO, /* fan speed bit 1 */
465 /* Rev C1 Fan speed notes:
473 * 0 1 low speed
474 * 1 0 high speed
477 * (*) I think the two bits control two feed-in resistors into a fixed
479 * than high speed, but d-link doesn't do it and you may get out of
484 * On the DNS-323 A1 and B1 the following devices are attached via I2C:
487 * 0x3e | GMT G760Af | fan speed PWM controller
488 * 0x48 | GMT G751-2f | temp. sensor and therm. watchdog (LM75 compatible)
502 * On the DNS-323 C1 the following devices are attached via I2C:
505 * 0x48 | GMT G751-2f | temp. sensor and therm. watchdog (LM75 compatible)
516 /* DNS-323 rev. A specific power off method */
519 pr_info("DNS-323: Triggering power-off...\n"); in dns323a_power_off()
523 /* DNS-323 rev B specific power off method */
526 pr_info("DNS-323: Triggering power-off...\n"); in dns323b_power_off()
533 /* DNS-323 rev. C specific power off method */
536 pr_info("DNS-323: Triggering power-off...\n"); in dns323c_power_off()
542 phy->dev_flags |= MARVELL_PHY_M1118_DNS323_LEDS; in dns323c_phy_fixup()
551 pr_debug("DNS-323: Identifying board ... \n"); in dns323_identify_rev()
556 pr_debug("DNS-323: 5181 found, board is A1\n"); in dns323_identify_rev()
559 pr_debug("DNS-323: 5182 found, board is B1 or C1, checking PHY...\n"); in dns323_identify_rev()
579 pr_warn("DNS-323: Timeout accessing PHY, assuming rev B1\n"); in dns323_identify_rev()
591 pr_warn("DNS-323: Timeout reading PHY, assuming rev B1\n"); in dns323_identify_rev()
594 pr_debug("DNS-323: Ethernet PHY ID 0x%x\n", reg & 0xffff); in dns323_identify_rev()
606 pr_warn("DNS-323: Unknown PHY ID 0x%04x, assuming rev B1\n", in dns323_identify_rev()
619 pr_info("DNS-323: Identified HW revision %c1\n", 'A' + system_rev); in dns323_init()
673 platform_device_register_simple("dns323c-fan", 0, NULL, 0); in dns323_init()
690 printk("DNS-323: Failed to read MAC address\n"); in dns323_init()
702 pr_err("DNS-323: failed to setup power-off GPIO\n"); in dns323_init()
706 /* 5182 built-in SATA init */ in dns323_init()
711 * controlled via leds-gpio. in dns323_init()
719 pr_err("DNS-323: failed to setup power-off GPIO\n"); in dns323_init()
723 /* 5182 built-in SATA init */ in dns323_init()
729 pr_err("DNS-323: failed to setup power-off GPIO\n"); in dns323_init()
732 /* Now, -this- should theoretically be done by the sata_mv driver in dns323_init()
745 /* Warning: D-Link uses a wrong mach-type (=526) in their bootloader */
746 MACHINE_START(DNS323, "D-Link DNS-323")