Home
last modified time | relevance | path

Searched refs:hcycle (Results 1 – 2 of 2) sorted by relevance

/openbmc/u-boot/drivers/spi/
H A Daspeed_spi.c510 u32 hcycle, delay_ns; in aspeed_spi_timing_calibration() local
565 for (hcycle = 0; hcycle <= 5; hcycle++) { in aspeed_spi_timing_calibration()
567 debug("Delay Enable : hcycle %x\n", hcycle); in aspeed_spi_timing_calibration()
571 TIMING_DELAY_DI_4NS | hcycle | (delay_ns << 4)); in aspeed_spi_timing_calibration()
573 calib_res[hcycle * 17 + delay_ns] = pass; in aspeed_spi_timing_calibration()
575 i + 2, hcycle, delay_ns, pass ? "PASS" : "FAIL"); in aspeed_spi_timing_calibration()
585 hcycle = calib_point / 17; in aspeed_spi_timing_calibration()
587 debug("final hcycle: %d, delay_ns: %d\n", hcycle, delay_ns); in aspeed_spi_timing_calibration()
589 final_delay = (TIMING_DELAY_DI_4NS | hcycle | (delay_ns << 4)) << (i * 8); in aspeed_spi_timing_calibration()
636 for (hcycle = 0; hcycle <= TIMING_DELAY_HCYCLE_MAX; hcycle++) { in aspeed_spi_timing_calibration()
[all …]
/openbmc/linux/drivers/spi/
H A Dspi-aspeed-smc.c1057 int hcycle; in aspeed_spi_ast2600_calibrate() local
1062 for (hcycle = 0; hcycle <= TIMING_DELAY_HCYCLE_MAX; hcycle++) { in aspeed_spi_ast2600_calibrate()
1067 fread_timing_val |= hcycle << shift; in aspeed_spi_ast2600_calibrate()
1074 fread_timing_val, hcycle, pass ? "PASS" : "FAIL"); in aspeed_spi_ast2600_calibrate()
1080 fread_timing_val |= (TIMING_DELAY_DI | hcycle) << shift; in aspeed_spi_ast2600_calibrate()
1090 fread_timing_val, hcycle, (delay_ns + 1) / 2, in aspeed_spi_ast2600_calibrate()