Lines Matching refs:sio_data
2671 struct it87_sio_data *sio_data, int chip_cnt) in it87_find() argument
2696 sio_data->type = it87; in it87_find()
2699 sio_data->type = it8712; in it87_find()
2703 sio_data->type = it8716; in it87_find()
2706 sio_data->type = it8718; in it87_find()
2709 sio_data->type = it8720; in it87_find()
2712 sio_data->type = it8721; in it87_find()
2715 sio_data->type = it8728; in it87_find()
2718 sio_data->type = it8732; in it87_find()
2721 sio_data->type = it8792; in it87_find()
2724 sio_data->type = it8771; in it87_find()
2727 sio_data->type = it8772; in it87_find()
2730 sio_data->type = it8781; in it87_find()
2733 sio_data->type = it8782; in it87_find()
2736 sio_data->type = it8783; in it87_find()
2739 sio_data->type = it8786; in it87_find()
2742 sio_data->type = it8790; in it87_find()
2746 sio_data->type = it8603; in it87_find()
2749 sio_data->type = it8620; in it87_find()
2752 sio_data->type = it8622; in it87_find()
2755 sio_data->type = it8628; in it87_find()
2758 sio_data->type = it87952; in it87_find()
2767 config = &it87_devices[sio_data->type]; in it87_find()
2784 sio_data->sioaddr = sioaddr; in it87_find()
2785 sio_data->revision = superio_inb(sioaddr, DEVREV) & 0x0f; in it87_find()
2787 it87_devices[sio_data->type].model, in it87_find()
2788 *address, sio_data->revision); in it87_find()
2792 sio_data->internal |= BIT(1); in it87_find()
2795 sio_data->internal |= BIT(2); in it87_find()
2799 sio_data->internal |= BIT(3); /* in9 is AVCC */ in it87_find()
2801 sio_data->skip_in |= BIT(9); in it87_find()
2804 sio_data->skip_pwm |= BIT(3) | BIT(4) | BIT(5); in it87_find()
2806 sio_data->skip_pwm |= BIT(4) | BIT(5); in it87_find()
2808 sio_data->skip_pwm |= BIT(5); in it87_find()
2811 sio_data->skip_vid = 1; in it87_find()
2814 if (sio_data->type == it87) { in it87_find()
2817 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2819 } else if (sio_data->type == it8783) { in it87_find()
2832 sio_data->skip_fan |= BIT(2); in it87_find()
2835 sio_data->skip_pwm |= BIT(2); in it87_find()
2839 sio_data->skip_fan |= BIT(1); in it87_find()
2841 sio_data->skip_pwm |= BIT(1); in it87_find()
2845 sio_data->skip_in |= BIT(5); /* No VIN5 */ in it87_find()
2849 sio_data->skip_in |= BIT(6); /* No VIN6 */ in it87_find()
2873 sio_data->need_in7_reroute = true; in it87_find()
2881 sio_data->internal |= BIT(0); in it87_find()
2883 sio_data->internal |= BIT(1); in it87_find()
2885 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2887 } else if (sio_data->type == it8603) { in it87_find()
2896 sio_data->skip_pwm |= BIT(2); in it87_find()
2898 sio_data->skip_fan |= BIT(2); in it87_find()
2903 sio_data->skip_pwm |= BIT(1); in it87_find()
2905 sio_data->skip_fan |= BIT(1); in it87_find()
2907 sio_data->skip_in |= BIT(5); /* No VIN5 */ in it87_find()
2908 sio_data->skip_in |= BIT(6); /* No VIN6 */ in it87_find()
2910 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2912 } else if (sio_data->type == it8620 || sio_data->type == it8628) { in it87_find()
2920 sio_data->skip_pwm |= BIT(4); in it87_find()
2925 sio_data->skip_fan |= BIT(3); in it87_find()
2927 sio_data->skip_fan |= BIT(4); in it87_find()
2932 sio_data->skip_pwm |= BIT(2); in it87_find()
2934 sio_data->skip_fan |= BIT(2); in it87_find()
2939 sio_data->skip_pwm |= BIT(3); in it87_find()
2944 sio_data->skip_pwm |= BIT(1); in it87_find()
2946 sio_data->skip_fan |= BIT(1); in it87_find()
2949 sio_data->skip_pwm |= BIT(5); in it87_find()
2950 sio_data->skip_fan |= BIT(5); in it87_find()
2956 sio_data->internal |= BIT(0); in it87_find()
2958 sio_data->skip_in |= BIT(9); in it87_find()
2960 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2962 } else if (sio_data->type == it8622) { in it87_find()
2970 sio_data->skip_fan |= BIT(3); in it87_find()
2972 sio_data->skip_pwm |= BIT(3); in it87_find()
2977 sio_data->skip_pwm |= BIT(2); in it87_find()
2979 sio_data->skip_fan |= BIT(2); in it87_find()
2981 sio_data->skip_pwm |= BIT(4); in it87_find()
2983 sio_data->skip_fan |= BIT(4); in it87_find()
2988 sio_data->skip_pwm |= BIT(1); in it87_find()
2990 sio_data->skip_fan |= BIT(1); in it87_find()
2995 sio_data->skip_in |= BIT(9); in it87_find()
2997 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2999 } else if (sio_data->type == it8732) { in it87_find()
3007 sio_data->skip_pwm |= BIT(1); in it87_find()
3009 sio_data->skip_fan |= BIT(1); in it87_find()
3014 sio_data->skip_pwm |= BIT(2); in it87_find()
3016 sio_data->skip_fan |= BIT(2); in it87_find()
3018 sio_data->skip_fan |= BIT(3); in it87_find()
3023 sio_data->internal |= BIT(0); in it87_find()
3025 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
3036 switch (sio_data->type) { in it87_find()
3039 sio_data->skip_fan |= BIT(3); in it87_find()
3041 sio_data->skip_fan |= BIT(4); in it87_find()
3047 sio_data->skip_fan |= BIT(3); in it87_find()
3049 sio_data->skip_fan |= BIT(4); in it87_find()
3057 if (!sio_data->skip_vid) { in it87_find()
3061 sio_data->skip_vid = 1; in it87_find()
3067 sio_data->skip_pwm |= BIT(2); in it87_find()
3069 sio_data->skip_fan |= BIT(2); in it87_find()
3074 sio_data->skip_pwm |= BIT(1); in it87_find()
3076 sio_data->skip_fan |= BIT(1); in it87_find()
3078 if ((sio_data->type == it8718 || sio_data->type == it8720) && in it87_find()
3079 !(sio_data->skip_vid)) in it87_find()
3080 sio_data->vid_value = superio_inb(sioaddr, in it87_find()
3085 uart6 = sio_data->type == it8782 && (reg & BIT(2)); in it87_find()
3101 if ((sio_data->type == it8720 || uart6) && !(reg & BIT(1))) { in it87_find()
3104 sio_data->need_in7_reroute = true; in it87_find()
3108 sio_data->internal |= BIT(0); in it87_find()
3110 sio_data->internal |= BIT(1); in it87_find()
3122 sio_data->skip_in |= BIT(5) | BIT(6); in it87_find()
3123 sio_data->skip_temp |= BIT(2); in it87_find()
3126 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
3129 if (sio_data->beep_pin) in it87_find()
3134 sio_data->skip_pwm |= dmi_data->skip_pwm; in it87_find()
3141 sio_data->ec_special_config = reg; in it87_find()
3142 sio_data->smbus_bitmap = reg & config->smbus_bitmap; in it87_find()
3188 struct it87_sio_data *sio_data = dev_get_platdata(&pdev->dev); in it87_check_tachometers_reset() local
3192 mask = 0x70 & ~(sio_data->skip_fan << 4); in it87_check_tachometers_reset()
3230 struct it87_sio_data *sio_data = dev_get_platdata(&pdev->dev); in it87_init_device() local
3282 data->has_fan &= ~sio_data->skip_fan; in it87_init_device()
3289 sio_data->skip_pwm |= BIT(4); in it87_init_device()
3291 sio_data->skip_pwm |= BIT(5); in it87_init_device()
3358 struct it87_sio_data *sio_data = dev_get_platdata(dev); in it87_probe() local
3377 data->sioaddr = sio_data->sioaddr; in it87_probe()
3378 data->type = sio_data->type; in it87_probe()
3379 data->smbus_bitmap = sio_data->smbus_bitmap; in it87_probe()
3380 data->ec_special_config = sio_data->ec_special_config; in it87_probe()
3381 data->features = it87_devices[sio_data->type].features; in it87_probe()
3382 data->peci_mask = it87_devices[sio_data->type].peci_mask; in it87_probe()
3383 data->old_peci_mask = it87_devices[sio_data->type].old_peci_mask; in it87_probe()
3391 if (sio_data->revision >= 0x03) { in it87_probe()
3397 if (sio_data->revision >= 0x08) { in it87_probe()
3430 if (sio_data->internal & BIT(0)) in it87_probe()
3432 if (sio_data->internal & BIT(1)) in it87_probe()
3434 if (sio_data->internal & BIT(2)) in it87_probe()
3436 if (sio_data->internal & BIT(3)) in it87_probe()
3438 } else if (sio_data->type == it8781 || sio_data->type == it8782 || in it87_probe()
3439 sio_data->type == it8783) { in it87_probe()
3440 if (sio_data->internal & BIT(0)) in it87_probe()
3442 if (sio_data->internal & BIT(1)) in it87_probe()
3447 if (sio_data->skip_temp & BIT(2)) { in it87_probe()
3448 if (sio_data->type == it8782 && in it87_probe()
3453 data->in_internal = sio_data->internal; in it87_probe()
3454 data->need_in7_reroute = sio_data->need_in7_reroute; in it87_probe()
3455 data->has_in = 0x3ff & ~sio_data->skip_in; in it87_probe()
3479 data->has_beep = !!sio_data->beep_pin; in it87_probe()
3486 if (!sio_data->skip_vid) { in it87_probe()
3490 data->vid = sio_data->vid_value; in it87_probe()
3501 data->has_pwm &= ~sio_data->skip_pwm; in it87_probe()
3509 it87_devices[sio_data->type].name, in it87_probe()
3584 const struct it87_sio_data *sio_data) in it87_device_add() argument
3611 err = platform_device_add_data(pdev, sio_data, in it87_device_add()
3723 struct it87_sio_data sio_data; in sm_it87_init() local
3735 memset(&sio_data, 0, sizeof(struct it87_sio_data)); in sm_it87_init()
3737 err = it87_find(sioaddr[i], &isa_address[i], &sio_data, i); in sm_it87_init()
3747 err = it87_device_add(i, isa_address[i], &sio_data); in sm_it87_init()
3757 if (sio_data.type == it87) in sm_it87_init()