edac: Split EDAC set ctrl to set error_type and error_trigger

Split setting EDAC IBECC ctrl to setting error_type and
error_trigger to make it easier for other platforms.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2021-01-07 17:37:43 +02:00 committed by Anas Nashif
commit 2dc413aa74
5 changed files with 91 additions and 9 deletions

View file

@ -172,7 +172,9 @@ static int cmd_inject_ctrl(const struct shell *shell, size_t argc, char **argv)
shell_fprintf(shell, SHELL_NORMAL, "Set injection control to: 0x%x\n",
value);
edac_inject_ctrl_set(dev, value);
edac_inject_set_error_type(dev, value);
edac_inject_error_trigger(dev);
return 0;
}