2010-02-05 11:14:49 +00:00
|
|
|
#
|
|
|
|
# Makefile for the linux kernel.
|
|
|
|
#
|
|
|
|
|
|
|
|
# Common objects
|
2013-07-17 20:30:59 +00:00
|
|
|
obj-y := timer.o console.o
|
2010-02-05 11:14:49 +00:00
|
|
|
|
|
|
|
# CPU objects
|
2015-01-09 13:08:50 +00:00
|
|
|
obj-$(CONFIG_ARCH_SH73A0) += setup-sh73a0.o pm-sh73a0.o
|
2013-07-17 20:30:59 +00:00
|
|
|
obj-$(CONFIG_ARCH_R8A73A4) += setup-r8a73a4.o
|
2014-08-25 03:04:01 +00:00
|
|
|
obj-$(CONFIG_ARCH_R8A7740) += setup-r8a7740.o pm-r8a7740.o
|
2013-07-17 20:30:59 +00:00
|
|
|
obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7778.o
|
2014-08-25 03:03:52 +00:00
|
|
|
obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o pm-r8a7779.o
|
2015-03-16 05:48:43 +00:00
|
|
|
obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o
|
|
|
|
obj-$(CONFIG_ARCH_R8A7791) += setup-r8a7791.o
|
2014-09-04 14:02:28 +00:00
|
|
|
obj-$(CONFIG_ARCH_R8A7794) += setup-r8a7794.o
|
2013-07-17 20:30:59 +00:00
|
|
|
obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o
|
2013-09-18 20:11:11 +00:00
|
|
|
obj-$(CONFIG_ARCH_R7S72100) += setup-r7s72100.o
|
2013-07-17 20:30:59 +00:00
|
|
|
|
|
|
|
# Clock objects
|
2014-03-12 23:36:17 +00:00
|
|
|
ifndef CONFIG_COMMON_CLK
|
2014-10-26 13:07:32 +00:00
|
|
|
obj-y += clock.o
|
2013-07-17 20:30:59 +00:00
|
|
|
obj-$(CONFIG_ARCH_SH73A0) += clock-sh73a0.o
|
|
|
|
obj-$(CONFIG_ARCH_R8A7740) += clock-r8a7740.o
|
|
|
|
obj-$(CONFIG_ARCH_R8A7778) += clock-r8a7778.o
|
|
|
|
obj-$(CONFIG_ARCH_R8A7779) += clock-r8a7779.o
|
|
|
|
endif
|
2010-02-05 11:14:49 +00:00
|
|
|
|
2014-06-06 07:20:10 +00:00
|
|
|
# CPU reset vector handling objects
|
|
|
|
cpu-y := platsmp.o headsmp.o
|
2014-08-25 03:03:43 +00:00
|
|
|
|
|
|
|
# Shared SoC family objects
|
|
|
|
obj-$(CONFIG_ARCH_RCAR_GEN2) += setup-rcar-gen2.o platsmp-apmu.o $(cpu-y)
|
2014-11-11 15:36:50 +00:00
|
|
|
CFLAGS_setup-rcar-gen2.o += -march=armv7-a
|
ARM: shmobile: R-Car Gen2: Add da9063/da9210 regulator quirk
The r8a7790/lager and r8a7791/koelsch development boards have da9063 and
da9210 regulators. Both regulators have their interrupt request lines
tied to the same interrupt pin (IRQ2) on the SoC.
After cold boot or da9063-induced restart, both the da9063 and da9210
seem to assert their interrupt request lines. Hence as soon as one
driver requests this irq, it gets stuck in an interrupt storm, as it
only manages to deassert its own interrupt request line, and the other
driver hasn't installed an interrupt handler yet.
To handle this, install a quirk that masks the interrupts in both the
da9063 and da9210. This quirk has to run after the i2c master driver
has been initialized, but before the i2c slave drivers are initialized.
As it depends on i2c, select I2C if one of the affected platforms is
enabled in the kernel config.
On koelsch, the following happens:
- Cold boot or reboot using the da9063 restart handler:
IRQ2 is asserted, installing da9063/da9210 regulator quirk
...
i2c i2c-6: regulator_quirk_notify: 1, IRQC_MONITOR = 0x3fb
i2c 6-0058: regulator_quirk_notify: 1, IRQC_MONITOR = 0x3fb
i2c 6-0058: Detected da9063
i2c 6-0058: Masking da9063 interrupt sources
i2c 6-0068: regulator_quirk_notify: 1, IRQC_MONITOR = 0x3fb
i2c 6-0068: Detected da9210
i2c 6-0068: Masking da9210 interrupt sources
i2c 6-0068: IRQ2 is not asserted, removing quirk
- Warm boot (reset button):
rcar_gen2_regulator_quirk: IRQ2 is not asserted, not installing quirk
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
2015-03-09 19:50:40 +00:00
|
|
|
obj-$(CONFIG_ARCH_R8A7790) += regulator-quirk-rcar-gen2.o
|
|
|
|
obj-$(CONFIG_ARCH_R8A7791) += regulator-quirk-rcar-gen2.o
|
2014-06-06 07:20:10 +00:00
|
|
|
|
2010-12-14 07:56:55 +00:00
|
|
|
# SMP objects
|
2014-06-06 07:20:10 +00:00
|
|
|
smp-y := $(cpu-y)
|
2013-07-31 07:07:21 +00:00
|
|
|
smp-$(CONFIG_ARCH_SH73A0) += smp-sh73a0.o headsmp-scu.o platsmp-scu.o
|
2013-07-31 07:07:31 +00:00
|
|
|
smp-$(CONFIG_ARCH_R8A7779) += smp-r8a7779.o headsmp-scu.o platsmp-scu.o
|
2014-06-06 07:21:03 +00:00
|
|
|
smp-$(CONFIG_ARCH_R8A7790) += smp-r8a7790.o
|
2014-06-06 07:21:19 +00:00
|
|
|
smp-$(CONFIG_ARCH_R8A7791) += smp-r8a7791.o
|
2013-07-31 07:07:40 +00:00
|
|
|
smp-$(CONFIG_ARCH_EMEV2) += smp-emev2.o headsmp-scu.o platsmp-scu.o
|
2010-12-14 07:56:55 +00:00
|
|
|
|
2011-04-28 17:23:28 +00:00
|
|
|
# PM objects
|
|
|
|
obj-$(CONFIG_SUSPEND) += suspend.o
|
2014-06-03 12:02:45 +00:00
|
|
|
obj-$(CONFIG_CPU_FREQ) += cpufreq.o
|
2014-08-25 03:03:52 +00:00
|
|
|
obj-$(CONFIG_PM_RCAR) += pm-rcar.o
|
2014-08-25 03:04:01 +00:00
|
|
|
obj-$(CONFIG_PM_RMOBILE) += pm-rmobile.o
|
2015-03-16 05:48:43 +00:00
|
|
|
obj-$(CONFIG_ARCH_RCAR_GEN2) += pm-rcar-gen2.o
|
2011-04-28 17:23:28 +00:00
|
|
|
|
2010-02-05 11:14:49 +00:00
|
|
|
# Board objects
|
2013-10-01 10:33:15 +00:00
|
|
|
ifdef CONFIG_ARCH_SHMOBILE_MULTI
|
2014-05-15 11:32:05 +00:00
|
|
|
obj-$(CONFIG_MACH_MARZEN) += board-marzen-reference.o
|
2013-10-01 10:33:15 +00:00
|
|
|
else
|
2013-03-21 10:03:38 +00:00
|
|
|
obj-$(CONFIG_MACH_BOCKW) += board-bockw.o
|
2013-07-24 07:36:51 +00:00
|
|
|
obj-$(CONFIG_MACH_BOCKW_REFERENCE) += board-bockw-reference.o
|
2011-12-13 16:36:12 +00:00
|
|
|
obj-$(CONFIG_MACH_MARZEN) += board-marzen.o
|
2012-04-06 08:28:59 +00:00
|
|
|
obj-$(CONFIG_MACH_ARMADILLO800EVA) += board-armadillo800eva.o
|
2015-01-09 13:08:50 +00:00
|
|
|
obj-$(CONFIG_MACH_KZM9G) += board-kzm9g.o intc-sh73a0.o
|
2013-10-01 10:33:15 +00:00
|
|
|
endif
|
2010-12-14 07:15:35 +00:00
|
|
|
|
|
|
|
# Framework support
|
2010-12-14 07:56:55 +00:00
|
|
|
obj-$(CONFIG_SMP) += $(smp-y)
|