summaryrefslogtreecommitdiffstats
path: root/sys/arm/samsung/exynos/chrome_ec.c
diff options
context:
space:
mode:
authorbr <br@FreeBSD.org>2014-08-01 06:20:25 +0000
committerbr <br@FreeBSD.org>2014-08-01 06:20:25 +0000
commitf484e00cba11cc9a0349663251cca555828fdfe7 (patch)
tree2690befd8438972b435cc7a807b51e807001efe9 /sys/arm/samsung/exynos/chrome_ec.c
parent0fddfcfca33730558212923fe091b556985ac271 (diff)
downloadFreeBSD-src-f484e00cba11cc9a0349663251cca555828fdfe7.zip
FreeBSD-src-f484e00cba11cc9a0349663251cca555828fdfe7.tar.gz
Add support for Chromebook2 -- next-generation 8-core
(4 in operation), 4GB ram (3.5 usable) ARM machine. Support covers device drivers for: - Serial Peripheral Interface (SPI) - Chrome Embedded Controller (EC) - SPI-based version - XHCI and USB 3.0 dual-role device PHY Also: - Add support for Exynos5420 in Pad module - Move power-related functions to separate driver -- Power Management Unit (PMU) - Enable XHCI for Chromebook1 Special thanks to grehan@ for hardware, and to hselasky@ for r269139.
Diffstat (limited to 'sys/arm/samsung/exynos/chrome_ec.c')
-rw-r--r--sys/arm/samsung/exynos/chrome_ec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arm/samsung/exynos/chrome_ec.c b/sys/arm/samsung/exynos/chrome_ec.c
index ef64c1a..1718f6c 100644
--- a/sys/arm/samsung/exynos/chrome_ec.c
+++ b/sys/arm/samsung/exynos/chrome_ec.c
@@ -95,7 +95,7 @@ bus_claim(struct ec_softc *sc)
/* Say we want the bus */
GPIO_PIN_SET(gpio_dev, sc->our_gpio, GPIO_PIN_LOW);
- /* TODO(imax): insert a delay to allow EC to react. */
+ /* TODO: insert a delay to allow EC to react. */
/* Check EC decision */
GPIO_PIN_GET(gpio_dev, sc->ec_gpio, &status);
@@ -214,7 +214,7 @@ int ec_hello(void)
data_in[2] = 0x20;
data_in[3] = 0x10;
- ec_command(EC_CMD_MKBP_STATE, data_in, 4,
+ ec_command(EC_CMD_HELLO, data_in, 4,
data_out, 4);
return (0);
@@ -225,7 +225,7 @@ configure_i2c_arbitrator(struct ec_softc *sc)
{
phandle_t arbitrator;
- /* TODO(imax): look for compatible entry instead of hard-coded path */
+ /* TODO: look for compatible entry instead of hard-coded path */
arbitrator = OF_finddevice("/i2c-arbitrator");
if (arbitrator > 0 &&
OF_hasprop(arbitrator, "freebsd,our-gpio") &&
OpenPOWER on IntegriCloud