]> git.baikalelectronics.ru Git - kernel.git/commit
memory: aemif: allow passing device lookup table as platform data
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 13 Jan 2017 10:00:25 +0000 (11:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 11:42:25 +0000 (12:42 +0100)
commit7900d4ad69d0f9ae83f71d2f6daa61e6545be3b6
treec324a59a8a8cfce5bffb4f6f03e6e1d6b078b9ca
parentcd76d4a602eee946d3213818d074c42a4ce1344a
memory: aemif: allow passing device lookup table as platform data

TI aemif driver creates its own subnodes of the device tree in order
to guarantee that all child devices are probed after the AEMIF timing
parameters are configured.

Some devices (e.g. da850) use struct of_dev_auxdata for clock lookup
but nodes created from within the aemif driver can't access the lookup
table.

Create a platform data structure that holds a pointer to
of_dev_auxdata so that we can use it with of_platform_populate().

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/memory/ti-aemif.c
include/linux/platform_data/ti-aemif.h [new file with mode: 0644]