From bb11232210347a736fc24b69ad25faade70f00cb Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Thu, 12 Jul 2018 15:02:00 +0200 Subject: [PATCH] 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 Reviewed-on: https://review.coreboot.org/27454 Reviewed-by: Philipp Deppenwiese Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/vendorcode/cavium/bdk/libbdk-hal/qlm/bdk-qlm-common.c | 4 ++-- 1 file 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;