I am trying to create a common clock framework device driver. My test environment is a Raspberry Pi 3 hooked up to an eval board with the clock chip on it (via I2C). Right now I am just trying to understand the device tree and figure out how to modify it to include an existing clock's driver (even if that clock isn't actually connected). In particular, I plan on just adding a Si570 chip to the device tree and see if I can watch the log to see if it is loaded properly on boot (from drivers/clk/clk-si570.c).
I have successfully built a new Raspbian kernel and deployed it (4.4.16-v7). (I'm very, very new to this, btw. This is my first time compiling the kernel). Now I'm trying to use "make menuconfig" to enable the common clock framework, but I don't see the option.
From looking online, it appears the CCF is supported on Raspbian. I'm not positive, though. I used / to search for COMMON_CLK in menuconfig. It has a "selected by" line, not Depends On. That line is too long to fit on the screen, so it gets cut off. It has clauses like "X86_INTEL_QUARK [=n] && X86_32 [=n] && X86_EXTENDED_PLATFORM [=y] && X86_PLATFORM_DEVICES [=y]..." Since I'm on PI/ARM, I'm not sure exactly how to interpret that line.
Also, it appears that the .config file for the Raspbian kernel build doesn't even have CONFIG_COMMON_CLK=n in it; COMMON_CLK doesn't appear anywhere in the file.
So I really have two questions:
Is the CCF supported on Raspbian at all?
What other techniques can I use to figure out why Drivers > Common Clock Framework isn't showing up in menuconfig?
UPDATE The common clock framework does work on the Raspberry Pi. See my other post here: