diff options
author | Peng Fan <peng.fan@nxp.com> | 2021-08-07 16:01:09 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2021-08-09 14:46:51 +0200 |
commit | 4b9423e6f2f7904fe9465d0a3706740c07d9390a (patch) | |
tree | 543f483f0a2497922dddf41c15671c921a53f9e1 /drivers/misc | |
parent | e8b68048e1deca93976a2656faf778f877a208b2 (diff) | |
download | u-boot-4b9423e6f2f7904fe9465d0a3706740c07d9390a.zip u-boot-4b9423e6f2f7904fe9465d0a3706740c07d9390a.tar.gz u-boot-4b9423e6f2f7904fe9465d0a3706740c07d9390a.tar.bz2 |
imx8ulp: move struct mu_type to common header
Move struct mu_type to common header to make it reusable by upower and
S400
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/imx8ulp/imx8ulp_mu.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/drivers/misc/imx8ulp/imx8ulp_mu.c b/drivers/misc/imx8ulp/imx8ulp_mu.c index 913ebe7..333ebdf 100644 --- a/drivers/misc/imx8ulp/imx8ulp_mu.c +++ b/drivers/misc/imx8ulp/imx8ulp_mu.c @@ -10,29 +10,12 @@ #include <dm/root.h> #include <dm/device-internal.h> #include <asm/arch/s400_api.h> +#include <asm/arch/imx-regs.h> #include <linux/iopoll.h> #include <misc.h> DECLARE_GLOBAL_DATA_PTR; -struct mu_type { - u32 ver; - u32 par; - u32 cr; - u32 sr; - u32 reserved0[68]; - u32 tcr; - u32 tsr; - u32 rcr; - u32 rsr; - u32 reserved1[52]; - u32 tr[16]; - u32 reserved2[16]; - u32 rr[16]; - u32 reserved4[14]; - u32 mu_attr; -}; - struct imx8ulp_mu { struct mu_type *base; }; |