Lines Matching +full:0 +full:x8ff
30 IMX_TIMER1MS = 0x00e0,
32 IMX_P0PHYCR = 0x0178,
39 IMX_P0PHYSR = 0x017c,
41 IMX_P0PHYSR_CR_DATA_OUT = 0xffff << 0,
43 IMX_LANE0_OUT_STAT = 0x2003,
46 IMX_CLOCK_RESET = 0x7f3f,
47 IMX_CLOCK_RESET_RESET = 1 << 0,
49 IMX8QM_SATA_AHCI_PTC = 0xc8,
50 IMX8QM_SATA_AHCI_PTC_RXWM_MASK = GENMASK(6, 0),
51 IMX8QM_SATA_AHCI_PTC_RXWM = 0x29,
79 MODULE_PARM_DESC(hotplug, "AHCI IMX hot-plug support (0=Don't support, 1=support)");
105 return timeout ? 0 : -ETIMEDOUT; in imx_phy_crbit_assert()
126 return 0; in imx_phy_reg_addressing()
168 return 0; in imx_phy_reg_write()
188 return 0; in imx_phy_reg_read()
202 IMX6Q_GPR5_SATA_SW_PD, 0); in imx_sata_phy_reset()
205 IMX6Q_GPR5_SATA_SW_RST, 0); in imx_sata_phy_reset()
210 return 0; in imx_sata_phy_reset()
234 return timeout ? 0 : -ETIMEDOUT; in imx_sata_phy_reset()
239 SATA_PHY_CR_CLOCK_CRCMP_LT_LIMIT = 0x0001,
240 SATA_PHY_CR_CLOCK_DAC_CTL = 0x0008,
241 SATA_PHY_CR_CLOCK_RTUNE_CTL = 0x0009,
242 SATA_PHY_CR_CLOCK_ADC_OUT = 0x000A,
243 SATA_PHY_CR_CLOCK_MPLL_TST = 0x0017,
256 index = 0; in read_adc_sum()
257 read_attempt = 0; in read_adc_sum()
258 adc_out_reg = 0; in read_adc_sum()
263 if (adc_out_reg & 0x400) in read_adc_sum()
274 index = 0; in read_adc_sum()
275 read_attempt = 0; in read_adc_sum()
276 read_sum = 0; in read_adc_sum()
279 if (adc_out_reg & 0x400) { in read_adc_sum()
280 read_sum = read_sum + (adc_out_reg & 0x3FF); in read_adc_sum()
305 read_sum = 0; in __sata_ahci_read_temperature()
309 if ((read_sum & 0xffff) != 0) in __sata_ahci_read_temperature()
310 dev_err(dev, "Read/Write REG error, 0x%x!\n", read_sum); in __sata_ahci_read_temperature()
312 imx_phy_reg_write(0x5A5A, mmio); in __sata_ahci_read_temperature()
314 if ((read_sum & 0xffff) != 0x5A5A) in __sata_ahci_read_temperature()
315 dev_err(dev, "Read/Write REG error, 0x%x!\n", read_sum); in __sata_ahci_read_temperature()
317 imx_phy_reg_write(0x1234, mmio); in __sata_ahci_read_temperature()
319 if ((read_sum & 0xffff) != 0x1234) in __sata_ahci_read_temperature()
320 dev_err(dev, "Read/Write REG error, 0x%x!\n", read_sum); in __sata_ahci_read_temperature()
331 str1 = (mpll_test_reg >> 2) & 0x7FF; in __sata_ahci_read_temperature()
332 /* rtune_ctl.mode ([1:0]) */ in __sata_ahci_read_temperature()
333 str2 = (rtune_ctl_reg) & 0x3; in __sata_ahci_read_temperature()
335 str3 = (dac_ctl_reg >> 12) & 0x7; in __sata_ahci_read_temperature()
341 mpll_test_reg = (mpll_test_reg & 0xE03) | (512) << 2; in __sata_ahci_read_temperature()
343 rtune_ctl_reg = (rtune_ctl_reg & 0xFFC) | (1); in __sata_ahci_read_temperature()
345 dac_ctl_reg = (dac_ctl_reg & 0x8FF) | (4) << 12; in __sata_ahci_read_temperature()
347 rtune_ctl_reg = (rtune_ctl_reg & 0xFEF) | (0) << 4; in __sata_ahci_read_temperature()
356 rtune_ctl_reg = (rtune_ctl_reg & 0xFEF) | (1) << 4; in __sata_ahci_read_temperature()
361 mpll_test_reg = (mpll_test_reg & 0xE03) | (str1) << 2; in __sata_ahci_read_temperature()
363 rtune_ctl_reg = (rtune_ctl_reg & 0xFFC) | (str2); in __sata_ahci_read_temperature()
365 dac_ctl_reg = (dac_ctl_reg & 0x8FF) | (str3) << 12; in __sata_ahci_read_temperature()
367 rtune_ctl_reg = (rtune_ctl_reg & 0xFEF) | (str4) << 4; in __sata_ahci_read_temperature()
382 return 0; in __sata_ahci_read_temperature()
394 unsigned int temp = 0; in sata_ahci_show_temp()
398 if (err < 0) in sata_ahci_show_temp()
408 static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, sata_ahci_show_temp, NULL, 0);
479 return 0; in imx8_sata_enable()
502 return 0; in imx_sata_enable()
509 if (ret < 0) in imx_sata_enable()
516 * is 0x07ffffff, and the other one write for setting in imx_sata_enable()
551 return 0; in imx_sata_enable()
724 { 0, IMX6Q_GPR13_SATA_TX_BOOST_0_00_DB },
786 .set_value = 0,
794 u32 reg_value = 0; in imx_ahci_parse_props()
797 for (i = 0; i < num; i++, prop++) { in imx_ahci_parse_props()
800 if (prop->num_values == 0) { in imx_ahci_parse_props()
815 for (j = 0; j < prop->num_values; j++) { in imx_ahci_parse_props()
853 return 0; in imx8_sata_probe()
910 hpriv = ahci_platform_get_resources(pdev, 0); in imx_ahci_probe()
934 devm_thermal_of_zone_register(hwmon_dev, 0, hwmon_dev, in imx_ahci_probe()
953 if (!(reg_val & 0x1)) { in imx_ahci_probe()
954 reg_val |= 0x1; in imx_ahci_probe()
978 return 0; in imx_ahci_probe()
1009 return 0; in imx_ahci_suspend()