Skip to content

Commit 0dc64c2

Browse files
mnaraniUlf Hansson
authored andcommitted
firmware: xilinx: Add DLL reset support
SD DLL resets are required for some of the operations on ZynqMP platform. Add DLL reset support in ZynqMP firmware driver for SD DLL reset. Signed-off-by: Manish Narani <manish.narani@xilinx.com> Acked-by: Michal Simek <michal.simek@xilinx.com> Link: https://lore.kernel.org/r/1579602095-30060-3-git-send-email-manish.narani@xilinx.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 93660d8 commit 0dc64c2

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎drivers/firmware/xilinx/zynqmp.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ static int zynqmp_pm_clock_getparent(u32 clock_id, u32 *parent_id)
512512
static inline int zynqmp_is_valid_ioctl(u32 ioctl_id)
513513
{
514514
switch (ioctl_id) {
515+
case IOCTL_SD_DLL_RESET:
515516
case IOCTL_SET_SD_TAPDELAY:
516517
case IOCTL_SET_PLL_FRAC_MODE:
517518
case IOCTL_GET_PLL_FRAC_MODE:

‎include/linux/firmware/xlnx-zynqmp.h‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ enum pm_ret_status {
100100
};
101101

102102
enum pm_ioctl_id {
103-
IOCTL_SET_SD_TAPDELAY = 7,
103+
IOCTL_SD_DLL_RESET = 6,
104+
IOCTL_SET_SD_TAPDELAY,
104105
IOCTL_SET_PLL_FRAC_MODE,
105106
IOCTL_GET_PLL_FRAC_MODE,
106107
IOCTL_SET_PLL_FRAC_DATA,
@@ -271,6 +272,12 @@ enum tap_delay_type {
271272
PM_TAPDELAY_OUTPUT,
272273
};
273274

275+
enum dll_reset_type {
276+
PM_DLL_RESET_ASSERT,
277+
PM_DLL_RESET_RELEASE,
278+
PM_DLL_RESET_PULSE,
279+
};
280+
274281
/**
275282
* struct zynqmp_pm_query_data - PM query data
276283
* @qid: query ID

0 commit comments

Comments
 (0)