aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/rtc/rtc-pl031.c4
-rw-r--r--lib/Makefile4
2 files changed, 8 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-pl031.c b/drivers/rtc/rtc-pl031.c
index 30943d200c5e..0cb8cc2f17f8 100644
--- a/drivers/rtc/rtc-pl031.c
+++ b/drivers/rtc/rtc-pl031.c
@@ -397,8 +397,12 @@ static int pl031_probe(struct amba_device *adev, const struct amba_id *id)
vendor->irqflags, "rtc-pl031", ldata);
if (ret)
goto out;
+ /*Set bit "RTC start" in register RTCCR to enable RTC */
+ writel(0x1, ldata->base + RTC_CR);
+
dev_pm_set_wake_irq(&adev->dev, adev->irq[0]);
}
+
return 0;
out:
diff --git a/lib/Makefile b/lib/Makefile
index d1f312096bec..197b0c8b2a80 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -93,9 +93,13 @@ CFLAGS_kobject.o += -DDEBUG
CFLAGS_kobject_uevent.o += -DDEBUG
endif
+
obj-$(CONFIG_DEBUG_INFO_REDUCED) += debug_info.o
CFLAGS_debug_info.o += $(call cc-option, -femit-struct-debug-detailed=any)
+CFLAGS_vsprintf.o += -O0
+CFLAGS_asprintf.o += -O0
+
obj-$(CONFIG_GENERIC_IOMAP) += iomap.o
obj-$(CONFIG_GENERIC_PCI_IOMAP) += pci_iomap.o
obj-$(CONFIG_HAS_IOMEM) += iomap_copy.o devres.o