mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 16:53:20 -04:00
soc: fsl: guts: use a macro to encode the DCFG CCSR space
Instead of using a hardcoded value when iomapping the DCFG CCSR space, add a new macro for it. The code will be easier to follow this way, especially when we add support for the DCFG DCSR space as well. Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Link: https://lore.kernel.org/r/20260721231603.67865-3-vladimir.oltean@nxp.com Signed-off-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
This commit is contained in:
committed by
Christophe Leroy (CS GROUP)
parent
d2fb943cba
commit
450e2f6a53
@@ -14,6 +14,8 @@
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/fsl/guts.h>
|
||||
|
||||
#define DCFG_CCSR 0
|
||||
|
||||
struct fsl_soc_die_attr {
|
||||
char *die;
|
||||
u32 svr;
|
||||
@@ -197,7 +199,7 @@ static int __init fsl_guts_init(void)
|
||||
return 0;
|
||||
soc_data = match->data;
|
||||
|
||||
regs = of_iomap(np, 0);
|
||||
regs = of_iomap(np, DCFG_CCSR);
|
||||
if (!regs) {
|
||||
of_node_put(np);
|
||||
return -ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user