memory: dfl-emif: Update the dfl emif driver support revision 1
authorDebarati Biswas <debaratix.biswas@intel.com>
Wed, 13 Jul 2022 13:03:55 +0000 (09:03 -0400)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 16 Aug 2022 09:12:04 +0000 (12:12 +0300)
commit8e4787582d92494188c094f0fa7d2f03c73ed509
treec9c3ffe8f6448666a447a30b4d7ac8115737fa69
parent61b3c876c1cbdb1efd1f52a1f348580e6e14efb6
memory: dfl-emif: Update the dfl emif driver support revision 1

The next generation (revision 1) of the DFL EMIF feature device requires
support for more than 4 memory banks. It does not support the selective
clearing of memory banks. A capability register replaces the previous
control register, and contains a bitmask to indicate the presence of each
memory bank. This bitmask aligns with the previous control register
bitmask that served the same purpose. The control and capability
registers are treated like a C Union structure in order to support both
the new and old revisions of the EMIF device.

Signed-off-by: Debarati Biswas <debaratix.biswas@intel.com>
Signed-off-by: Russ Weight <russell.h.weight@intel.com>
Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com>
Reviewed-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220713130355.196115-1-tianfei.zhang@intel.com
drivers/memory/dfl-emif.c