intel/kunimitsu: Export EC_IN_RW for depthcharge/vboot
Reference CL:294712 BUG=chrome-os-partner:43072,chrome-os-partner:43707 BRANCH=none TEST=build coreboot and boot on Kunimitsu Fab3.1 Change-Id: Ic89f3bcad1f4b4b1dfe39025a51bfcb97ad87158 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Original-Commit-Id: 1c73c1a345bb3ac397f2da2d14b25d688cc00a92 Original-Change-Id: If38fb37c092cbf4aaa339da6a777f2ba80e8cd2a Original-Signed-off-by: Zhuo-hao Lee <zhuo-hao.lee@intel.com> Original-Reviewed-on: https://chromium-review.googlesource.com/295514 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/11437 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
fada85e655
commit
cf1c94d1bf
|
@ -33,16 +33,11 @@
|
||||||
#if ENV_RAMSTAGE
|
#if ENV_RAMSTAGE
|
||||||
#include <boot/coreboot_tables.h>
|
#include <boot/coreboot_tables.h>
|
||||||
|
|
||||||
#define GPIO_COUNT 6
|
|
||||||
|
|
||||||
void fill_lb_gpios(struct lb_gpios *gpios)
|
void fill_lb_gpios(struct lb_gpios *gpios)
|
||||||
{
|
{
|
||||||
struct lb_gpio *gpio;
|
struct lb_gpio *start_gpio = gpios->gpios;
|
||||||
|
struct lb_gpio *gpio = start_gpio;
|
||||||
|
|
||||||
gpios->size = sizeof(*gpios) + (GPIO_COUNT * sizeof(struct lb_gpio));
|
|
||||||
gpios->count = GPIO_COUNT;
|
|
||||||
|
|
||||||
gpio = gpios->gpios;
|
|
||||||
fill_lb_gpio(gpio++, -1, ACTIVE_HIGH, "write protect",
|
fill_lb_gpio(gpio++, -1, ACTIVE_HIGH, "write protect",
|
||||||
get_write_protect_state());
|
get_write_protect_state());
|
||||||
fill_lb_gpio(gpio++, -1, ACTIVE_HIGH, "recovery",
|
fill_lb_gpio(gpio++, -1, ACTIVE_HIGH, "recovery",
|
||||||
|
@ -53,6 +48,11 @@ void fill_lb_gpios(struct lb_gpios *gpios)
|
||||||
get_lid_switch());
|
get_lid_switch());
|
||||||
fill_lb_gpio(gpio++, -1, ACTIVE_HIGH, "power", 0);
|
fill_lb_gpio(gpio++, -1, ACTIVE_HIGH, "power", 0);
|
||||||
fill_lb_gpio(gpio++, -1, ACTIVE_HIGH, "oprom", gfx_get_init_done());
|
fill_lb_gpio(gpio++, -1, ACTIVE_HIGH, "oprom", gfx_get_init_done());
|
||||||
|
fill_lb_gpio(gpio++, GPIO_EC_IN_RW, ACTIVE_HIGH, "EC in RW",
|
||||||
|
gpio_get(GPIO_EC_IN_RW));
|
||||||
|
|
||||||
|
gpios->count = gpio - start_gpio;
|
||||||
|
gpios->size = sizeof(*gpios) + (gpios->count * sizeof(*gpio));
|
||||||
}
|
}
|
||||||
#endif /* ENV_RAMSTAGE */
|
#endif /* ENV_RAMSTAGE */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue