summaryrefslogtreecommitdiff
path: root/board/mscc/luton/Kconfig
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel@collabora.com>2019-01-07 18:13:25 -0300
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2019-01-16 13:56:43 +0100
commit82d5464788d3b7be8bd21d6472a0fa6959afaa2c (patch)
tree7024450c0c826ded79397910355112f6a7cff866 /board/mscc/luton/Kconfig
parent2a4bb3d271e6a21fe1768e97df4fa745e49c859a (diff)
mmc: jz_mmc: Compile-out write support if disabled
Do not build write support, unless it's enabled. In the SPL case, this change will typically remove precious bytes (as write support is most often not needed in SPL). This is important on this platform, where the maximum SPL size is 14 KiB. With gcc v7.3, this change saves 144 bytes producing: size spl/u-boot-spl text data bss dec hex filename 9240 752 712 10704 29d0 spl/u-boot-spl To make the code easier to compile-out and more readable, a pair of read_data/write_data helpers are created. Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Diffstat (limited to 'board/mscc/luton/Kconfig')
0 files changed, 0 insertions, 0 deletions