mirror of
https://github.com/armbian/build.git
synced 2025-09-19 20:51:12 +02:00
I have changed the way the patches are generated a bit. Instead of using orange-pi branch from megous tree for 6.6 kernel, I have used the following kernel branches a83t-suspend, af8133j, anx, audio, axp, cam, drm, err, fixes, mbus, modem, opi3, pb, pinetab, pp, ppkb, samuel, speed, tbs-a711, ths These branches were carefully chosen to include only allwinner related patches and remove importing of the rockchip related patches into the allwinner kernel. Following patches are modified to fix patch application failure - patches.armbian/arm64-dts-sun50i-h616-orangepi-zero2-reg_usb1_vbus-status-ok.patch - patches.armbian/arm64-dts-sun50i-h616-orangepi-zero2-Enable-GPU-mali.patch - patches.armbian/arm64-dts-allwinner-h616-Add-efuse_xlate-cpu-frequency-scaling-v1_6_2.patch - patches.armbian/arm64-dts-allwinner-h616-LED-green_power_on-red_status_heartbeat.patch - patches.armbian/arm64-dts-allwinner-overlay-Add-Overlays-for-sunxi64.patch - patches.armbian/arm64-dts-sun50i-h616-bigtreetech-cb1.patch Following patches are modified because of kernel api change to fix compilation failure - patches.armbian/drv-gpu-drm-sun4i-Add-HDMI-audio-sun4i-hdmi-encoder.patch - patches.armbian/drv-of-Device-Tree-Overlay-ConfigFS-interface.patch
46 lines
1.5 KiB
Diff
46 lines
1.5 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Andre Przywara <andre.przywara@arm.com>
|
|
Date: Wed, 21 Apr 2021 12:46:43 +0100
|
|
Subject: drv:rtc: sun6i: Add Allwinner H616 support
|
|
|
|
The H616 RTC changes its day storage to the newly introduced linear day
|
|
scheme, so pair the new compatible string with this feature flag.
|
|
The clock part is missing an external 32768 Hz oscillator input pin,
|
|
for future expansion we must thus ignore any provided clock for now.
|
|
|
|
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
|
|
---
|
|
drivers/rtc/rtc-sun6i.c | 16 ++++++++++
|
|
1 file changed, 16 insertions(+)
|
|
|
|
diff --git a/drivers/rtc/rtc-sun6i.c b/drivers/rtc/rtc-sun6i.c
|
|
index 190ea007d82e..e0b85a0d5645 100644
|
|
--- a/drivers/rtc/rtc-sun6i.c
|
|
+++ b/drivers/rtc/rtc-sun6i.c
|
|
@@ -389,6 +389,22 @@ static void __init sun50i_h6_rtc_clk_init(struct device_node *node)
|
|
CLK_OF_DECLARE_DRIVER(sun50i_h6_rtc_clk, "allwinner,sun50i-h6-rtc",
|
|
sun50i_h6_rtc_clk_init);
|
|
|
|
+static const struct sun6i_rtc_clk_data sun50i_h616_rtc_data = {
|
|
+ .rc_osc_rate = 16000000,
|
|
+ .fixed_prescaler = 32,
|
|
+ .has_prescaler = 1,
|
|
+ .has_out_clk = 1,
|
|
+ .no_ext_losc = 1,
|
|
+};
|
|
+
|
|
+static void __init sun50i_h616_rtc_clk_init(struct device_node *node)
|
|
+{
|
|
+ sun6i_rtc_clk_init(node, &sun50i_h616_rtc_data);
|
|
+}
|
|
+
|
|
+CLK_OF_DECLARE_DRIVER(sun50i_h616_rtc_clk, "allwinner,sun50i-h616-rtc",
|
|
+ sun50i_h616_rtc_clk_init);
|
|
+
|
|
/*
|
|
* The R40 user manual is self-conflicting on whether the prescaler is
|
|
* fixed or configurable. The clock diagram shows it as fixed, but there
|
|
--
|
|
Armbian
|
|
|