coreboot-kgpe-d16/src/soc
Anatol Pomazau d9af30bec1 broadcom/cygnus: Implement I2C driver
BUG=chrome-os-partner:35810
BRANCH=purin
TEST=Enable I2C1, reset devboard codec, read a register.
     Here is the code that demonstrates how I2C works:

	i2c_init(1, 100*KHz);
	mdelay(50);

	int rc = i2c_writeb(1, 0x18, 1, 0x80); // reset codec
	printk(BIOS_INFO, "I2C reset rc=%d\n", rc);
	mdelay(50);
	uint8_t data = 0;
	rc = i2c_readb(1, 0x18, 43, &data);
	printk(BIOS_INFO, "I2C read rc=%d data=%x\n", rc, data); // data == 0x80

Change-Id: I0d202f8b0375b5ccd9f71b23fb0cadd5a70ae779
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 6bbe9afe3dccd104f39c2c286d3765a28ea20141
Original-Signed-off-by: Anatol Pomazau <anatol@google.com>
Original-Reviewed-on: https://chrome-internal-review.googlesource.com/195706
Original-Reviewed-by: Daisuke Nojiri <dnojiri@google.com>
Original-Reviewed-by: Anatol Pomazau <anatol@google.com>
Original-Commit-Queue: Anatol Pomazau <anatol@google.com>
Original-Tested-by: Anatol Pomazau <anatol@google.com>
Original-Change-Id: I178acef9de18fa854983294edcd2c05886795e2a
Original-Reviewed-on: https://chromium-review.googlesource.com/263496
Original-Commit-Queue: Daisuke Nojiri <dnojiri@chromium.org>
Original-Trybot-Ready: Daisuke Nojiri <dnojiri@chromium.org>
Original-Tested-by: Daisuke Nojiri <dnojiri@chromium.org>
Original-Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: http://review.coreboot.org/9908
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2015-04-22 08:57:36 +02:00
..
broadcom broadcom/cygnus: Implement I2C driver 2015-04-22 08:57:36 +02:00
imgtec soc: select generic gpio lib on (almost) all non-x86 SOCs 2015-04-22 08:54:56 +02:00
intel broadwell: Clear USB3.0 PORTSC status bits in sleep_prepare. 2015-04-21 08:09:30 +02:00
marvell soc: select generic gpio lib on (almost) all non-x86 SOCs 2015-04-22 08:54:56 +02:00
nvidia soc: select generic gpio lib on (almost) all non-x86 SOCs 2015-04-22 08:54:56 +02:00
qualcomm soc: select generic gpio lib on (almost) all non-x86 SOCs 2015-04-22 08:54:56 +02:00
rockchip soc: select generic gpio lib on (almost) all non-x86 SOCs 2015-04-22 08:54:56 +02:00
samsung arm(64): Manually clean up the mess left by write32() transition 2015-04-21 08:22:40 +02:00
ucb kconfig: drop intermittend forwarder files 2015-04-07 17:40:28 +02:00
Makefile.inc broadcom/cygnus: add new SoC driver 2015-04-17 09:57:00 +02:00