ddr: imx8m: helper: load ddr firmware according to binman symbols
authorPeng Fan <peng.fan@nxp.com>
Tue, 26 Jul 2022 08:41:21 +0000 (16:41 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 26 Jul 2022 09:29:02 +0000 (11:29 +0200)
commit88b603995abfa5464f1eda9525d0b11507b2947e
treee46e3a78457ad2c0bcccddee5b718d068b097fb8
parent84429e95e6c979aa222f1dbc6fab0fd9f8dd7744
ddr: imx8m: helper: load ddr firmware according to binman symbols

By reading binman symbols, we no need hard coded IMEM_LEN/DMEM_LEN after
we update the binman dtsi to drop 0x8000/0x4000 length for the firmware.

And that could save binary size for many KBs.

Tested-by: Tim Harvey <tharvey@gateworks.com> #imx8m[m,n,p]-venice
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
[Alper: Check BINMAN_SYMS_OK instead]
Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
drivers/ddr/imx/phy/helper.c