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