2010-02-05 18:14:49 +07:00
|
|
|
#
|
|
|
|
# Makefile for the linux kernel.
|
|
|
|
#
|
|
|
|
|
|
|
|
# Common objects
|
2015-08-05 01:03:08 +07:00
|
|
|
obj-y := timer.o
|
2010-02-05 18:14:49 +07:00
|
|
|
|
|
|
|
# CPU objects
|
2015-06-17 16:31:20 +07:00
|
|
|
obj-$(CONFIG_ARCH_SH73A0) += setup-sh73a0.o
|
2013-07-18 03:30:59 +07:00
|
|
|
obj-$(CONFIG_ARCH_R8A73A4) += setup-r8a73a4.o
|
2015-06-17 16:31:24 +07:00
|
|
|
obj-$(CONFIG_ARCH_R8A7740) += setup-r8a7740.o
|
2013-07-18 03:30:59 +07:00
|
|
|
obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7778.o
|
2014-08-25 10:03:52 +07:00
|
|
|
obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o pm-r8a7779.o
|
2015-03-16 12:48:43 +07:00
|
|
|
obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o
|
|
|
|
obj-$(CONFIG_ARCH_R8A7791) += setup-r8a7791.o
|
2013-07-18 03:30:59 +07:00
|
|
|
obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o
|
2013-09-19 03:11:11 +07:00
|
|
|
obj-$(CONFIG_ARCH_R7S72100) += setup-r7s72100.o
|
2013-07-18 03:30:59 +07:00
|
|
|
|
2014-06-06 14:20:10 +07:00
|
|
|
# CPU reset vector handling objects
|
|
|
|
cpu-y := platsmp.o headsmp.o
|
2014-08-25 10:03:43 +07:00
|
|
|
|
|
|
|
# Shared SoC family objects
|
|
|
|
obj-$(CONFIG_ARCH_RCAR_GEN2) += setup-rcar-gen2.o platsmp-apmu.o $(cpu-y)
|
2014-11-11 22:36:50 +07: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-10 02:50:40 +07:00
|
|
|
obj-$(CONFIG_ARCH_R8A7790) += regulator-quirk-rcar-gen2.o
|
|
|
|
obj-$(CONFIG_ARCH_R8A7791) += regulator-quirk-rcar-gen2.o
|
2015-06-01 21:22:57 +07:00
|
|
|
obj-$(CONFIG_ARCH_R8A7793) += regulator-quirk-rcar-gen2.o
|
2014-06-06 14:20:10 +07:00
|
|
|
|
2010-12-14 14:56:55 +07:00
|
|
|
# SMP objects
|
2014-06-06 14:20:10 +07:00
|
|
|
smp-y := $(cpu-y)
|
2013-07-31 14:07:21 +07:00
|
|
|
smp-$(CONFIG_ARCH_SH73A0) += smp-sh73a0.o headsmp-scu.o platsmp-scu.o
|
2013-07-31 14:07:31 +07:00
|
|
|
smp-$(CONFIG_ARCH_R8A7779) += smp-r8a7779.o headsmp-scu.o platsmp-scu.o
|
2014-06-06 14:21:03 +07:00
|
|
|
smp-$(CONFIG_ARCH_R8A7790) += smp-r8a7790.o
|
2014-06-06 14:21:19 +07:00
|
|
|
smp-$(CONFIG_ARCH_R8A7791) += smp-r8a7791.o
|
2013-07-31 14:07:40 +07:00
|
|
|
smp-$(CONFIG_ARCH_EMEV2) += smp-emev2.o headsmp-scu.o platsmp-scu.o
|
2010-12-14 14:56:55 +07:00
|
|
|
|
2011-04-29 00:23:28 +07:00
|
|
|
# PM objects
|
|
|
|
obj-$(CONFIG_SUSPEND) += suspend.o
|
2014-08-25 10:04:01 +07:00
|
|
|
obj-$(CONFIG_PM_RMOBILE) += pm-rmobile.o
|
2015-03-16 12:48:43 +07:00
|
|
|
obj-$(CONFIG_ARCH_RCAR_GEN2) += pm-rcar-gen2.o
|
2011-04-29 00:23:28 +07:00
|
|
|
|
2010-12-14 14:15:35 +07:00
|
|
|
# Framework support
|
2010-12-14 14:56:55 +07:00
|
|
|
obj-$(CONFIG_SMP) += $(smp-y)
|