Skip to content

Commit ef0ddab

Browse files
committed
driver:ddram:jedec: fix order of included files
In umctl2_jedec.h, DDR_CLOCK_PERIOD is predefined in dram_helpers.h, but the header file is included after umctl2_jedec.h. The results in CL and CWL configuration errors. Signed-off-by: Li Bin <bin.li@microchip.com>
1 parent e052f18 commit ef0ddab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

driver/publ.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
#include "publ_regs.h"
1313
#include "publ.h"
1414

15+
#include "dram_helpers.h"
1516
#if defined(CONFIG_DDR_SET_BY_TIMING)
1617
#include "umctl2_timing.h"
1718
#else
1819
#include "umctl2_jedec.h"
1920
#endif
20-
#include "dram_helpers.h"
2121

2222
static struct publ_regs *PUBL;
2323

driver/umctl2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
#endif
1414

1515

16+
#include "dram_helpers.h"
1617
#if defined(CONFIG_DDR_SET_BY_TIMING)
1718
#include "umctl2_timing.h"
1819
#else
1920
#include "umctl2_jedec.h"
2021
#endif
2122
#include "umctl2_regs.h"
2223
#include "umctl2.h"
23-
#include "dram_helpers.h"
2424
#ifdef CONFIG_PUBL
2525
#include "publ.h"
2626
#endif

0 commit comments

Comments
 (0)