summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2019-01-28 11:12:41 +0100
committerMichal Simek <michal.simek@xilinx.com>2019-02-14 14:31:10 +0100
commit47a766f95015e17f32f2467984a1e018964bcffc (patch)
tree5d076abc6a218e398d77d6dc776ef8069075f9a1 /board
parentfb771793bd5daa8b4dcf5664ea0cf02b1ca2ae0f (diff)
downloadu-boot-47a766f95015e17f32f2467984a1e018964bcffc.tar.gz
arm64: versal: Move IOU_SWITCH_DIVISOR0 to Kconfig
Move hardcoded IOU_SWITCH_DIVISOR0 to Kconfig to be able to set it up for different platforms. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board')
-rw-r--r--board/xilinx/versal/board.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c
index fe61125d92..90751477b5 100644
--- a/board/xilinx/versal/board.c
+++ b/board/xilinx/versal/board.c
@@ -26,8 +26,11 @@ int board_early_init_r(void)
if (current_el() != 3)
return 0;
+ debug("iou_switch ctrl div0 %x\n",
+ readl(&crlapb_base->iou_switch_ctrl));
+
writel(IOU_SWITCH_CTRL_CLKACT_BIT |
- (0x20 << IOU_SWITCH_CTRL_DIVISOR0_SHIFT),
+ (CONFIG_IOU_SWITCH_DIVISOR0 << IOU_SWITCH_CTRL_DIVISOR0_SHIFT),
&crlapb_base->iou_switch_ctrl);
/* Global timer init - Program time stamp reference clk */