clk: tegra: Fix typo in PLLE_MISC VREG_CTRL define
Subsystems (3)
PATCH 1/1 clk: tegra: Fix typo in PLLE_MISC VREG_CTRL define
The mask of PLLE_MISC_VREG_CTRL was defined to be 2, which clearly cannot be a mask. Documentation shows that the field is 2 bits long, so change this to 3.
Signed-off-by Mikko Perttunen <[email protected]>
--- drivers/clk/tegra/clk-pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/tegra/clk-pll.c +1 -1
@@ -116,7 +116,7 @@#define PLLE_MISC_VREG_BG_CTRL_SHIFT 4#define PLLE_MISC_VREG_BG_CTRL_MASK (3 << PLLE_MISC_VREG_BG_CTRL_SHIFT)#define PLLE_MISC_VREG_CTRL_SHIFT 2 -#define PLLE_MISC_VREG_CTRL_MASK (2 << PLLE_MISC_VREG_CTRL_SHIFT) +#define PLLE_MISC_VREG_CTRL_MASK (3 << PLLE_MISC_VREG_CTRL_SHIFT)#define PLLCX_MISC_STROBE BIT(31)#define PLLCX_MISC_RESET BIT(30)
Signature · 1 line
1.8.1.5
A message that is not in the archive (sent off-list or not yet received): 1402041968-21525-1-git-send-email-mperttunen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org
Quoted 2 lines · Mikko Perttunen
The mask of
PLLE_MISC_VREG_CTRLwas defined to be 2, which clearly cannot be a mask. Documentation shows that the field
It could be a 1 bit mask :) But yeah, it's incorrect indeed.
Quoted 2 lines
is 2 bits long, so change this to 3.
Cheers,
Peter.