projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
powerpc/mpc85xx: T104x: Add nand secure boot target
[oweals/u-boot.git]
/
arch
/
powerpc
/
cpu
/
ppc4xx
/
sdram.c
diff --git
a/arch/powerpc/cpu/ppc4xx/sdram.c
b/arch/powerpc/cpu/ppc4xx/sdram.c
index 2d95bc53c2599aaf2d1268e220e21b162bb58dfc..cd63456e700a32e5b532115f719638fba6954089 100644
(file)
--- a/
arch/powerpc/cpu/ppc4xx/sdram.c
+++ b/
arch/powerpc/cpu/ppc4xx/sdram.c
@@
-8,7
+8,7
@@
* (C) Copyright 2002-2004
* Stefan Roese, esd gmbh germany, stefan.roese@esd-electronics.com
*
* (C) Copyright 2002-2004
* Stefan Roese, esd gmbh germany, stefan.roese@esd-electronics.com
*
- * SPDX-License-Identifier: GPL-2.0+
+ * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
*/
#include <common.h>
@@
-33,7
+33,7
@@
sdram_conf_t mb0cf[] = {
sdram_conf_t mb0cf[] = CONFIG_SYS_SDRAM_TABLE;
#endif
sdram_conf_t mb0cf[] = CONFIG_SYS_SDRAM_TABLE;
#endif
-#define N_MB0CF (
sizeof(mb0cf) / sizeof(mb0cf[0]
))
+#define N_MB0CF (
ARRAY_SIZE(mb0cf
))
#ifdef CONFIG_SYS_SDRAM_CASL
static ulong ns2clks(ulong ns)
#ifdef CONFIG_SYS_SDRAM_CASL
static ulong ns2clks(ulong ns)
@@
-266,7
+266,7
@@
sdram_conf_t mb0cf[] = CONFIG_SYS_SDRAM_TABLE;
#define CONFIG_SYS_SDRAM0_CFG0 0x82000000 /* DCEN=1, PMUD=0, 64-bit */
#endif
#define CONFIG_SYS_SDRAM0_CFG0 0x82000000 /* DCEN=1, PMUD=0, 64-bit */
#endif
-#define N_MB0CF (
sizeof(mb0cf) / sizeof(mb0cf[0]
))
+#define N_MB0CF (
ARRAY_SIZE(mb0cf
))
#define NUM_TRIES 64
#define NUM_READS 10
#define NUM_TRIES 64
#define NUM_READS 10