From: Priyanka Jain Date: Mon, 29 Oct 2018 09:37:36 +0000 (+0000) Subject: drivers/ddr/fsl: Update fsl_ddr_board_options as weak function X-Git-Tag: v2019.04-rc3~14^2~20 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=50dcbd1ff8ba13323a9a5e1bf516504ba35bd56c;p=oweals%2Fu-boot.git drivers/ddr/fsl: Update fsl_ddr_board_options as weak function 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 [PK: Fix checkpatch warnings] Signed-off-by: Prabhakar Kushwaha --- diff --git a/drivers/ddr/fsl/options.c b/drivers/ddr/fsl/options.c index 7639a8b3dd..4573ffa115 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, - dimm_params_t *pdimm, - unsigned int ctrl_num); +void __weak fsl_ddr_board_options(memctl_options_t *popts, + dimm_params_t *pdimm, + unsigned int ctrl_num) +{ + return; +} struct dynamic_odt { unsigned int odt_rd_cfg;