summaryrefslogtreecommitdiff
path: root/board/k+p
diff options
context:
space:
mode:
authorLukasz Majewski <lukma@denx.de>2019-10-10 16:11:25 +0200
committerStefano Babic <sbabic@denx.de>2019-10-13 22:49:11 +0200
commiteff76b10faba9f2896ac499457508d607a661f50 (patch)
treecea3e735c222fa5917d7ca9660c89c873c37e595 /board/k+p
parent58c76e63f17f87afdc45ec32a84c5e86fc2b6fdd (diff)
imx: tpc70: cosmetic: Replace magic numbers when setting ENET clock
This is a cosmetic change, just to use proper define instead of magic numbers. Signed-off-by: Lukasz Majewski <lukma@denx.de>
Diffstat (limited to 'board/k+p')
-rw-r--r--board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c b/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c
index 2c541ace02..144d2c58c4 100644
--- a/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c
+++ b/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c
@@ -119,7 +119,8 @@ static int setup_fec_clock(void)
struct iomuxc *iomuxc_regs = (struct iomuxc *)IOMUXC_BASE_ADDR;
/* set gpr1[21] to select anatop clock */
- clrsetbits_le32(&iomuxc_regs->gpr[1], 0x1 << 21, 0x1 << 21);
+ clrsetbits_le32(&iomuxc_regs->gpr[1], IOMUXC_GPR1_ENET_CLK_SEL_MASK,
+ IOMUXC_GPR1_ENET_CLK_SEL_MASK);
return enable_fec_anatop_clock(0, ENET_50MHZ);
}