i2c: ocores: Add support for bus clock via platform data
authorAndrew Lunn <andrew@lunn.ch>
Thu, 14 Feb 2019 03:24:50 +0000 (04:24 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 14 Feb 2019 16:58:23 +0000 (17:58 +0100)
commit237b5f66e1ed8a58662f29bcd04442953cdb8b55
tree679525cdc0db3850ad72cb3098dba563e9dd73fb
parent809445d4b7fa7101d9434182bebbd8c84d7e4b65
i2c: ocores: Add support for bus clock via platform data

Add the I2C bus clock speed to the platform data structure.
If not set, default to 100KHz as before.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-ocores.c
include/linux/platform_data/i2c-ocores.h