Lines Matching refs:sio_data
2693 struct it87_sio_data *sio_data, int chip_cnt) in it87_find() argument
2727 sio_data->type = it87; in it87_find()
2730 sio_data->type = it8712; in it87_find()
2734 sio_data->type = it8716; in it87_find()
2737 sio_data->type = it8718; in it87_find()
2740 sio_data->type = it8720; in it87_find()
2743 sio_data->type = it8721; in it87_find()
2746 sio_data->type = it8728; in it87_find()
2749 sio_data->type = it8732; in it87_find()
2752 sio_data->type = it8792; in it87_find()
2755 sio_data->type = it8771; in it87_find()
2758 sio_data->type = it8772; in it87_find()
2761 sio_data->type = it8781; in it87_find()
2764 sio_data->type = it8782; in it87_find()
2767 sio_data->type = it8783; in it87_find()
2770 sio_data->type = it8786; in it87_find()
2773 sio_data->type = it8790; in it87_find()
2777 sio_data->type = it8603; in it87_find()
2780 sio_data->type = it8620; in it87_find()
2783 sio_data->type = it8622; in it87_find()
2786 sio_data->type = it8628; in it87_find()
2789 sio_data->type = it87952; in it87_find()
2798 config = &it87_devices[sio_data->type]; in it87_find()
2827 sio_data->sioaddr = sioaddr; in it87_find()
2828 sio_data->revision = superio_inb(sioaddr, DEVREV) & 0x0f; in it87_find()
2830 it87_devices[sio_data->type].model, in it87_find()
2831 *address, sio_data->revision); in it87_find()
2835 sio_data->internal |= BIT(1); in it87_find()
2838 sio_data->internal |= BIT(2); in it87_find()
2842 sio_data->internal |= BIT(3); /* in9 is AVCC */ in it87_find()
2844 sio_data->skip_in |= BIT(9); in it87_find()
2847 sio_data->skip_pwm |= BIT(3) | BIT(4) | BIT(5); in it87_find()
2849 sio_data->skip_pwm |= BIT(4) | BIT(5); in it87_find()
2851 sio_data->skip_pwm |= BIT(5); in it87_find()
2854 sio_data->skip_vid = 1; in it87_find()
2857 if (sio_data->type == it87) { in it87_find()
2860 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2862 } else if (sio_data->type == it8783) { in it87_find()
2875 sio_data->skip_fan |= BIT(2); in it87_find()
2878 sio_data->skip_pwm |= BIT(2); in it87_find()
2882 sio_data->skip_fan |= BIT(1); in it87_find()
2884 sio_data->skip_pwm |= BIT(1); in it87_find()
2888 sio_data->skip_in |= BIT(5); /* No VIN5 */ in it87_find()
2892 sio_data->skip_in |= BIT(6); /* No VIN6 */ in it87_find()
2916 sio_data->need_in7_reroute = true; in it87_find()
2924 sio_data->internal |= BIT(0); in it87_find()
2926 sio_data->internal |= BIT(1); in it87_find()
2928 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2930 } else if (sio_data->type == it8603) { in it87_find()
2939 sio_data->skip_pwm |= BIT(2); in it87_find()
2941 sio_data->skip_fan |= BIT(2); in it87_find()
2946 sio_data->skip_pwm |= BIT(1); in it87_find()
2948 sio_data->skip_fan |= BIT(1); in it87_find()
2950 sio_data->skip_in |= BIT(5); /* No VIN5 */ in it87_find()
2951 sio_data->skip_in |= BIT(6); /* No VIN6 */ in it87_find()
2953 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2955 } else if (sio_data->type == it8620 || sio_data->type == it8628) { in it87_find()
2963 sio_data->skip_pwm |= BIT(4); in it87_find()
2968 sio_data->skip_fan |= BIT(3); in it87_find()
2970 sio_data->skip_fan |= BIT(4); in it87_find()
2975 sio_data->skip_pwm |= BIT(2); in it87_find()
2977 sio_data->skip_fan |= BIT(2); in it87_find()
2982 sio_data->skip_pwm |= BIT(3); in it87_find()
2987 sio_data->skip_pwm |= BIT(1); in it87_find()
2989 sio_data->skip_fan |= BIT(1); in it87_find()
2992 sio_data->skip_pwm |= BIT(5); in it87_find()
2993 sio_data->skip_fan |= BIT(5); in it87_find()
2999 sio_data->internal |= BIT(0); in it87_find()
3001 sio_data->skip_in |= BIT(9); in it87_find()
3003 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
3005 } else if (sio_data->type == it8622) { in it87_find()
3013 sio_data->skip_fan |= BIT(3); in it87_find()
3015 sio_data->skip_pwm |= BIT(3); in it87_find()
3020 sio_data->skip_pwm |= BIT(2); in it87_find()
3022 sio_data->skip_fan |= BIT(2); in it87_find()
3024 sio_data->skip_pwm |= BIT(4); in it87_find()
3026 sio_data->skip_fan |= BIT(4); in it87_find()
3031 sio_data->skip_pwm |= BIT(1); in it87_find()
3033 sio_data->skip_fan |= BIT(1); in it87_find()
3038 sio_data->skip_in |= BIT(9); in it87_find()
3040 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
3042 } else if (sio_data->type == it8732) { in it87_find()
3050 sio_data->skip_pwm |= BIT(1); in it87_find()
3052 sio_data->skip_fan |= BIT(1); in it87_find()
3057 sio_data->skip_pwm |= BIT(2); in it87_find()
3059 sio_data->skip_fan |= BIT(2); in it87_find()
3061 sio_data->skip_fan |= BIT(3); in it87_find()
3066 sio_data->internal |= BIT(0); in it87_find()
3068 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
3079 switch (sio_data->type) { in it87_find()
3082 sio_data->skip_fan |= BIT(3); in it87_find()
3084 sio_data->skip_fan |= BIT(4); in it87_find()
3090 sio_data->skip_fan |= BIT(3); in it87_find()
3092 sio_data->skip_fan |= BIT(4); in it87_find()
3100 if (!sio_data->skip_vid) { in it87_find()
3104 sio_data->skip_vid = 1; in it87_find()
3110 sio_data->skip_pwm |= BIT(2); in it87_find()
3112 sio_data->skip_fan |= BIT(2); in it87_find()
3117 sio_data->skip_pwm |= BIT(1); in it87_find()
3119 sio_data->skip_fan |= BIT(1); in it87_find()
3121 if ((sio_data->type == it8718 || sio_data->type == it8720) && in it87_find()
3122 !(sio_data->skip_vid)) in it87_find()
3123 sio_data->vid_value = superio_inb(sioaddr, in it87_find()
3128 uart6 = sio_data->type == it8782 && (reg & BIT(2)); in it87_find()
3144 if ((sio_data->type == it8720 || uart6) && !(reg & BIT(1))) { in it87_find()
3147 sio_data->need_in7_reroute = true; in it87_find()
3151 sio_data->internal |= BIT(0); in it87_find()
3153 sio_data->internal |= BIT(1); in it87_find()
3165 sio_data->skip_in |= BIT(5) | BIT(6); in it87_find()
3166 sio_data->skip_temp |= BIT(2); in it87_find()
3169 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
3172 if (sio_data->beep_pin) in it87_find()
3177 sio_data->skip_pwm |= dmi_data->skip_pwm; in it87_find()
3184 sio_data->ec_special_config = reg; in it87_find()
3185 sio_data->smbus_bitmap = reg & config->smbus_bitmap; in it87_find()
3231 struct it87_sio_data *sio_data = dev_get_platdata(&pdev->dev); in it87_check_tachometers_reset() local
3235 mask = 0x70 & ~(sio_data->skip_fan << 4); in it87_check_tachometers_reset()
3273 struct it87_sio_data *sio_data = dev_get_platdata(&pdev->dev); in it87_init_device() local
3325 data->has_fan &= ~sio_data->skip_fan; in it87_init_device()
3332 sio_data->skip_pwm |= BIT(4); in it87_init_device()
3334 sio_data->skip_pwm |= BIT(5); in it87_init_device()
3401 struct it87_sio_data *sio_data = dev_get_platdata(dev); in it87_probe() local
3420 data->sioaddr = sio_data->sioaddr; in it87_probe()
3421 data->type = sio_data->type; in it87_probe()
3422 data->smbus_bitmap = sio_data->smbus_bitmap; in it87_probe()
3423 data->ec_special_config = sio_data->ec_special_config; in it87_probe()
3424 data->features = it87_devices[sio_data->type].features; in it87_probe()
3425 data->peci_mask = it87_devices[sio_data->type].peci_mask; in it87_probe()
3426 data->old_peci_mask = it87_devices[sio_data->type].old_peci_mask; in it87_probe()
3434 if (sio_data->revision >= 0x03) { in it87_probe()
3440 if (sio_data->revision >= 0x08) { in it87_probe()
3473 if (sio_data->internal & BIT(0)) in it87_probe()
3475 if (sio_data->internal & BIT(1)) in it87_probe()
3477 if (sio_data->internal & BIT(2)) in it87_probe()
3479 if (sio_data->internal & BIT(3)) in it87_probe()
3481 } else if (sio_data->type == it8781 || sio_data->type == it8782 || in it87_probe()
3482 sio_data->type == it8783) { in it87_probe()
3483 if (sio_data->internal & BIT(0)) in it87_probe()
3485 if (sio_data->internal & BIT(1)) in it87_probe()
3490 if (sio_data->skip_temp & BIT(2)) { in it87_probe()
3491 if (sio_data->type == it8782 && in it87_probe()
3496 data->in_internal = sio_data->internal; in it87_probe()
3497 data->need_in7_reroute = sio_data->need_in7_reroute; in it87_probe()
3498 data->has_in = 0x3ff & ~sio_data->skip_in; in it87_probe()
3522 data->has_beep = !!sio_data->beep_pin; in it87_probe()
3529 if (!sio_data->skip_vid) { in it87_probe()
3533 data->vid = sio_data->vid_value; in it87_probe()
3544 data->has_pwm &= ~sio_data->skip_pwm; in it87_probe()
3552 it87_devices[sio_data->type].name, in it87_probe()
3627 const struct it87_sio_data *sio_data) in it87_device_add() argument
3654 err = platform_device_add_data(pdev, sio_data, in it87_device_add()
3718 struct it87_sio_data sio_data; in sm_it87_init() local
3730 memset(&sio_data, 0, sizeof(struct it87_sio_data)); in sm_it87_init()
3732 err = it87_find(sioaddr[i], &isa_address[i], &sio_data, i); in sm_it87_init()
3742 err = it87_device_add(i, isa_address[i], &sio_data); in sm_it87_init()
3752 if (sio_data.type == it87) in sm_it87_init()