Re: [U-Boot] [PATCH v6 7/7] Exynos: Clock: Cleanup soc_get_periph_rate

2015-02-04 Thread Joonyoung Shim
Hi Akshay, On 02/04/2015 07:30 PM, Akshay Saraswat wrote: > 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

[U-Boot] [PATCH v6 7/7] Exynos: Clock: Cleanup soc_get_periph_rate

2015-02-04 Thread Akshay Saraswat
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 specif