diff options
author | Patrick Rudolph <patrick.rudolph@9elements.com> | 2018-07-12 15:02:00 +0200 |
---|---|---|
committer | Patrick Rudolph <siro@das-labor.org> | 2018-07-17 08:05:26 +0000 |
commit | bb11232210347a736fc24b69ad25faade70f00cb (patch) | |
tree | 04b59e90853d382defc4b9db14ad02c01f960018 /src/vendorcode/cavium | |
parent | 239e435739aff51f8e680f75e8130eb3c488901d (diff) | |
download | coreboot-bb11232210347a736fc24b69ad25faade70f00cb.tar.xz |
cavium/bdk: Fix reference clock
Swap 100Mhz and 156Mhz reference clock.
Correct values are taken from __bdk_qlm_sff81xx_set_reference().
Tested on Cavium's cn8100_sff_evb.
Change-Id: I312ce7379b361594249f9f26f4e561ebf57347df
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/27454
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/vendorcode/cavium')
-rw-r--r-- | src/vendorcode/cavium/bdk/libbdk-hal/qlm/bdk-qlm-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vendorcode/cavium/bdk/libbdk-hal/qlm/bdk-qlm-common.c b/src/vendorcode/cavium/bdk/libbdk-hal/qlm/bdk-qlm-common.c index 2b3390228a..de9dcde374 100644 --- a/src/vendorcode/cavium/bdk/libbdk-hal/qlm/bdk-qlm-common.c +++ b/src/vendorcode/cavium/bdk/libbdk-hal/qlm/bdk-qlm-common.c @@ -832,11 +832,11 @@ static void __bdk_qlm_set_reference(bdk_node_t node, int qlm, int ref_clk) { switch (ref_clk) { - case REF_100MHZ: + case REF_156MHZ: use_clock = 0; /* Common clock 0 */ BDK_TRACE(QLM, "Setting N%d.QLM%d to use common clock 0\n", node, qlm); break; - case REF_156MHZ: + case REF_100MHZ: use_clock = 1; /* Common clock 1 */ BDK_TRACE(QLM, "Setting N%d.QLM%d to use common clock 1\n", node, qlm); break; |