diff mbox series

[U-Boot,V2,16/23] imx: lcdif: include i.MX8M

Message ID 20171204043136.17167-17-peng.fan@nxp.com
State Changes Requested
Delegated to: Stefano Babic
Headers show
Series imx: add i.MX8M support and i.MX8MQ EVK | expand

Commit Message

Peng Fan Dec. 4, 2017, 4:31 a.m. UTC
Include i.MX8M in lcdif register layout map.
Also included i.MX7ULP in this patch, since share same with i.MX8M.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm/include/asm/mach-imx/regs-lcdif.h | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

Comments

Stefano Babic Dec. 7, 2017, 8:41 a.m. UTC | #1
On 04/12/2017 05:31, Peng Fan wrote:
> Include i.MX8M in lcdif register layout map.
> Also included i.MX7ULP in this patch, since share same with i.MX8M.
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
>  arch/arm/include/asm/mach-imx/regs-lcdif.h | 11 ++++++++---
>  1 file changed, 8 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/include/asm/mach-imx/regs-lcdif.h b/arch/arm/include/asm/mach-imx/regs-lcdif.h
> index 4de401bd22..57e6357608 100644
> --- a/arch/arm/include/asm/mach-imx/regs-lcdif.h
> +++ b/arch/arm/include/asm/mach-imx/regs-lcdif.h
> @@ -20,7 +20,9 @@ struct mxs_lcdif_regs {
>  	mxs_reg_32(hw_lcdif_ctrl)		/* 0x00 */
>  	mxs_reg_32(hw_lcdif_ctrl1)		/* 0x10 */
>  #if defined(CONFIG_MX28) || defined(CONFIG_MX6SX) || defined(CONFIG_MX6UL) || \
> -	defined(CONFIG_MX7) || defined(CONFIG_MX6SL) || defined(CONFIG_MX6SLL)
> +	defined(CONFIG_MX7) || defined(CONFIG_MX6SL) || \
> +	defined(CONFIG_MX6SLL) || defined(CONFIG_MX7ULP) || \
> +	defined(CONFIG_MX8M)
>  	mxs_reg_32(hw_lcdif_ctrl2)		/* 0x20 */
>  #endif
>  	mxs_reg_32(hw_lcdif_transfer_count)	/* 0x20/0x30 */
> @@ -56,7 +58,9 @@ struct mxs_lcdif_regs {
>  	mxs_reg_32(hw_lcdif_data)		/* 0x1b0/0x180 */
>  	mxs_reg_32(hw_lcdif_bm_error_stat)	/* 0x1c0/0x190 */
>  #if defined(CONFIG_MX28) || defined(CONFIG_MX6SX) || defined(CONFIG_MX6UL) || \
> -	defined(CONFIG_MX7) || defined(CONFIG_MX6SL) || defined(CONFIG_MX6SLL)
> +	defined(CONFIG_MX7) || defined(CONFIG_MX6SL) || \
> +	defined(CONFIG_MX6SLL) || defined(CONFIG_MX7ULP) || \
> +	defined(CONFIG_MX8M)
>  	mxs_reg_32(hw_lcdif_crc_stat)		/* 0x1a0 */
>  #endif
>  	mxs_reg_32(hw_lcdif_lcdif_stat)		/* 0x1d0/0x1b0 */
> @@ -65,7 +69,8 @@ struct mxs_lcdif_regs {
>  	mxs_reg_32(hw_lcdif_debug1)		/* 0x200/0x1e0 */
>  	mxs_reg_32(hw_lcdif_debug2)		/* 0x1f0 */
>  #if defined(CONFIG_MX6SX) || defined(CONFIG_MX6UL) || defined(CONFIG_MX7) || \
> -	defined(CONFIG_MX6SL) || defined(CONFIG_MX6SLL)
> +	defined(CONFIG_MX6SL) || defined(CONFIG_MX6SLL) || \
> +	defined(CONFIG_MX7ULP) || defined(CONFIG_MX8M)
>  	mxs_reg_32(hw_lcdif_thres)
>  	mxs_reg_32(hw_lcdif_as_ctrl)
>  	mxs_reg_32(hw_lcdif_as_buf)
> 

Reviewed-by: Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic
Fabio Estevam Dec. 16, 2017, 5:41 p.m. UTC | #2
On Mon, Dec 4, 2017 at 2:31 AM, Peng Fan <peng.fan@nxp.com> wrote:
> Include i.MX8M in lcdif register layout map.
> Also included i.MX7ULP in this patch, since share same with i.MX8M.
>
> Signed-off-by: Peng Fan <peng.fan@nxp.com>

Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
diff mbox series

Patch

diff --git a/arch/arm/include/asm/mach-imx/regs-lcdif.h b/arch/arm/include/asm/mach-imx/regs-lcdif.h
index 4de401bd22..57e6357608 100644
--- a/arch/arm/include/asm/mach-imx/regs-lcdif.h
+++ b/arch/arm/include/asm/mach-imx/regs-lcdif.h
@@ -20,7 +20,9 @@  struct mxs_lcdif_regs {
 	mxs_reg_32(hw_lcdif_ctrl)		/* 0x00 */
 	mxs_reg_32(hw_lcdif_ctrl1)		/* 0x10 */
 #if defined(CONFIG_MX28) || defined(CONFIG_MX6SX) || defined(CONFIG_MX6UL) || \
-	defined(CONFIG_MX7) || defined(CONFIG_MX6SL) || defined(CONFIG_MX6SLL)
+	defined(CONFIG_MX7) || defined(CONFIG_MX6SL) || \
+	defined(CONFIG_MX6SLL) || defined(CONFIG_MX7ULP) || \
+	defined(CONFIG_MX8M)
 	mxs_reg_32(hw_lcdif_ctrl2)		/* 0x20 */
 #endif
 	mxs_reg_32(hw_lcdif_transfer_count)	/* 0x20/0x30 */
@@ -56,7 +58,9 @@  struct mxs_lcdif_regs {
 	mxs_reg_32(hw_lcdif_data)		/* 0x1b0/0x180 */
 	mxs_reg_32(hw_lcdif_bm_error_stat)	/* 0x1c0/0x190 */
 #if defined(CONFIG_MX28) || defined(CONFIG_MX6SX) || defined(CONFIG_MX6UL) || \
-	defined(CONFIG_MX7) || defined(CONFIG_MX6SL) || defined(CONFIG_MX6SLL)
+	defined(CONFIG_MX7) || defined(CONFIG_MX6SL) || \
+	defined(CONFIG_MX6SLL) || defined(CONFIG_MX7ULP) || \
+	defined(CONFIG_MX8M)
 	mxs_reg_32(hw_lcdif_crc_stat)		/* 0x1a0 */
 #endif
 	mxs_reg_32(hw_lcdif_lcdif_stat)		/* 0x1d0/0x1b0 */
@@ -65,7 +69,8 @@  struct mxs_lcdif_regs {
 	mxs_reg_32(hw_lcdif_debug1)		/* 0x200/0x1e0 */
 	mxs_reg_32(hw_lcdif_debug2)		/* 0x1f0 */
 #if defined(CONFIG_MX6SX) || defined(CONFIG_MX6UL) || defined(CONFIG_MX7) || \
-	defined(CONFIG_MX6SL) || defined(CONFIG_MX6SLL)
+	defined(CONFIG_MX6SL) || defined(CONFIG_MX6SLL) || \
+	defined(CONFIG_MX7ULP) || defined(CONFIG_MX8M)
 	mxs_reg_32(hw_lcdif_thres)
 	mxs_reg_32(hw_lcdif_as_ctrl)
 	mxs_reg_32(hw_lcdif_as_buf)