public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] arm/mach-imx: Fix macros in mmdc_size.c
@ 2021-07-10 15:52 sbabic
  0 siblings, 0 replies; 3+ messages in thread
From: sbabic @ 2021-07-10 15:52 UTC (permalink / raw)
  To: Kacper Kubkowski, u-boot

> Make macros actually use passed parameter instead of local variables
> that happen
> to be named the same as symbols in macro expansion.
> Signed-off-by: Kacper Kubkowski <kkubkowski@fluence.pl>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [PATCH] arm/mach-imx: Fix macros in mmdc_size.c
@ 2021-07-10 19:35 sbabic
  0 siblings, 0 replies; 3+ messages in thread
From: sbabic @ 2021-07-10 19:35 UTC (permalink / raw)
  To: Kacper Kubkowski, u-boot

> Make macros actually use passed parameter instead of local variables
> that happen
> to be named the same as symbols in macro expansion.
> Signed-off-by: Kacper Kubkowski <kkubkowski@fluence.pl>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [PATCH] arm/mach-imx: Fix macros in mmdc_size.c
@ 2021-05-12 13:25 Kacper Kubkowski
  0 siblings, 0 replies; 3+ messages in thread
From: Kacper Kubkowski @ 2021-05-12 13:25 UTC (permalink / raw)
  To: u-boot

Make macros actually use passed parameter instead of local variables
that happen
to be named the same as symbols in macro expansion.

Signed-off-by: Kacper Kubkowski <kkubkowski@fluence.pl>
---
 arch/arm/mach-imx/mmdc_size.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/arm/mach-imx/mmdc_size.c b/arch/arm/mach-
imx/mmdc_size.c
index 1a094726aa..224cca7678 100644
--- a/arch/arm/mach-imx/mmdc_size.c
+++ b/arch/arm/mach-imx/mmdc_size.c
@@ -24,11 +24,11 @@ struct esd_mmdc_regs {
        u32 misc;
 };
 
-#define ESD_MMDC_CTL_GET_ROW(mdctl)    ((ctl >> 24) & 7)
-#define ESD_MMDC_CTL_GET_COLUMN(mdctl) ((ctl >> 20) & 7)
-#define ESD_MMDC_CTL_GET_WIDTH(mdctl)  ((ctl >> 16) & 3)
-#define ESD_MMDC_CTL_GET_CS1(mdctl)    ((ctl >> 30) & 1)
-#define ESD_MMDC_MISC_GET_BANK(mdmisc) ((misc >> 5) & 1)
+#define ESD_MMDC_CTL_GET_ROW(mdctl)    ((mdctl >> 24) & 7)
+#define ESD_MMDC_CTL_GET_COLUMN(mdctl) ((mdctl >> 20) & 7)
+#define ESD_MMDC_CTL_GET_WIDTH(mdctl)  ((mdctl >> 16) & 3)
+#define ESD_MMDC_CTL_GET_CS1(mdctl)    ((mdctl >> 30) & 1)
+#define ESD_MMDC_MISC_GET_BANK(mdmisc) ((mdmisc >> 5) & 1)
 
 /*
  * imx_ddr_size - return size in bytes of DRAM according MMDC config
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-10 19:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-10 15:52 [PATCH] arm/mach-imx: Fix macros in mmdc_size.c sbabic
  -- strict thread matches above, loose matches on Subject: below --
2021-07-10 19:35 sbabic
2021-05-12 13:25 Kacper Kubkowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox