Lines Matching refs:sio_data
2388 struct it87_sio_data *sio_data) in it87_find() argument
2404 sio_data->type = it87; in it87_find()
2407 sio_data->type = it8712; in it87_find()
2411 sio_data->type = it8716; in it87_find()
2414 sio_data->type = it8718; in it87_find()
2417 sio_data->type = it8720; in it87_find()
2420 sio_data->type = it8721; in it87_find()
2423 sio_data->type = it8728; in it87_find()
2426 sio_data->type = it8732; in it87_find()
2429 sio_data->type = it8792; in it87_find()
2432 sio_data->type = it8771; in it87_find()
2435 sio_data->type = it8772; in it87_find()
2438 sio_data->type = it8781; in it87_find()
2441 sio_data->type = it8782; in it87_find()
2444 sio_data->type = it8783; in it87_find()
2447 sio_data->type = it8786; in it87_find()
2450 sio_data->type = it8790; in it87_find()
2454 sio_data->type = it8603; in it87_find()
2457 sio_data->type = it8620; in it87_find()
2460 sio_data->type = it8622; in it87_find()
2463 sio_data->type = it8628; in it87_find()
2485 sio_data->sioaddr = sioaddr; in it87_find()
2486 sio_data->revision = superio_inb(sioaddr, DEVREV) & 0x0f; in it87_find()
2488 it87_devices[sio_data->type].suffix, in it87_find()
2489 *address, sio_data->revision); in it87_find()
2491 config = &it87_devices[sio_data->type]; in it87_find()
2495 sio_data->internal |= BIT(1); in it87_find()
2498 sio_data->internal |= BIT(2); in it87_find()
2502 sio_data->internal |= BIT(3); /* in9 is AVCC */ in it87_find()
2504 sio_data->skip_in |= BIT(9); in it87_find()
2507 sio_data->skip_pwm |= BIT(3) | BIT(4) | BIT(5); in it87_find()
2509 sio_data->skip_pwm |= BIT(5); in it87_find()
2512 sio_data->skip_vid = 1; in it87_find()
2515 if (sio_data->type == it87) { in it87_find()
2518 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2520 } else if (sio_data->type == it8783) { in it87_find()
2533 sio_data->skip_fan |= BIT(2); in it87_find()
2536 sio_data->skip_pwm |= BIT(2); in it87_find()
2540 sio_data->skip_fan |= BIT(1); in it87_find()
2542 sio_data->skip_pwm |= BIT(1); in it87_find()
2546 sio_data->skip_in |= BIT(5); /* No VIN5 */ in it87_find()
2550 sio_data->skip_in |= BIT(6); /* No VIN6 */ in it87_find()
2574 sio_data->need_in7_reroute = true; in it87_find()
2582 sio_data->internal |= BIT(0); in it87_find()
2584 sio_data->internal |= BIT(1); in it87_find()
2586 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2588 } else if (sio_data->type == it8603) { in it87_find()
2597 sio_data->skip_pwm |= BIT(2); in it87_find()
2599 sio_data->skip_fan |= BIT(2); in it87_find()
2604 sio_data->skip_pwm |= BIT(1); in it87_find()
2606 sio_data->skip_fan |= BIT(1); in it87_find()
2608 sio_data->skip_in |= BIT(5); /* No VIN5 */ in it87_find()
2609 sio_data->skip_in |= BIT(6); /* No VIN6 */ in it87_find()
2611 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2613 } else if (sio_data->type == it8620 || sio_data->type == it8628) { in it87_find()
2621 sio_data->skip_pwm |= BIT(4); in it87_find()
2626 sio_data->skip_fan |= BIT(3); in it87_find()
2628 sio_data->skip_fan |= BIT(4); in it87_find()
2633 sio_data->skip_pwm |= BIT(2); in it87_find()
2635 sio_data->skip_fan |= BIT(2); in it87_find()
2640 sio_data->skip_pwm |= BIT(3); in it87_find()
2645 sio_data->skip_pwm |= BIT(1); in it87_find()
2647 sio_data->skip_fan |= BIT(1); in it87_find()
2650 sio_data->skip_pwm |= BIT(5); in it87_find()
2651 sio_data->skip_fan |= BIT(5); in it87_find()
2657 sio_data->internal |= BIT(0); in it87_find()
2659 sio_data->skip_in |= BIT(9); in it87_find()
2661 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2663 } else if (sio_data->type == it8622) { in it87_find()
2671 sio_data->skip_fan |= BIT(3); in it87_find()
2673 sio_data->skip_pwm |= BIT(3); in it87_find()
2678 sio_data->skip_pwm |= BIT(2); in it87_find()
2680 sio_data->skip_fan |= BIT(2); in it87_find()
2682 sio_data->skip_pwm |= BIT(4); in it87_find()
2684 sio_data->skip_fan |= BIT(4); in it87_find()
2689 sio_data->skip_pwm |= BIT(1); in it87_find()
2691 sio_data->skip_fan |= BIT(1); in it87_find()
2696 sio_data->skip_in |= BIT(9); in it87_find()
2698 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2709 switch (sio_data->type) { in it87_find()
2712 sio_data->skip_fan |= BIT(3); in it87_find()
2714 sio_data->skip_fan |= BIT(4); in it87_find()
2720 sio_data->skip_fan |= BIT(3); in it87_find()
2722 sio_data->skip_fan |= BIT(4); in it87_find()
2730 if (!sio_data->skip_vid) { in it87_find()
2734 sio_data->skip_vid = 1; in it87_find()
2740 sio_data->skip_pwm |= BIT(2); in it87_find()
2742 sio_data->skip_fan |= BIT(2); in it87_find()
2747 sio_data->skip_pwm |= BIT(1); in it87_find()
2749 sio_data->skip_fan |= BIT(1); in it87_find()
2751 if ((sio_data->type == it8718 || sio_data->type == it8720) && in it87_find()
2752 !(sio_data->skip_vid)) in it87_find()
2753 sio_data->vid_value = superio_inb(sioaddr, in it87_find()
2758 uart6 = sio_data->type == it8782 && (reg & BIT(2)); in it87_find()
2774 if ((sio_data->type == it8720 || uart6) && !(reg & BIT(1))) { in it87_find()
2777 sio_data->need_in7_reroute = true; in it87_find()
2781 sio_data->internal |= BIT(0); in it87_find()
2783 sio_data->internal |= BIT(1); in it87_find()
2795 sio_data->skip_in |= BIT(5) | BIT(6); in it87_find()
2796 sio_data->skip_temp |= BIT(2); in it87_find()
2799 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2802 if (sio_data->beep_pin) in it87_find()
2820 sio_data->skip_pwm = BIT(1); in it87_find()
2867 struct it87_sio_data *sio_data = dev_get_platdata(&pdev->dev); in it87_check_tachometers_reset() local
2871 mask = 0x70 & ~(sio_data->skip_fan << 4); in it87_check_tachometers_reset()
2909 struct it87_sio_data *sio_data = dev_get_platdata(&pdev->dev); in it87_init_device() local
2963 data->has_fan &= ~sio_data->skip_fan; in it87_init_device()
2970 sio_data->skip_pwm |= BIT(4); in it87_init_device()
2972 sio_data->skip_pwm |= BIT(5); in it87_init_device()
3039 struct it87_sio_data *sio_data = dev_get_platdata(dev); in it87_probe() local
3057 data->sioaddr = sio_data->sioaddr; in it87_probe()
3058 data->type = sio_data->type; in it87_probe()
3059 data->features = it87_devices[sio_data->type].features; in it87_probe()
3060 data->peci_mask = it87_devices[sio_data->type].peci_mask; in it87_probe()
3061 data->old_peci_mask = it87_devices[sio_data->type].old_peci_mask; in it87_probe()
3069 if (sio_data->revision >= 0x03) { in it87_probe()
3075 if (sio_data->revision >= 0x08) { in it87_probe()
3102 if (sio_data->internal & BIT(0)) in it87_probe()
3104 if (sio_data->internal & BIT(1)) in it87_probe()
3106 if (sio_data->internal & BIT(2)) in it87_probe()
3108 if (sio_data->internal & BIT(3)) in it87_probe()
3110 } else if (sio_data->type == it8781 || sio_data->type == it8782 || in it87_probe()
3111 sio_data->type == it8783) { in it87_probe()
3112 if (sio_data->internal & BIT(0)) in it87_probe()
3114 if (sio_data->internal & BIT(1)) in it87_probe()
3119 if (sio_data->skip_temp & BIT(2)) { in it87_probe()
3120 if (sio_data->type == it8782 && in it87_probe()
3125 data->in_internal = sio_data->internal; in it87_probe()
3126 data->need_in7_reroute = sio_data->need_in7_reroute; in it87_probe()
3127 data->has_in = 0x3ff & ~sio_data->skip_in; in it87_probe()
3149 data->has_beep = !!sio_data->beep_pin; in it87_probe()
3154 if (!sio_data->skip_vid) { in it87_probe()
3158 data->vid = sio_data->vid_value; in it87_probe()
3169 data->has_pwm &= ~sio_data->skip_pwm; in it87_probe()
3177 it87_devices[sio_data->type].name, in it87_probe()
3252 const struct it87_sio_data *sio_data) in it87_device_add() argument
3277 err = platform_device_add_data(pdev, sio_data, in it87_device_add()
3301 struct it87_sio_data sio_data; in sm_it87_init() local
3311 memset(&sio_data, 0, sizeof(struct it87_sio_data)); in sm_it87_init()
3313 err = it87_find(sioaddr[i], &isa_address[i], &sio_data); in sm_it87_init()
3323 err = it87_device_add(i, isa_address[i], &sio_data); in sm_it87_init()
3333 if (sio_data.type == it87) in sm_it87_init()