Lines Matching refs:sda_delay
866 unsigned long sda_delay; in s3c24xx_i2c_clockrate() local
868 if (pdata->sda_delay) { in s3c24xx_i2c_clockrate()
869 sda_delay = clkin * pdata->sda_delay; in s3c24xx_i2c_clockrate()
870 sda_delay = DIV_ROUND_UP(sda_delay, 1000000); in s3c24xx_i2c_clockrate()
871 sda_delay = DIV_ROUND_UP(sda_delay, 5); in s3c24xx_i2c_clockrate()
872 if (sda_delay > 3) in s3c24xx_i2c_clockrate()
873 sda_delay = 3; in s3c24xx_i2c_clockrate()
874 sda_delay |= S3C2410_IICLC_FILTER_ON; in s3c24xx_i2c_clockrate()
876 sda_delay = 0; in s3c24xx_i2c_clockrate()
878 dev_dbg(i2c->dev, "IICLC=%08lx\n", sda_delay); in s3c24xx_i2c_clockrate()
879 writel(sda_delay, i2c->regs + S3C2440_IICLC); in s3c24xx_i2c_clockrate()
962 of_property_read_u32(np, "samsung,i2c-sda-delay", &pdata->sda_delay); in s3c24xx_i2c_parse_dt()