]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
Exynos: Clock: Cleanup soc_get_periph_rate
authorAkshay Saraswat <akshay.s@samsung.com>
Wed, 4 Feb 2015 10:30:05 +0000 (16:00 +0530)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 11:52:18 +0000 (13:52 +0200)
commitad8074037852d954d701f06270e5ce857049c81f
tree5021be60ca364c6ccbc021fd7034c82013f8038e
parent416e7b04e7c2fc5285cb0a2c41b16ed9e24472cf
Exynos: Clock: Cleanup soc_get_periph_rate

Since we have src, div and pre-div mask bits defined corresponding
to peripherals, calculation of clock specific to I2C appears
redundant and confusing. Using clk_bit_info struct we can write
calculations generic to all peripherals which makes code easy to
understand and free from peripheral specific exceptions.

Signed-off-by: Akshay Saraswat <akshay.s@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
arch/arm/cpu/armv7/exynos/clock.c