ramips: fix typo in MT7621 NAND driver
[openwrt/staging/mkresin.git] / target / linux / ramips / patches-4.9 / 0039-mtd-add-mt7621-nand-support.patch
index c43549866ed50c22ad1f067fd3ffb6519a2bcd7a..f5b1d823478d24f2f2416997ec47a628a47c0c1c 100644 (file)
@@ -3379,7 +3379,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
 +      data |= ((0x2<<18) |(0x2<<16));
 +      DRV_WriteReg32(RALINK_SYSCTL_BASE+0x60, data);
 +
-+      hw = &mt7621_nand_hw,
++      hw = &mt7621_nand_hw;
 +      BUG_ON(!hw);
 +      /* Allocate memory for the device structure (and zero it) */
 +      host = kzalloc(sizeof(struct mtk_nand_host), GFP_KERNEL);
@@ -4128,7 +4128,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
  
  static int nand_do_write_oob(struct mtd_info *mtd, loff_t to,
                             struct mtd_oob_ops *ops);
-@@ -233,7 +233,7 @@ static int check_offs_len(struct mtd_inf
+@@ -239,7 +239,7 @@ static int check_offs_len(struct mtd_inf
   *
   * Release chip lock and wake up anyone waiting on the device.
   */
@@ -4137,7 +4137,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
  {
        struct nand_chip *chip = mtd_to_nand(mtd);
  
-@@ -915,7 +915,7 @@ static void panic_nand_get_device(struct
+@@ -921,7 +921,7 @@ static void panic_nand_get_device(struct
   *
   * Get the device and lock it for exclusive access
   */
@@ -4302,7 +4302,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
 +#endif /* __NAND_DEF_H__ */
 --- /dev/null
 +++ b/drivers/mtd/nand/nand_device_list.h
-@@ -0,0 +1,55 @@
+@@ -0,0 +1,56 @@
 +/* Copyright Statement:
 + *
 + * This software/firmware and related documentation ("MediaTek Software") are
@@ -4345,6 +4345,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
 +      {0x20BC, 0x105554, 5, 16, 512, 128, 2048, 64, 0x1123, "EHD013151MA_5", 0},
 +      {0xECBC, 0x005554, 5, 16, 512, 128, 2048, 64, 0x1123, "K524G2GACB_A0", 0},
 +      {0x2CBC, 0x905556, 5, 16, 512, 128, 2048, 64, 0x21044333, "MT29C4G96MAZA", 0},
++      {0x2CDA, 0x909506, 5, 8,  256, 128, 2048, 64, 0x30C77fff, "MT29F2G08ABAE", 0},
 +      {0xADBC, 0x905554, 5, 16, 512, 128, 2048, 64, 0x10801011, "H9DA4GH4JJAMC", 0},
 +    {0x01F1, 0x801D01, 4, 8, 128, 128, 2048, 64, 0x30C77fff, "S34ML01G100TF", 0},
 +    {0x92F1, 0x8095FF, 4, 8, 128, 128, 2048, 64, 0x30C77fff, "F59L1G81A", 0},