From 0cf0d1499ab4fb86a6c85f83ab4097a62e2e3642 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Mon, 15 Jul 2013 09:11:21 -0700 Subject: rtd2132: Add driver for Realtek RTD2132 LVDS bridge This driver allows the mainboard to enable spread spectrum clocking at 0.5%, 1.0%, and 1.5% with devicetree settings. Change-Id: I59c61e67aa8e951fd9904ad951deb6d0ba29669e Signed-off-by: Duncan Laurie Reviewed-on: https://gerrit.chromium.org/gerrit/61894 Reviewed-on: http://review.coreboot.org/4365 Reviewed-by: Patrick Georgi Tested-by: build bot (Jenkins) --- src/drivers/i2c/rtd2132/chip.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/drivers/i2c/rtd2132/chip.h (limited to 'src/drivers/i2c/rtd2132/chip.h') diff --git a/src/drivers/i2c/rtd2132/chip.h b/src/drivers/i2c/rtd2132/chip.h new file mode 100644 index 0000000000..34ae91a3fe --- /dev/null +++ b/src/drivers/i2c/rtd2132/chip.h @@ -0,0 +1,29 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2013 Google Inc. All Rights Reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA + */ + +struct drivers_i2c_rtd2132_config { + /* + * LVDS Spread Spectrum Clock + * 0x00 = DISABLED + * 0x05 = 0.5% + * 0x10 = 1.0% + * 0x15 = 1.5% + */ + u8 sscg_percent; +}; -- cgit v1.2.3