memory: aemif: add support for board files
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 20 Apr 2018 17:14:27 +0000 (10:14 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Fri, 20 Apr 2018 17:14:27 +0000 (10:14 -0700)
commit8af70cd2ca508061088d5059ba8a8218aca7ddf1
tree8dc44c76fc576f3d010e519f66a2994da7ebd72a
parentf12cb8e274c33a5402fbdbdf4326211c3358623f
memory: aemif: add support for board files

Currently aemif is supported in two places separately. By the platform
driver in drivers/memory and by a hand crafted driver in mach-davinci.

We want to drop the latter but also keep the legacy mode. Add support
for board files to the aemif driver.

The new structure in platform data currently only contains the chip
select number, since currently existing users don't require anything
else, but it can be extended in the future.

While extending the platform data struct, add kernel docs describing
its members.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/memory/ti-aemif.c
include/linux/platform_data/ti-aemif.h