mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mtd: nand: denali_dt: enable HW_ECC_FIXUP for Altera SOCFPGA variant
There are various customizable parameters, so several variants for this IP. A generic compatible like "denali,denali-nand-dt" is useless. Moreover, there are multiple things wrong with this string. (Refer to Rob's comment [1]) The "denali,denali-nand-dt" was added by Altera for the SOCFPGA port. Replace it with a more specific string "altr,socfpga-denali-nand". There are no users (in upstream) of the old compatible string. The Denali IP on SOCFPGA incorporates the hardware ECC fixup engine. So, this capability should be associated with the compatible. [1] https://lkml.org/lkml/2016/12/1/450 Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Boris Brezillon <[email protected]>
This commit is contained in:
parent
24715c749b
commit
a56609c4c3
2 changed files with 13 additions and 6 deletions
|
|
@ -33,11 +33,17 @@ struct denali_dt_data {
|
|||
unsigned int caps;
|
||||
};
|
||||
|
||||
static const struct of_device_id denali_nand_dt_ids[] = {
|
||||
{ .compatible = "denali,denali-nand-dt" },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
static const struct denali_dt_data denali_socfpga_data = {
|
||||
.caps = DENALI_CAP_HW_ECC_FIXUP,
|
||||
};
|
||||
|
||||
static const struct of_device_id denali_nand_dt_ids[] = {
|
||||
{
|
||||
.compatible = "altr,socfpga-denali-nand",
|
||||
.data = &denali_socfpga_data,
|
||||
},
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, denali_nand_dt_ids);
|
||||
|
||||
static u64 denali_dma_mask;
|
||||
|
|
|
|||
Loading…
Reference in a new issue