linux-imx/include/dt-bindings/reset/imx8mn-dispmix.h
Fancy Fang 3a4e360995 reset: Add driver for dispmix reset
This is an reset driver to implement a reset controller
device DISPMIX on IMX8MM and IMX8MN platforms. Dispmix
reset is used to reset or enable related buses and clks
for the submodules in DISPMIX.

All the dispmix resets are divided into three subgroups:
sft_rstn, clk_en and mipi_rst, and each of them contains
several reset lines to control several different modules
on and off in DISPMIX which doesn't require the standard
reset flow, but only line assert and deassert operations.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2023-10-30 16:09:55 +08:00

48 lines
1.5 KiB
C

/*
* Copyright 2019 NXP
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __IMX8MN_DISPMIX_H__
#define __IMX8MN_DISPMIX_H__
/* DISPMIX soft reset */
#define IMX8MN_MIPI_DSI_PCLK_RESET 0
#define IMX8MN_MIPI_DSI_CLKREF_RESET 1
#define IMX8MN_MIPI_CSI_PCLK_RESET 2
#define IMX8MN_MIPI_CSI_ACLK_RESET 3
#define IMX8MN_LCDIF_PIXEL_CLK_RESET 4
#define IMX8MN_LCDIF_APB_CLK_RESET 5
#define IMX8MN_ISI_PROC_CLK_RESET 6
#define IMX8MN_ISI_APB_CLK_RESET 7
#define IMX8MN_BUS_BLK_CLK_RESET 8
#define IMX8MN_DISPMIX_SFT_RSTN_NUM 9
/* DISPMIX clock soft enable */
#define IMX8MN_MIPI_DSI_PCLK_EN 0
#define IMX8MN_MIPI_DSI_CLKREF_EN 1
#define IMX8MN_MIPI_CSI_PCLK_EN 2
#define IMX8MN_MIPI_CSI_ACLK_EN 3
#define IMX8MN_LCDIF_PIXEL_CLK_EN 4
#define IMX8MN_LCDIF_APB_CLK_EN 5
#define IMX8MN_ISI_PROC_CLK_EN 6
#define IMX8MN_ISI_APB_CLK_EN 7
#define IMX8MN_BUS_BLK_CLK_EN 8
#define IMX8MN_DISPMIX_CLK_EN_NUM 9
/* MIPI reset */
#define IMX8MN_MIPI_S_RESET 0
#define IMX8MN_MIPI_M_RESET 1
#define IMX8MN_MIPI_RESET_NUM 2
#endif