From 24231aceacd46a6b5f1c29dda6c97a436495555d Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Tue, 6 Jun 2017 09:46:01 +0200 Subject: drivers/i2c/ck505: Add generic driver to configure clockgen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces the ics/954309 driver with a more generic version to accommodate clockgens with a different amount of registers. It also features a mask to only touch certain bits of the clockgen. TODO: set appropriate mask for X60/T60 since the datasheets for their clockgens can be found. Change-Id: Ie43c4de7891a39f2f443e78213ecd688134e68d7 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/20042 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki --- src/drivers/i2c/ck505/chip.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/drivers/i2c/ck505/chip.h (limited to 'src/drivers/i2c/ck505/chip.h') diff --git a/src/drivers/i2c/ck505/chip.h b/src/drivers/i2c/ck505/chip.h new file mode 100644 index 0000000000..8ce297cb53 --- /dev/null +++ b/src/drivers/i2c/ck505/chip.h @@ -0,0 +1,26 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2011 Sven Schnelle + * + * 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. + */ + +#ifndef DRIVERS_CK505_CHIP_H +#define DRIVERS_CK505_CHIP_H + +struct drivers_i2c_ck505_config { + const int nregs; + const u8 regs[32]; + const u8 mask[32]; +}; + +#endif -- cgit v1.2.3