[PATCH v3 04/10] kernel: Add kmod-rtc-r7301
Robert Marko
robimarko at gmail.com
Thu Oct 12 02:26:37 PDT 2023
On Thu, 12 Oct 2023 at 10:43, Linus Walleij <linus.walleij at linaro.org> wrote:
>
> To support the IXP42x platforms we need a kernel module
> for the Epson R7301 RTC so we can load it as an optional
> module.
>
> Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
> ---
> ChangeLog v1->v3:
> - Use AutoProbe, drop preinit hook.
LGTM,
Reviewed-by: Robert Marko <robimarko at gmail.com>
> ---
> package/kernel/linux/modules/other.mk | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk
> index 2cd01d84d516..feee39602db9 100644
> --- a/package/kernel/linux/modules/other.mk
> +++ b/package/kernel/linux/modules/other.mk
> @@ -728,6 +728,21 @@ endef
>
> $(eval $(call KernelPackage,rtc-pcf2127))
>
> +define KernelPackage/rtc-r7301
> + SUBMENU:=$(OTHER_MENU)
> + TITLE:=Epson RTC7301 support
> + DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
> + KCONFIG:=CONFIG_RTC_DRV_R7301 \
> + CONFIG_RTC_CLASS=y
> + FILES:=$(LINUX_DIR)/drivers/rtc/rtc-r7301.ko
> + AUTOLOAD:=$(call AutoProbe,rtc-r7301)
> +endef
> +
> +define KernelPackage/rtc-r7301/description
> + Kernel module for Epson RTC7301 RTC chip
> +endef
> +
> +$(eval $(call KernelPackage,rtc-r7301))
>
> define KernelPackage/rtc-rs5c372a
> SUBMENU:=$(OTHER_MENU)
>
> --
> 2.34.1
>
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list