Skip to content

Commit 604a16b

Browse files
committed
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: ARM: plat-orion: make gpiochip label unique enable uncompress log on cpuimx35sd cpuimx35: fix touchscreen support cpuimx35sd: fix Kconfig clock-imx35: fix reboot in internal boot mode dma: MX3_IPU fix depends imx_v4_v5_defconfig: update default configuration cpuimx25sd: fix Kconfig arm/imx: fix cpufreq section mismatch ARM:imx:fix pwm period value ARM: OMAP: hwmod data: fix iva and mailbox hwmods for OMAP 3
2 parents c63c4ed + 00ca4e4 commit 604a16b

File tree

11 files changed

+48
-30
lines changed

11 files changed

+48
-30
lines changed

arch/arm/configs/imx_v4_v5_defconfig

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ CONFIG_ARCH_MXC=y
1818
CONFIG_ARCH_IMX_V4_V5=y
1919
CONFIG_ARCH_MX1ADS=y
2020
CONFIG_MACH_SCB9328=y
21+
CONFIG_MACH_APF9328=y
2122
CONFIG_MACH_MX21ADS=y
2223
CONFIG_MACH_MX25_3DS=y
23-
CONFIG_MACH_EUKREA_CPUIMX25=y
24+
CONFIG_MACH_EUKREA_CPUIMX25SD=y
2425
CONFIG_MACH_MX27ADS=y
2526
CONFIG_MACH_PCM038=y
2627
CONFIG_MACH_CPUIMX27=y
@@ -72,17 +73,16 @@ CONFIG_MTD_CFI_GEOMETRY=y
7273
CONFIG_MTD_CFI_INTELEXT=y
7374
CONFIG_MTD_PHYSMAP=y
7475
CONFIG_MTD_NAND=y
76+
CONFIG_MTD_NAND_MXC=y
7577
CONFIG_MTD_UBI=y
7678
CONFIG_MISC_DEVICES=y
7779
CONFIG_EEPROM_AT24=y
7880
CONFIG_EEPROM_AT25=y
7981
CONFIG_NETDEVICES=y
80-
CONFIG_NET_ETHERNET=y
81-
CONFIG_SMC91X=y
8282
CONFIG_DM9000=y
83+
CONFIG_SMC91X=y
8384
CONFIG_SMC911X=y
84-
# CONFIG_NETDEV_1000 is not set
85-
# CONFIG_NETDEV_10000 is not set
85+
CONFIG_SMSC_PHY=y
8686
# CONFIG_INPUT_MOUSEDEV is not set
8787
CONFIG_INPUT_EVDEV=y
8888
# CONFIG_INPUT_KEYBOARD is not set
@@ -100,6 +100,7 @@ CONFIG_I2C_CHARDEV=y
100100
CONFIG_I2C_IMX=y
101101
CONFIG_SPI=y
102102
CONFIG_SPI_IMX=y
103+
CONFIG_SPI_SPIDEV=y
103104
CONFIG_W1=y
104105
CONFIG_W1_MASTER_MXC=y
105106
CONFIG_W1_SLAVE_THERM=y
@@ -139,6 +140,7 @@ CONFIG_MMC=y
139140
CONFIG_MMC_MXC=y
140141
CONFIG_NEW_LEDS=y
141142
CONFIG_LEDS_CLASS=y
143+
CONFIG_LEDS_GPIO=y
142144
CONFIG_LEDS_MC13783=y
143145
CONFIG_LEDS_TRIGGERS=y
144146
CONFIG_LEDS_TRIGGER_TIMER=y

arch/arm/mach-imx/Kconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ config MACH_MX25_3DS
132132
select IMX_HAVE_PLATFORM_MXC_NAND
133133
select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX
134134

135-
config MACH_EUKREA_CPUIMX25
135+
config MACH_EUKREA_CPUIMX25SD
136136
bool "Support Eukrea CPUIMX25 Platform"
137137
select SOC_IMX25
138138
select IMX_HAVE_PLATFORM_FLEXCAN
@@ -148,7 +148,7 @@ config MACH_EUKREA_CPUIMX25
148148

149149
choice
150150
prompt "Baseboard"
151-
depends on MACH_EUKREA_CPUIMX25
151+
depends on MACH_EUKREA_CPUIMX25SD
152152
default MACH_EUKREA_MBIMXSD25_BASEBOARD
153153

154154
config MACH_EUKREA_MBIMXSD25_BASEBOARD
@@ -542,7 +542,7 @@ config MACH_MX35_3DS
542542
Include support for MX35PDK platform. This includes specific
543543
configurations for the board and its peripherals.
544544

545-
config MACH_EUKREA_CPUIMX35
545+
config MACH_EUKREA_CPUIMX35SD
546546
bool "Support Eukrea CPUIMX35 Platform"
547547
select SOC_IMX35
548548
select IMX_HAVE_PLATFORM_FLEXCAN
@@ -560,7 +560,7 @@ config MACH_EUKREA_CPUIMX35
560560

561561
choice
562562
prompt "Baseboard"
563-
depends on MACH_EUKREA_CPUIMX35
563+
depends on MACH_EUKREA_CPUIMX35SD
564564
default MACH_EUKREA_MBIMXSD35_BASEBOARD
565565

566566
config MACH_EUKREA_MBIMXSD35_BASEBOARD

arch/arm/mach-imx/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ obj-$(CONFIG_MACH_MX21ADS) += mach-mx21ads.o
2424

2525
# i.MX25 based machines
2626
obj-$(CONFIG_MACH_MX25_3DS) += mach-mx25_3ds.o
27-
obj-$(CONFIG_MACH_EUKREA_CPUIMX25) += mach-eukrea_cpuimx25.o
27+
obj-$(CONFIG_MACH_EUKREA_CPUIMX25SD) += mach-eukrea_cpuimx25.o
2828
obj-$(CONFIG_MACH_EUKREA_MBIMXSD25_BASEBOARD) += eukrea_mbimxsd25-baseboard.o
2929

3030
# i.MX27 based machines
@@ -57,7 +57,7 @@ obj-$(CONFIG_MACH_BUG) += mach-bug.o
5757
# i.MX35 based machines
5858
obj-$(CONFIG_MACH_PCM043) += mach-pcm043.o
5959
obj-$(CONFIG_MACH_MX35_3DS) += mach-mx35_3ds.o
60-
obj-$(CONFIG_MACH_EUKREA_CPUIMX35) += mach-cpuimx35.o
60+
obj-$(CONFIG_MACH_EUKREA_CPUIMX35SD) += mach-cpuimx35.o
6161
obj-$(CONFIG_MACH_EUKREA_MBIMXSD35_BASEBOARD) += eukrea_mbimxsd35-baseboard.o
6262
obj-$(CONFIG_MACH_VPR200) += mach-vpr200.o
6363

arch/arm/mach-imx/clock-imx35.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ static struct clk_lookup lookups[] = {
507507

508508
int __init mx35_clocks_init()
509509
{
510-
unsigned int cgr2 = 3 << 26, cgr3 = 0;
510+
unsigned int cgr2 = 3 << 26;
511511

512512
#if defined(CONFIG_DEBUG_LL) && !defined(CONFIG_DEBUG_ICEDCC)
513513
cgr2 |= 3 << 16;
@@ -521,6 +521,12 @@ int __init mx35_clocks_init()
521521
__raw_writel((3 << 18), CCM_BASE + CCM_CGR0);
522522
__raw_writel((3 << 2) | (3 << 4) | (3 << 6) | (3 << 8) | (3 << 16),
523523
CCM_BASE + CCM_CGR1);
524+
__raw_writel(cgr2, CCM_BASE + CCM_CGR2);
525+
__raw_writel(0, CCM_BASE + CCM_CGR3);
526+
527+
clk_enable(&iim_clk);
528+
imx_print_silicon_rev("i.MX35", mx35_revision());
529+
clk_disable(&iim_clk);
524530

525531
/*
526532
* Check if we came up in internal boot mode. If yes, we need some
@@ -529,17 +535,11 @@ int __init mx35_clocks_init()
529535
*/
530536
if (!(__raw_readl(CCM_BASE + CCM_RCSR) & (3 << 10))) {
531537
/* Additionally turn on UART1, SCC, and IIM clocks */
532-
cgr2 |= 3 << 16 | 3 << 4;
533-
cgr3 |= 3 << 2;
538+
clk_enable(&iim_clk);
539+
clk_enable(&uart1_clk);
540+
clk_enable(&scc_clk);
534541
}
535542

536-
__raw_writel(cgr2, CCM_BASE + CCM_CGR2);
537-
__raw_writel(cgr3, CCM_BASE + CCM_CGR3);
538-
539-
clk_enable(&iim_clk);
540-
imx_print_silicon_rev("i.MX35", mx35_revision());
541-
clk_disable(&iim_clk);
542-
543543
#ifdef CONFIG_MXC_USE_EPIT
544544
epit_timer_init(&epit1_clk,
545545
MX35_IO_ADDRESS(MX35_EPIT1_BASE_ADDR), MX35_INT_EPIT1);

arch/arm/mach-imx/mach-cpuimx35.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,18 @@ static const struct imxi2c_platform_data
5353
.bitrate = 100000,
5454
};
5555

56+
#define TSC2007_IRQGPIO IMX_GPIO_NR(3, 2)
57+
static int tsc2007_get_pendown_state(void)
58+
{
59+
return !gpio_get_value(TSC2007_IRQGPIO);
60+
}
61+
5662
static struct tsc2007_platform_data tsc2007_info = {
5763
.model = 2007,
5864
.x_plate_ohms = 180,
65+
.get_pendown_state = tsc2007_get_pendown_state,
5966
};
6067

61-
#define TSC2007_IRQGPIO IMX_GPIO_NR(3, 2)
6268
static struct i2c_board_info eukrea_cpuimx35_i2c_devices[] = {
6369
{
6470
I2C_BOARD_INFO("pcf8563", 0x51),

arch/arm/mach-omap2/omap_hwmod_3xxx_data.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3247,18 +3247,14 @@ static __initdata struct omap_hwmod *omap3xxx_hwmods[] = {
32473247

32483248
/* 3430ES1-only hwmods */
32493249
static __initdata struct omap_hwmod *omap3430es1_hwmods[] = {
3250-
&omap3xxx_iva_hwmod,
32513250
&omap3430es1_dss_core_hwmod,
3252-
&omap3xxx_mailbox_hwmod,
32533251
NULL
32543252
};
32553253

32563254
/* 3430ES2+-only hwmods */
32573255
static __initdata struct omap_hwmod *omap3430es2plus_hwmods[] = {
3258-
&omap3xxx_iva_hwmod,
32593256
&omap3xxx_dss_core_hwmod,
32603257
&omap3xxx_usbhsotg_hwmod,
3261-
&omap3xxx_mailbox_hwmod,
32623258
NULL
32633259
};
32643260

arch/arm/plat-mxc/cpufreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static int mxc_set_target(struct cpufreq_policy *policy,
9898
return ret;
9999
}
100100

101-
static int __init mxc_cpufreq_init(struct cpufreq_policy *policy)
101+
static int mxc_cpufreq_init(struct cpufreq_policy *policy)
102102
{
103103
int ret;
104104
int i;

arch/arm/plat-mxc/include/mach/uncompress.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ static __inline__ void __arch_decomp_setup(unsigned long arch_id)
9898
case MACH_TYPE_PCM043:
9999
case MACH_TYPE_LILLY1131:
100100
case MACH_TYPE_VPR200:
101+
case MACH_TYPE_EUKREA_CPUIMX35SD:
101102
uart_base = MX3X_UART1_BASE_ADDR;
102103
break;
103104
case MACH_TYPE_MAGX_ZN5:

arch/arm/plat-mxc/pwm.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ int pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns)
7777
do_div(c, period_ns);
7878
duty_cycles = c;
7979

80+
/*
81+
* according to imx pwm RM, the real period value should be
82+
* PERIOD value in PWMPR plus 2.
83+
*/
84+
if (period_cycles > 2)
85+
period_cycles -= 2;
86+
else
87+
period_cycles = 0;
88+
8089
writel(duty_cycles, pwm->mmio_base + MX3_PWMSAR);
8190
writel(period_cycles, pwm->mmio_base + MX3_PWMPR);
8291

arch/arm/plat-orion/gpio.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,12 +384,16 @@ void __init orion_gpio_init(int gpio_base, int ngpio,
384384
struct orion_gpio_chip *ochip;
385385
struct irq_chip_generic *gc;
386386
struct irq_chip_type *ct;
387+
char gc_label[16];
387388

388389
if (orion_gpio_chip_count == ARRAY_SIZE(orion_gpio_chips))
389390
return;
390391

392+
snprintf(gc_label, sizeof(gc_label), "orion_gpio%d",
393+
orion_gpio_chip_count);
394+
391395
ochip = orion_gpio_chips + orion_gpio_chip_count;
392-
ochip->chip.label = "orion_gpio";
396+
ochip->chip.label = kstrdup(gc_label, GFP_KERNEL);
393397
ochip->chip.request = orion_gpio_request;
394398
ochip->chip.direction_input = orion_gpio_direction_input;
395399
ochip->chip.get = orion_gpio_get;

drivers/dma/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ config MV_XOR
124124

125125
config MX3_IPU
126126
bool "MX3x Image Processing Unit support"
127-
depends on ARCH_MX3
127+
depends on SOC_IMX31 || SOC_IMX35
128128
select DMA_ENGINE
129129
default y
130130
help
@@ -216,7 +216,7 @@ config PCH_DMA
216216

217217
config IMX_SDMA
218218
tristate "i.MX SDMA support"
219-
depends on ARCH_MX25 || ARCH_MX3 || ARCH_MX5
219+
depends on ARCH_MX25 || SOC_IMX31 || SOC_IMX35 || ARCH_MX5
220220
select DMA_ENGINE
221221
help
222222
Support the i.MX SDMA engine. This engine is integrated into

0 commit comments

Comments
 (0)