All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] drivers/ddr/fsl: Update fsl_ddr_board_options as weak function
@ 2018-10-29  9:37 Priyanka Jain
  2019-02-20  7:35 ` Prabhakar Kushwaha
  0 siblings, 1 reply; 2+ messages in thread
From: Priyanka Jain @ 2018-10-29  9:37 UTC (permalink / raw)
  To: u-boot

fsl_ddr_board_options is generally defined in board
board's ddr.c, but some boards like lx2160ardb board
does not need this function.
Defining fsl_ddr_board_options as weak function to
resolve compilation errors for such boards.

Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
---
 drivers/ddr/fsl/options.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/ddr/fsl/options.c b/drivers/ddr/fsl/options.c
index 7639a8b..e406d17 100644
--- a/drivers/ddr/fsl/options.c
+++ b/drivers/ddr/fsl/options.c
@@ -22,9 +22,12 @@
  */
 
 /* Board-specific functions defined in each board's ddr.c */
-extern void fsl_ddr_board_options(memctl_options_t *popts,
+void __weak fsl_ddr_board_options(memctl_options_t *popts,
 		dimm_params_t *pdimm,
-		unsigned int ctrl_num);
+		unsigned int ctrl_num)
+{
+	return;
+}
 
 struct dynamic_odt {
 	unsigned int odt_rd_cfg;
-- 
2.7.4

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

end of thread, other threads:[~2019-02-20  7:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-29  9:37 [U-Boot] [PATCH] drivers/ddr/fsl: Update fsl_ddr_board_options as weak function Priyanka Jain
2019-02-20  7:35 ` Prabhakar Kushwaha

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.