Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 530cb2a

Browse files
author
Ramji Jiyani
committed
ANDROID: GKI: Convert PPS & PTP Clocks as protected modules
Convert PPS and PTP Clocks configs to protected GKI modules from in-built. Configs being set to modules: - CONFIG_PPS: Pulse Per Second core (GPS Antennae related) These are required to be modules for PPS core to be module: - CONFIG_PTP_1588_CLOCK: PTP clock support - CONFIG_PTP_1588_CLOCK_OPTIONAL: Drivers that can optionally use the PTP_1588_CLOCK framework - CONFIG_PTP_1588_CLOCK_KVM: KVM virtual PTP clock Bug: 284024494 Test: TH Change-Id: Ie42f95b3462980a725390a470490b558329e6963 Signed-off-by: Ramji Jiyani <[email protected]>
1 parent 49f32a8 commit 530cb2a

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

arch/arm64/configs/gki_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ CONFIG_I3C=y
396396
CONFIG_SPI=y
397397
CONFIG_SPI_MEM=y
398398
# CONFIG_SPMI_MSM_PMIC_ARB is not set
399+
CONFIG_PTP_1588_CLOCK=m
399400
# CONFIG_PINCTRL_SUN8I_H3_R is not set
400401
# CONFIG_PINCTRL_SUN50I_A64 is not set
401402
# CONFIG_PINCTRL_SUN50I_A64_R is not set

arch/riscv/configs/gki_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ CONFIG_HW_RANDOM=y
361361
CONFIG_I3C=y
362362
CONFIG_SPI=y
363363
CONFIG_SPI_MEM=y
364+
CONFIG_PTP_1588_CLOCK=m
364365
CONFIG_PINCTRL=y
365366
CONFIG_GPIO_GENERIC_PLATFORM=y
366367
CONFIG_POWER_RESET=y

arch/x86/configs/gki_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ CONFIG_HPET=y
377377
CONFIG_I3C=y
378378
CONFIG_SPI=y
379379
CONFIG_SPI_MEM=y
380+
CONFIG_PTP_1588_CLOCK=m
380381
CONFIG_GPIOLIB=y
381382
CONFIG_GPIO_GENERIC_PLATFORM=y
382383
# CONFIG_HWMON is not set

modules.bzl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ _COMMON_GKI_MODULES_LIST = [
3636
"drivers/net/usb/rtl8150.ko",
3737
"drivers/net/usb/usbnet.ko",
3838
"drivers/net/wwan/wwan.ko",
39+
"drivers/pps/pps_core.ko",
40+
"drivers/ptp/ptp.ko",
3941
"drivers/usb/class/cdc-acm.ko",
4042
"drivers/usb/serial/ftdi_sio.ko",
4143
"drivers/usb/serial/usbserial.ko",
@@ -77,6 +79,7 @@ COMMON_GKI_MODULES_LIST = _COMMON_GKI_MODULES_LIST
7779

7880
_ARM64_GKI_MODULES_LIST = [
7981
# keep sorted
82+
"drivers/ptp/ptp_kvm.ko",
8083
]
8184

8285
_RISCV64_GKI_MODULES_LIST = [
@@ -85,6 +88,7 @@ _RISCV64_GKI_MODULES_LIST = [
8588

8689
_X86_64_GKI_MODULES_LIST = [
8790
# keep sorted
91+
"drivers/ptp/ptp_kvm.ko",
8892
]
8993

9094
# buildifier: disable=unnamed-macro

0 commit comments

Comments
 (0)