]> git.dujemihanovic.xyz Git - u-boot.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)
committerMinkyu Kang <mk7.kang@samsung.com>
Fri, 13 Feb 2015 08:23:06 +0000 (17:23 +0900)
commit2e82e9252695a612ab0cbf40fa0c7368515f6506
treef8fa04405338a19bfcd2aa1efb494a25649267cb
parentc5d32170bb98032781be0537ce56159fa52ade97
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