diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-11-14 13:44:46 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-11-14 13:56:35 +0100 |
commit | 081e5da7db077e8bfb3313664ea45e60c474994a (patch) | |
tree | e3551160a8cb9b3e73f918372e38002269f70a12 /include/soc | |
parent | 4d824b3235dde8189285f4ec37ffb147a03616c4 (diff) | |
download | barebox-081e5da7db077e8bfb3313664ea45e60c474994a.tar.gz barebox-081e5da7db077e8bfb3313664ea45e60c474994a.tar.xz |
net: fsl-fman: reset device before leaving
edev->halt is implemented, but not called by the core during shutdown.
We have to call it manually during device remove. With this and also
resetting the whole FMan during shutdown the driver now works properly
when started second stage from another barebox.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/soc')
-rw-r--r-- | include/soc/fsl/fsl_fman.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/soc/fsl/fsl_fman.h b/include/soc/fsl/fsl_fman.h index 96d61298ef..fd69fded38 100644 --- a/include/soc/fsl/fsl_fman.h +++ b/include/soc/fsl/fsl_fman.h @@ -348,6 +348,9 @@ struct fm_fpm { /* FPM Flush Control Register */ #define FMFP_FLC_DISP_LIM_NONE 0x00000000 /* no dispatch limitation */ +/* FMan Reset Command Register */ +#define FMFP_RSTC_RFM 0x80000000 /* FMan Soft Reset Command */ + /* FMFP_EE - FPM event and enable register */ #define FMFPEE_DECC 0x80000000 /* double ECC err on FPM ram */ #define FMFPEE_STL 0x40000000 /* stall of task ... */ |