Re: [PATCH v3 5/7] nvmem: imx-ocotp: Add i.MX7D timing write clock setup support

From: Bryan O'Donoghue
Date: Wed Oct 11 2017 - 12:22:58 EST


On 11/10/17 17:03, Philipp Zabel wrote:
Would

fsource = DIV_ROUND_UP_ULL((u64)clk_rate * DEF_FSOURCE,
NSEC_PER_SEC) + 1;
strobe_prog = DIV_ROUND_CLOSEST_ULL((u64)clk_rate * DEF_STROBE_PROG,
NSEC_PER_SEC) + 1;

work instead?

Might do, I'll see and change it if it works