Skip to content

Commit 022d071

Browse files
nxpfrankliShawn Guo
authored andcommitted
ARM: imx: add i.mx6ul msl support
i.MX6UL is a new SOC, add MSL support Signed-off-by: Frank Li <Frank.Li@freescale.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent d770e55 commit 022d071

5 files changed

Lines changed: 61 additions & 0 deletions

File tree

‎arch/arm/mach-imx/Kconfig‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,14 @@ config SOC_IMX6SX
548548
help
549549
This enables support for Freescale i.MX6 SoloX processor.
550550

551+
config SOC_IMX6UL
552+
bool "i.MX6 UltraLite support"
553+
select PINCTRL_IMX6UL
554+
select SOC_IMX6
555+
556+
help
557+
This enables support for Freescale i.MX6 UltraLite processor.
558+
551559
config SOC_IMX7D
552560
bool "i.MX7 Dual support"
553561
select PINCTRL_IMX7D

‎arch/arm/mach-imx/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ endif
8383
obj-$(CONFIG_SOC_IMX6Q) += mach-imx6q.o
8484
obj-$(CONFIG_SOC_IMX6SL) += mach-imx6sl.o
8585
obj-$(CONFIG_SOC_IMX6SX) += mach-imx6sx.o
86+
obj-$(CONFIG_SOC_IMX6UL) += mach-imx6ul.o
8687
obj-$(CONFIG_SOC_IMX7D) += mach-imx7d.o
8788

8889
ifeq ($(CONFIG_SUSPEND),y)

‎arch/arm/mach-imx/cpu.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ struct device * __init imx_soc_device_init(void)
130130
case MXC_CPU_IMX6Q:
131131
soc_id = "i.MX6Q";
132132
break;
133+
case MXC_CPU_IMX6UL:
134+
soc_id = "i.MX6UL";
135+
break;
133136
case MXC_CPU_IMX7D:
134137
soc_id = "i.MX7D";
135138
break;

‎arch/arm/mach-imx/mach-imx6ul.c‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Copyright (C) 2015 Freescale Semiconductor, Inc.
3+
*
4+
* This program is free software; you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License version 2 as
6+
* published by the Free Software Foundation.
7+
*/
8+
#include <linux/irqchip.h>
9+
#include <linux/of_platform.h>
10+
#include <asm/mach/arch.h>
11+
#include <asm/mach/map.h>
12+
13+
#include "common.h"
14+
15+
static void __init imx6ul_init_machine(void)
16+
{
17+
struct device *parent;
18+
19+
parent = imx_soc_device_init();
20+
if (parent == NULL)
21+
pr_warn("failed to initialize soc device\n");
22+
23+
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
24+
imx_anatop_init();
25+
}
26+
27+
static void __init imx6ul_init_irq(void)
28+
{
29+
imx_init_revision_from_anatop();
30+
imx_src_init();
31+
irqchip_init();
32+
}
33+
34+
static const char *imx6ul_dt_compat[] __initconst = {
35+
"fsl,imx6ul",
36+
NULL,
37+
};
38+
39+
DT_MACHINE_START(IMX6UL, "Freescale i.MX6 Ultralite (Device Tree)")
40+
.init_irq = imx6ul_init_irq,
41+
.init_machine = imx6ul_init_machine,
42+
.dt_compat = imx6ul_dt_compat,
43+
MACHINE_END

‎arch/arm/mach-imx/mxc.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#define MXC_CPU_IMX6DL 0x61
3939
#define MXC_CPU_IMX6SX 0x62
4040
#define MXC_CPU_IMX6Q 0x63
41+
#define MXC_CPU_IMX6UL 0x64
4142
#define MXC_CPU_IMX7D 0x72
4243

4344
#define IMX_DDR_TYPE_LPDDR2 1
@@ -165,6 +166,11 @@ static inline bool cpu_is_imx6sx(void)
165166
return __mxc_cpu_type == MXC_CPU_IMX6SX;
166167
}
167168

169+
static inline bool cpu_is_imx6ul(void)
170+
{
171+
return __mxc_cpu_type == MXC_CPU_IMX6UL;
172+
}
173+
168174
static inline bool cpu_is_imx6q(void)
169175
{
170176
return __mxc_cpu_type == MXC_CPU_IMX6Q;

0 commit comments

Comments
 (0)