From 56cf7119e18c0fc3a3cecd62e2b19769d01e06de Mon Sep 17 00:00:00 2001 From: yEsPaP Date: Sat, 6 Feb 2021 10:03:11 +0200 Subject: [PATCH] drivers: misc: modem_v1: add support for old bootloaders --- drivers/misc/modem_v1/Kconfig | 4 ++++ drivers/misc/modem_v1/modem_ctrl_ss310ap.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/drivers/misc/modem_v1/Kconfig b/drivers/misc/modem_v1/Kconfig index 905d3b29c..d75d3dfbc 100644 --- a/drivers/misc/modem_v1/Kconfig +++ b/drivers/misc/modem_v1/Kconfig @@ -102,5 +102,9 @@ config KLAT bool "kernel CLAT" default n +config OREO_OR_OLDER + bool "Android 8.1 and older Bootloader/Modem Support" + default n + endmenu endif diff --git a/drivers/misc/modem_v1/modem_ctrl_ss310ap.c b/drivers/misc/modem_v1/modem_ctrl_ss310ap.c index f36f3d57c..4ce2b6c46 100644 --- a/drivers/misc/modem_v1/modem_ctrl_ss310ap.c +++ b/drivers/misc/modem_v1/modem_ctrl_ss310ap.c @@ -167,7 +167,11 @@ static int __init mif_get_hw_rev(char *arg) get_option(&arg, &sys_rev); return 0; } +#ifdef CONFIG_OREO_OR_OLDER +early_param("androidboot.hw_rev", mif_get_hw_rev); +#else early_param("androidboot.revision", mif_get_hw_rev); +#endif static int init_mailbox_regs(struct modem_ctl *mc) {