Skip to content

Commit eeea3ac

Browse files
committed
Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC bug fixes from Olof Johansson: "Mostly Renesas and Atmel bugfixes this time, targeting boot and build problems. A couple of patches for gemini and kirkwood as well. On a whole nothing very controversial." * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: ARM: gemini: fix the gemini build ARM: shmobile: armadillo800eva: enable rw rootfs mount ARM: Kirkwood: Fix 'SZ_1M' undeclared here for db88f6281-bp-setup.c ARM: shmobile: mackerel: fixup usb module order ARM: shmobile: armadillo800eva: fixup: sound card detection order ARM: shmobile: marzen: fixup smsc911x id for regulator ARM: at91/feature-removal-schedule: delay at91_mci removal ARM: mach-shmobile: armadillo800eva: Enable power button as wakeup source ARM: mach-shmobile: armadillo800eva: Fix GPIO buttons descriptions ARM: at91/dts: remove partial parameter in at91sam9g25ek.dts ARM: at91/clock: fix PLLA overclock warning ARM: at91: fix rtc-at91sam9 irq issue due to sparse irq support ARM: at91: fix system timer irq issue due to sparse irq support ARM: shmobile: sh73a0: fixup RELOC_BASE of intca_irq_pins_desc
2 parents c7c6bf1 + e829c66 commit eeea3ac

17 files changed

Lines changed: 73 additions & 27 deletions

‎Documentation/feature-removal-schedule.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ Why: KVM tracepoints provide mostly equivalent information in a much more
579579
----------------------------
580580

581581
What: at91-mci driver ("CONFIG_MMC_AT91")
582-
When: 3.7
582+
When: 3.8
583583
Why: There are two mci drivers: at91-mci and atmel-mci. The PDC support
584584
was added to atmel-mci as a first step to support more chips.
585585
Then at91-mci was kept only for old IP versions (on at91rm9200 and

‎arch/arm/boot/dts/at91sam9g25ek.dts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
compatible = "atmel,at91sam9g25ek", "atmel,at91sam9x5ek", "atmel,at91sam9x5", "atmel,at91sam9";
1616

1717
chosen {
18-
bootargs = "128M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs";
18+
bootargs = "console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs";
1919
};
2020

2121
ahb {

‎arch/arm/configs/armadillo800eva_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ CONFIG_AEABI=y
3333
CONFIG_FORCE_MAX_ZONEORDER=13
3434
CONFIG_ZBOOT_ROM_TEXT=0x0
3535
CONFIG_ZBOOT_ROM_BSS=0x0
36-
CONFIG_CMDLINE="console=tty0 console=ttySC1,115200 earlyprintk=sh-sci.1,115200 ignore_loglevel root=/dev/nfs ip=dhcp nfsroot=,rsize=4096,wsize=4096"
36+
CONFIG_CMDLINE="console=tty0 console=ttySC1,115200 earlyprintk=sh-sci.1,115200 ignore_loglevel root=/dev/nfs ip=dhcp nfsroot=,rsize=4096,wsize=4096 rw"
3737
CONFIG_CMDLINE_FORCE=y
3838
CONFIG_KEXEC=y
3939
CONFIG_VFP=y

‎arch/arm/mach-at91/at91rm9200_time.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ void __init at91rm9200_timer_init(void)
197197
at91_st_read(AT91_ST_SR);
198198

199199
/* Make IRQs happen for the system timer */
200-
setup_irq(AT91_ID_SYS, &at91rm9200_timer_irq);
200+
setup_irq(NR_IRQS_LEGACY + AT91_ID_SYS, &at91rm9200_timer_irq);
201201

202202
/* The 32KiHz "Slow Clock" (tick every 30517.58 nanoseconds) is used
203203
* directly for the clocksource and all clockevents, after adjusting

‎arch/arm/mach-at91/at91sam9260_devices.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,8 @@ static struct resource rtt_resources[] = {
726726
.flags = IORESOURCE_MEM,
727727
}, {
728728
.flags = IORESOURCE_MEM,
729+
}, {
730+
.flags = IORESOURCE_IRQ,
729731
},
730732
};
731733

@@ -744,10 +746,12 @@ static void __init at91_add_device_rtt_rtc(void)
744746
* The second resource is needed:
745747
* GPBR will serve as the storage for RTC time offset
746748
*/
747-
at91sam9260_rtt_device.num_resources = 2;
749+
at91sam9260_rtt_device.num_resources = 3;
748750
rtt_resources[1].start = AT91SAM9260_BASE_GPBR +
749751
4 * CONFIG_RTC_DRV_AT91SAM9_GPBR;
750752
rtt_resources[1].end = rtt_resources[1].start + 3;
753+
rtt_resources[2].start = NR_IRQS_LEGACY + AT91_ID_SYS;
754+
rtt_resources[2].end = NR_IRQS_LEGACY + AT91_ID_SYS;
751755
}
752756
#else
753757
static void __init at91_add_device_rtt_rtc(void)

‎arch/arm/mach-at91/at91sam9261_devices.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,8 @@ static struct resource rtt_resources[] = {
609609
.flags = IORESOURCE_MEM,
610610
}, {
611611
.flags = IORESOURCE_MEM,
612+
}, {
613+
.flags = IORESOURCE_IRQ,
612614
}
613615
};
614616

@@ -626,10 +628,12 @@ static void __init at91_add_device_rtt_rtc(void)
626628
* The second resource is needed:
627629
* GPBR will serve as the storage for RTC time offset
628630
*/
629-
at91sam9261_rtt_device.num_resources = 2;
631+
at91sam9261_rtt_device.num_resources = 3;
630632
rtt_resources[1].start = AT91SAM9261_BASE_GPBR +
631633
4 * CONFIG_RTC_DRV_AT91SAM9_GPBR;
632634
rtt_resources[1].end = rtt_resources[1].start + 3;
635+
rtt_resources[2].start = NR_IRQS_LEGACY + AT91_ID_SYS;
636+
rtt_resources[2].end = NR_IRQS_LEGACY + AT91_ID_SYS;
633637
}
634638
#else
635639
static void __init at91_add_device_rtt_rtc(void)

‎arch/arm/mach-at91/at91sam9263_devices.c‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,8 @@ static struct resource rtt0_resources[] = {
990990
.flags = IORESOURCE_MEM,
991991
}, {
992992
.flags = IORESOURCE_MEM,
993+
}, {
994+
.flags = IORESOURCE_IRQ,
993995
}
994996
};
995997

@@ -1006,6 +1008,8 @@ static struct resource rtt1_resources[] = {
10061008
.flags = IORESOURCE_MEM,
10071009
}, {
10081010
.flags = IORESOURCE_MEM,
1011+
}, {
1012+
.flags = IORESOURCE_IRQ,
10091013
}
10101014
};
10111015

@@ -1027,14 +1031,14 @@ static void __init at91_add_device_rtt_rtc(void)
10271031
* The second resource is needed only for the chosen RTT:
10281032
* GPBR will serve as the storage for RTC time offset
10291033
*/
1030-
at91sam9263_rtt0_device.num_resources = 2;
1034+
at91sam9263_rtt0_device.num_resources = 3;
10311035
at91sam9263_rtt1_device.num_resources = 1;
10321036
pdev = &at91sam9263_rtt0_device;
10331037
r = rtt0_resources;
10341038
break;
10351039
case 1:
10361040
at91sam9263_rtt0_device.num_resources = 1;
1037-
at91sam9263_rtt1_device.num_resources = 2;
1041+
at91sam9263_rtt1_device.num_resources = 3;
10381042
pdev = &at91sam9263_rtt1_device;
10391043
r = rtt1_resources;
10401044
break;
@@ -1047,6 +1051,8 @@ static void __init at91_add_device_rtt_rtc(void)
10471051
pdev->name = "rtc-at91sam9";
10481052
r[1].start = AT91SAM9263_BASE_GPBR + 4 * CONFIG_RTC_DRV_AT91SAM9_GPBR;
10491053
r[1].end = r[1].start + 3;
1054+
r[2].start = NR_IRQS_LEGACY + AT91_ID_SYS;
1055+
r[2].end = NR_IRQS_LEGACY + AT91_ID_SYS;
10501056
}
10511057
#else
10521058
static void __init at91_add_device_rtt_rtc(void)

‎arch/arm/mach-at91/at91sam9g45_devices.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,6 +1293,8 @@ static struct resource rtt_resources[] = {
12931293
.flags = IORESOURCE_MEM,
12941294
}, {
12951295
.flags = IORESOURCE_MEM,
1296+
}, {
1297+
.flags = IORESOURCE_IRQ,
12961298
}
12971299
};
12981300

@@ -1310,10 +1312,12 @@ static void __init at91_add_device_rtt_rtc(void)
13101312
* The second resource is needed:
13111313
* GPBR will serve as the storage for RTC time offset
13121314
*/
1313-
at91sam9g45_rtt_device.num_resources = 2;
1315+
at91sam9g45_rtt_device.num_resources = 3;
13141316
rtt_resources[1].start = AT91SAM9G45_BASE_GPBR +
13151317
4 * CONFIG_RTC_DRV_AT91SAM9_GPBR;
13161318
rtt_resources[1].end = rtt_resources[1].start + 3;
1319+
rtt_resources[2].start = NR_IRQS_LEGACY + AT91_ID_SYS;
1320+
rtt_resources[2].end = NR_IRQS_LEGACY + AT91_ID_SYS;
13171321
}
13181322
#else
13191323
static void __init at91_add_device_rtt_rtc(void)

‎arch/arm/mach-at91/at91sam9rl_devices.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,8 @@ static struct resource rtt_resources[] = {
688688
.flags = IORESOURCE_MEM,
689689
}, {
690690
.flags = IORESOURCE_MEM,
691+
}, {
692+
.flags = IORESOURCE_IRQ,
691693
}
692694
};
693695

@@ -705,10 +707,12 @@ static void __init at91_add_device_rtt_rtc(void)
705707
* The second resource is needed:
706708
* GPBR will serve as the storage for RTC time offset
707709
*/
708-
at91sam9rl_rtt_device.num_resources = 2;
710+
at91sam9rl_rtt_device.num_resources = 3;
709711
rtt_resources[1].start = AT91SAM9RL_BASE_GPBR +
710712
4 * CONFIG_RTC_DRV_AT91SAM9_GPBR;
711713
rtt_resources[1].end = rtt_resources[1].start + 3;
714+
rtt_resources[2].start = NR_IRQS_LEGACY + AT91_ID_SYS;
715+
rtt_resources[2].end = NR_IRQS_LEGACY + AT91_ID_SYS;
712716
}
713717
#else
714718
static void __init at91_add_device_rtt_rtc(void)

‎arch/arm/mach-at91/clock.c‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ EXPORT_SYMBOL_GPL(at91_pmc_base);
6363

6464
#define cpu_has_300M_plla() (cpu_is_at91sam9g10())
6565

66+
#define cpu_has_240M_plla() (cpu_is_at91sam9261() \
67+
|| cpu_is_at91sam9263() \
68+
|| cpu_is_at91sam9rl())
69+
70+
#define cpu_has_210M_plla() (cpu_is_at91sam9260())
71+
6672
#define cpu_has_pllb() (!(cpu_is_at91sam9rl() \
6773
|| cpu_is_at91sam9g45() \
6874
|| cpu_is_at91sam9x5() \
@@ -706,6 +712,12 @@ static int __init at91_pmc_init(unsigned long main_clock)
706712
} else if (cpu_has_800M_plla()) {
707713
if (plla.rate_hz > 800000000)
708714
pll_overclock = true;
715+
} else if (cpu_has_240M_plla()) {
716+
if (plla.rate_hz > 240000000)
717+
pll_overclock = true;
718+
} else if (cpu_has_210M_plla()) {
719+
if (plla.rate_hz > 210000000)
720+
pll_overclock = true;
709721
} else {
710722
if (plla.rate_hz > 209000000)
711723
pll_overclock = true;

0 commit comments

Comments
 (0)