···248- #address-cells : shall be 1 (reg is used to encode clk id).249- clocks : shall be the master clock phandle.250 e.g. clocks = <&mck>;251-- name: device tree node describing a specific system clock.252 * #clock-cells : from common clock binding; shall be set to 0.253 * reg: peripheral id. See Atmel's datasheets to get a full254 list of peripheral ids.
···248- #address-cells : shall be 1 (reg is used to encode clk id).249- clocks : shall be the master clock phandle.250 e.g. clocks = <&mck>;251+- name: device tree node describing a specific peripheral clock.252 * #clock-cells : from common clock binding; shall be set to 0.253 * reg: peripheral id. See Atmel's datasheets to get a full254 list of peripheral ids.
···173 int i = 0;174175 /* Check if parent_rate is a valid input rate */176- if (parent_rate < characteristics->input.min ||177- parent_rate > characteristics->input.max)178 return -ERANGE;179180 /*···185 mindiv = (parent_rate * PLL_MUL_MIN) / rate;186 if (!mindiv)187 mindiv = 1;000000000188189 /*190 * Calculate the maximum divider which is limited by PLL register
···173 int i = 0;174175 /* Check if parent_rate is a valid input rate */176+ if (parent_rate < characteristics->input.min)0177 return -ERANGE;178179 /*···186 mindiv = (parent_rate * PLL_MUL_MIN) / rate;187 if (!mindiv)188 mindiv = 1;189+190+ if (parent_rate > characteristics->input.max) {191+ tmpdiv = DIV_ROUND_UP(parent_rate, characteristics->input.max);192+ if (tmpdiv > PLL_DIV_MAX)193+ return -ERANGE;194+195+ if (tmpdiv > mindiv)196+ mindiv = tmpdiv;197+ }198199 /*200 * Calculate the maximum divider which is limited by PLL register