21 Nov, 2018
1 commit
-
This adds new commands to the EC related to setting and clearing events
as well as controlling power-related settings.Signed-off-by: Simon Glass
09 Oct, 2018
3 commits
-
Allow selection of which EC image to hash.
Signed-off-by: Simon Glass
-
Rather than returning what is effectively an internal data structure,
return the cros EC device itself.Signed-off-by: Simon Glass
-
At present we pass around a private pointer to specify the cros_ec device.
With driver model it makes more sense to pass the device. Update the code
to do this.Signed-off-by: Simon Glass
07 May, 2018
1 commit
-
When U-Boot started using SPDX tags we were among the early adopters and
there weren't a lot of other examples to borrow from. So we picked the
area of the file that usually had a full license text and replaced it
with an appropriate SPDX-License-Identifier: entry. Since then, the
Linux Kernel has adopted SPDX tags and they place it as the very first
line in a file (except where shebangs are used, then it's second line)
and with slightly different comment styles than us.In part due to community overlap, in part due to better tag visibility
and in part for other minor reasons, switch over to that style.This commit changes all instances where we have a single declared
license in the tag as both the before and after are identical in tag
contents. There's also a few places where I found we did not have a tag
and have introduced one.Signed-off-by: Tom Rini
01 Jun, 2017
2 commits
-
Convert this driver to support the live device tree and remove the old
fdtdec support.The keyboard is not yet converted.
Signed-off-by: Simon Glass
-
Some functions deal with structured data rather than simple data types.
It makes sense to have these in their own file. For now this just has a
function to read a flashmap entry. Move the data types also.Signed-off-by: Simon Glass
03 Dec, 2016
1 commit
-
The cros_ec_decode_region() function is only used in combination
with the crosec cmds. Move the function to the correct place.Signed-off-by: Moritz Fischer
Cc: Simon Glass
Cc: Masahiro Yamada
Cc: u-boot@lists.denx.de
Acked-by: Simon Glass
12 Oct, 2016
1 commit
-
Move crosec commands from drivers/misc/cros_ec.c to
cmd/cros_ec.cAcked-by: Simon Glass
Signed-off-by: Moritz Fischer
Cc: Simon Glass
Cc: Heiko Schocher
Cc: Bin Meng
Cc: Miao Yan
Cc: Masahiro Yamada
Cc: Stefan Roese
Cc: Przemyslaw Marczak
Cc: Maxime Ripard
Cc: Nishanth Menon
Cc: u-boot@lists.denx.de
08 Oct, 2016
1 commit
-
Boards where ECs that use a I2C port != 0 specify this in the
devicetree file via the google,remote-bus property.
Previously this was ignored and hardcoded to port 0.Signed-off-by: Moritz Fischer
Cc: Simon Glass
Cc: Heiko Schocher
Cc: u-boot@lists.denx.de
Acked-by: Simon Glass
20 Nov, 2015
1 commit
-
In preparation for converting the cros_ec keyboard driver to driver model,
adjust the cros_ec functions it will use to use a normal struct udevice.Signed-off-by: Simon Glass
06 Aug, 2015
3 commits
-
This is not needed with driver mode. Remove it.
Signed-off-by: Simon Glass
-
Add a driver to support the special LDO access used by spring. This is a
custom method in the cros_ec protocol - it does not use an I2C
pass-through.There are two implementation choices:
1. Write a special LDO driver which can talk across the EC. Duplicate all
the logic from TPS65090 for retrying when the LDO fails to come up.2. Write a special I2C bus driver which pretends to be a TPS65090 and
transfers reads and writes using the LDO message.Either is distasteful. The latter method is chosen since it results in less
code duplication and a fairly simple (30-line) implementation of the core
logic.The crosec 'ldo' subcommand could be removed (since i2c md/mw will work
instead) but is retained as a convenience.Signed-off-by: Simon Glass
-
The Chrome OS EC supports tunnelling through to an I2C bus on the EC. This
currently uses a copy of the I2C command code and a special 'crosec'
sub-command.With driver model we can define an I2C bus which tunnels through to the EC,
and use the normal 'i2c' command to access it. This simplifies the code and
removes some duplication.Add an I2C driver which tunnels through to the EC. Adjust the EC code to
support binding child devices so that it can be set up. Adjust the existing
I2C xfer function to fit driver model better.For now the old code remains to allow things to still work. It will be
removed in a later patch once the new flow is fully enabled.Signed-off-by: Simon Glass
19 Apr, 2015
2 commits
-
Now that driver model handles cros_ec init, we can drop this special code.
Signed-off-by: Simon Glass
-
Since all supported boards enable this option now, we can remove it along
with the old code.Signed-off-by: Simon Glass
30 Jan, 2015
1 commit
-
These functions are going away, so use the new uclass support instead.
Signed-off-by: Simon Glass
23 Oct, 2014
1 commit
-
Add support for driver model if enabled. This involves minimal changes
to the code, mostly just plumbing around the edges.Signed-off-by: Simon Glass
Acked-by: Jagannadha Sutradharudu Teki
18 Mar, 2014
7 commits
-
The Chrome EC has a feature where you can access its I2C buses through a
pass-through arrangement. Add a command to support this, and export the
function for it also.Reviewed-by: Vadim Bendebury
Signed-off-by: Simon Glass -
Add a simple emulation of the Chrome OS EC for sandbox, so that it can
perform various EC tasks such as keyboard handling.Reviewed-by: Vadim Bendebury
Signed-off-by: Simon Glass -
Protocol version 3 will be attempted first; if the EC doesn't support
it, u-boot will fall back to the old protocol version (2).Reviewed-by: Simon Glass
Signed-off-by: Randall Spangler
Signed-off-by: Simon Glass -
Version 1 protocols (without command version) were already no longer
supported in cros_ec.c. This removes some dead code from the
cros_ec_i2c driver.Version 2 protcols (with command version) are now called
protocol_version=2, instead of cmd_version_is_supported=1.A subsequent change will introduce protocol version 3 for SPI.
Reviewed-by: Simon Glass
Signed-off-by: Randall Spangler
Signed-off-by: Simon Glass -
The EC messages have been expanded and some parts have been renamed.
Signed-off-by: Simon Glass
-
In order to talk to the EC properly we need to be able to understand the
layout of its internal flash memory. This permits emulation of the EC
for sandbox, and also software update in a system with a real EC.Signed-off-by: Simon Glass
-
Add a common library for obtaining access to the Chrome OS EC. This is
used by boards which need to talk to the EC.Reviewed-by: Vadim Bendebury
Tested-by: Vadim Bendebury
Signed-off-by: Vadim Bendebury
Signed-off-by: Simon Glass
24 Jul, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini
26 Jun, 2013
1 commit
-
This patch adds the cros_ec driver that implements the protocol for
communicating with Google's ChromeOS embedded controller.Signed-off-by: Bernie Thompson
Signed-off-by: Bill Richardson
Signed-off-by: Che-Liang Chiou
Signed-off-by: Doug Anderson
Signed-off-by: Gabe Black
Signed-off-by: Hung-ying Tyan
Signed-off-by: Louis Yung-Chieh Lo
Signed-off-by: Randall Spangler
Signed-off-by: Sean Paul
Signed-off-by: Simon Glass
Signed-off-by: Vincent Palatin
Acked-by: Simon Glass
Tested-by: Simon Glass