mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 22:51:37 +00:00
cros_ec: Move #ifdef to permit flash region access
Flash region access is not tied to having commands, so adjust the #ifdef to reflect this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
e0dd81e3aa
commit
1c266b9214
1 changed files with 2 additions and 1 deletions
|
@ -932,7 +932,6 @@ int cros_ec_init(const void *blob, struct cros_ec_dev **cros_ecp)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CMD_CROS_EC
|
||||
int cros_ec_decode_region(int argc, char * const argv[])
|
||||
{
|
||||
if (argc > 0) {
|
||||
|
@ -999,6 +998,8 @@ int cros_ec_decode_ec_flash(const void *blob, struct fdt_cros_ec *config)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CMD_CROS_EC
|
||||
|
||||
/**
|
||||
* Perform a flash read or write command
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue