diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2014-01-25 21:48:31 +0100 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-01-27 11:20:22 -0800 |
commit | 9d43dc7f403dbe5da25c7eb488a5975b08d95496 (patch) | |
tree | ed6f88dedda06a1a6d25ebbf5c75eea0e0a6e692 /drivers/clk/clk-si5351.h | |
parent | 8e31d19b93377e2e6ad67bc2e898186327cb0308 (diff) | |
download | talos-obmc-linux-9d43dc7f403dbe5da25c7eb488a5975b08d95496.tar.gz talos-obmc-linux-9d43dc7f403dbe5da25c7eb488a5975b08d95496.zip |
clk: si5351: remove variant from platform_data
Commit 9807362bfe1748d9bb48eecb9261f1b1aaafea1c
"clk: si5351: declare all device IDs for module loading"
removed the common i2c_device_id and introduced new ones for each variant
of the clock generator. Instead of exploiting that information in the driver,
it still depends on platform_data passing the chips .variant.
This removes the now redundant .variant from the platform_data and puts it in
i2c_device_id's .driver_data instead.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/clk-si5351.h')
-rw-r--r-- | drivers/clk/clk-si5351.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/clk/clk-si5351.h b/drivers/clk/clk-si5351.h index c0dbf2676872..4d0746b50c32 100644 --- a/drivers/clk/clk-si5351.h +++ b/drivers/clk/clk-si5351.h @@ -153,4 +153,18 @@ #define SI5351_XTAL_ENABLE (1<<6) #define SI5351_MULTISYNTH_ENABLE (1<<4) +/** + * enum si5351_variant - SiLabs Si5351 chip variant + * @SI5351_VARIANT_A: Si5351A (8 output clocks, XTAL input) + * @SI5351_VARIANT_A3: Si5351A MSOP10 (3 output clocks, XTAL input) + * @SI5351_VARIANT_B: Si5351B (8 output clocks, XTAL/VXCO input) + * @SI5351_VARIANT_C: Si5351C (8 output clocks, XTAL/CLKIN input) + */ +enum si5351_variant { + SI5351_VARIANT_A = 1, + SI5351_VARIANT_A3 = 2, + SI5351_VARIANT_B = 3, + SI5351_VARIANT_C = 4, +}; + #endif |