1. 19 May, 2010 2 commits
    • Sudhakar Rajashekhara's avatar
      mtd-nand: davinci: Correct 4-bit error correction · 5a163bce
      Sudhakar Rajashekhara authored
      On TI's DA830/OMAP-L137, DA850/OMAP-L138 and DM365, after
      setting the 4BITECC_ADD_CALC_START bit in the NAND Flash
      control register to 1 and before waiting for the NAND Flash
      status register to be equal to 1, 2 or 3, we have to wait
      till the ECC HW goes to correction state. Without this wait,
      ECC correction calculations will not be proper.
      
      This has been tested on DA830/OMAP-L137, DA850/OMAP-L138,
      DM355 and DM365 EVMs.
      Signed-off-by: default avatarSudhakar Rajashekhara <sudhakar.raj@ti.com>
      Acked-by: default avatarSneha Narnakaje <nsnehaprabha@ti.com>
      Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
      5a163bce
    • Sudhakar Rajashekhara's avatar
      mtdpart: memory accessor interface for MTD layer · bfa5ecda
      Sudhakar Rajashekhara authored
      This patch implements memory accessor interface in the MTD
      layer which enables the kernel to access flash data.
      
      This patch adds two new members to the mtd_partition structure,
      a function handler which will be called during setup of the
      partition and an argument to be passed to this setup function.
      
      Example:
      +static struct mtd_partition spi_flash_partitions[] = {
      +       [0] = {
      +               .name       = "U-Boot",
      +               .offset     = 0,
      +               .size       = SZ_256K,
      +               .mask_flags = MTD_WRITEABLE,
      +       },
      +       [1] = {
      +               .name       = "U-Boot Environment",
      +               .offset     = MTDPART_OFS_NXTBLK,
      +               .size       = SZ_64K,
      +               .mask_flags = MTD_WRITEABLE,
      +       },
      +       [2] = {
      +               .name       = "Linux",
      +               .offset     = MTDPART_OFS_NXTBLK,
      +               .size       = SZ_7M,
      +               .mask_flags = 0,
      +       },
      +       [3] = {
      +               .name       = "MAC Address",
      +               .offset     = MTDPART_OFS_NXTBLK,
      +               .size       = SZ_64K,
      +               .mask_flags = 0,
      +               .setup      = davinci_get_mac_addr,
      +               .context    = (void *)0,
      +       },
      +};
      
      The davinci_get_mac_addr function reads the MAC address from
      offset ZERO of last MTD partition.
      Signed-off-by: default avatarSudhakar Rajashekhara <sudhakar.raj@ti.com>
      Cc: David Brownell <david-b@pacbell.net>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      bfa5ecda
  2. 16 May, 2010 6 commits
  3. 15 May, 2010 17 commits
  4. 14 May, 2010 15 commits