diff options
Diffstat (limited to 'drivers/soc')
-rw-r--r-- | drivers/soc/xilinx/Kconfig | 21 | ||||
-rw-r--r-- | drivers/soc/xilinx/xlnx_vcu.c | 2 |
2 files changed, 12 insertions, 11 deletions
diff --git a/drivers/soc/xilinx/Kconfig b/drivers/soc/xilinx/Kconfig index 266b50ffe349..687c8f3cd955 100644 --- a/drivers/soc/xilinx/Kconfig +++ b/drivers/soc/xilinx/Kconfig @@ -2,18 +2,19 @@ menu "Xilinx SoC drivers" config XILINX_VCU - tristate "Xilinx VCU logicoreIP Init" - help - Provides the driver to enable and disable the isolation between the - processing system and programmable logic part by using the logicoreIP - register set. This driver also configures the frequency based on the - clock information from the logicoreIP register set. + tristate "Xilinx VCU logicoreIP Init" + depends on HAS_IOMEM + help + Provides the driver to enable and disable the isolation between the + processing system and programmable logic part by using the logicoreIP + register set. This driver also configures the frequency based on the + clock information from the logicoreIP register set. - If you say yes here you get support for the logicoreIP. + If you say yes here you get support for the logicoreIP. - If unsure, say N. + If unsure, say N. - To compile this driver as a module, choose M here: the - module will be called xlnx_vcu. + To compile this driver as a module, choose M here: the + module will be called xlnx_vcu. endmenu diff --git a/drivers/soc/xilinx/xlnx_vcu.c b/drivers/soc/xilinx/xlnx_vcu.c index c1d6f1b190b6..a840c0272135 100644 --- a/drivers/soc/xilinx/xlnx_vcu.c +++ b/drivers/soc/xilinx/xlnx_vcu.c @@ -334,7 +334,7 @@ static int xvcu_set_vcu_pll_info(struct xvcu_device *xvcu) */ vcu_pll_ctrl = xvcu_read(xvcu->vcu_slcr_ba, VCU_PLL_CTRL); clkoutdiv = vcu_pll_ctrl >> VCU_PLL_CTRL_CLKOUTDIV_SHIFT; - clkoutdiv = clkoutdiv && VCU_PLL_CTRL_CLKOUTDIV_MASK; + clkoutdiv = clkoutdiv & VCU_PLL_CTRL_CLKOUTDIV_MASK; if (clkoutdiv != 1) { dev_err(xvcu->dev, "clkoutdiv value is invalid\n"); return -EINVAL; |