From: Kuo-Jung Su <dantesu@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v6 03/12] nand: add Faraday FTNANDC021 NAND controller support
Date: Thu, 4 Jul 2013 11:40:35 +0800 [thread overview]
Message-ID: <1372909244-25211-4-git-send-email-dantesu@gmail.com> (raw)
In-Reply-To: <1372909244-25211-1-git-send-email-dantesu@gmail.com>
From: Kuo-Jung Su <dantesu@faraday-tech.com>
Faraday FTNANDC021 is a integrated NAND flash controller.
It use a build-in command table to abstract the underlying
NAND flash control logic.
For example:
Issuing a command 0x10 to FTNANDC021 would result in
a page write + a read status operation.
Signed-off-by: Kuo-Jung Su <dantesu@faraday-tech.com>
CC: Albert ARIBAUD <albert.u.boot@aribaud.net>
CC: Scott Wood <scottwood@freescale.com>
---
Changes for v6:
- Update README for CONFIG_SYS_FTNANDC021_TIMING
- Remove illegal type-punning by introducing
put_unaligned() & get_unaligned().
Changes for v5 (Part of A360/A369 patch series):
- Coding Style cleanup:
struct chip_regs __iomem *regs -> struct chip_regs *regs
- For there is a strong dependancy between this and A360/A369 patch
series, it had been chained back to A360/A369 patch series.
- The latest nand_base requires the ecc.strength to be set properlly,
so this patch adds ecc.strength setting accroding to ECC algorithm.
Changes for v5 (Standalone):
- Update README for the description of CONFIG_SYS_FTNANDC021_TIMING.
- Drop redundant white space. (i.e. if (mtd->writesize >= ' '4096))
Changes for v4:
- Make it a separate patch, rather then a part of
Faraday A36x patch series
- Drop the faraday/nand.h to remove dependency to
Faraday A36x patch series.
- CONFIG_SYS_NAND_TIMING -> CONFIG_SYS_FTNANDC021_TIMING
- Remove non-ECC code.
- Implement private hwecc read/write_page functions
to get rid of .eccpos & .eccbytes.
- Use macro constants for timeout control
Changes for v3:
- Coding Style cleanup.
- Drop macros for wirtel()/readl(), call them directly.
- Always insert a blank line between declarations and code.
- Replace all the infinite wait loop with a timeout.
- Add '__iomem' to all the declaration of HW register pointers.
- Re-write this driver with ECC enabled and correct column address
handling for OOB read/write,
- Fix issuses addressed by Scott.
Changes for v2:
- Coding Style cleanup.
- Use readl(), writel(), clrsetbits_le32() to replace REG() macros.
- Use structure based hardware registers to replace the macro constants.
- Replace BIT() with BIT_MASK().
README | 10 +
drivers/mtd/nand/Makefile | 1 +
drivers/mtd/nand/ftnandc021.c | 626 +++++++++++++++++++++++++++++++++++++++++
include/faraday/ftnandc021.h | 153 ++++++++++
4 files changed, 790 insertions(+)
create mode 100644 drivers/mtd/nand/ftnandc021.c
create mode 100644 include/faraday/ftnandc021.h
diff --git a/README b/README
index 85e5a8d..538ba85 100644
--- a/README
+++ b/README
@@ -4036,6 +4036,16 @@ Low Level (hardware related) configuration options:
- drivers/mtd/nand/ndfc.c
- drivers/mtd/nand/mxc_nand.c
+- CONFIG_SYS_FTNANDC021_TIMING
+ This option specifies an array of customized timing parameters
+ for Faraday FTNANDC021 NAND flash controller.
+ e.g.
+ #define CONFIG_SYS_FTNANDC021_TIMING \
+ { CONFIG_NAND_K9F4G08U0B_AC1, CONFIG_NAND_K9F4G08U0B_AC2 }
+ where CONFIG_NAND_K9F4G08U0B_AC[1/2] are the optimized AC
+ timing parameters for register AC_TIMING1 and AC_TIMING2 which
+ control the timing for CLE, ALE, WE and RE signals.
+
- CONFIG_SYS_NDFC_EBC0_CFG
Sets the EBC0_CFG register for the NDFC. If not defined
a default value will be used.
diff --git a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile
index bb81e84..765171a 100644
--- a/drivers/mtd/nand/Makefile
+++ b/drivers/mtd/nand/Makefile
@@ -64,6 +64,7 @@ COBJS-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o
COBJS-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_nand.o
COBJS-$(CONFIG_NAND_FSL_UPM) += fsl_upm.o
COBJS-$(CONFIG_NAND_FSMC) += fsmc_nand.o
+COBJS-$(CONFIG_NAND_FTNANDC021) += ftnandc021.o
COBJS-$(CONFIG_NAND_JZ4740) += jz4740_nand.o
COBJS-$(CONFIG_NAND_KB9202) += kb9202_nand.o
COBJS-$(CONFIG_NAND_KIRKWOOD) += kirkwood_nand.o
diff --git a/drivers/mtd/nand/ftnandc021.c b/drivers/mtd/nand/ftnandc021.c
new file mode 100644
index 0000000..a24eae6
--- /dev/null
+++ b/drivers/mtd/nand/ftnandc021.c
@@ -0,0 +1,626 @@
+/*
+ * Faraday NAND Flash Controller
+ *
+ * (C) Copyright 2013 Faraday Technology
+ * Dante Su <dantesu@faraday-tech.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include <common.h>
+#include <asm/errno.h>
+#include <asm/io.h>
+#include <asm/unaligned.h>
+#include <nand.h>
+#include <malloc.h>
+
+#include <faraday/ftnandc021.h>
+
+#define CFG_CMD_TIMEOUT (CONFIG_SYS_HZ >> 2) /* 250 ms */
+#define CFG_PIO_TIMEOUT (CONFIG_SYS_HZ >> 3) /* 125 ms */
+
+struct ftnandc021_chip {
+ void __iomem *regs;
+ int alen;
+ int pgsz;
+ int bksz;
+
+ int col; /* current column address */
+ int page; /* current row address/page index */
+ int cmd; /* current NAND command code */
+ int cmd_hc; /* current FTNANDC021 command code */
+};
+
+static struct nand_ecclayout ftnandc021_ecclayout[] = {
+ { /* page size = 512 (oob size = 16) */
+ .oobfree = {
+ { 9, 3 },
+ }
+ },
+ { /* page size = 2048 (oob size = 64) */
+ .oobfree = {
+ { 9, 3 },
+ },
+ },
+ { /* page size = 4096 (oob size = 128) */
+ .oobfree = {
+ { 9, 7 },
+ },
+ },
+};
+
+static inline int ftnandc021_ckst(struct ftnandc021_chip *priv)
+{
+ struct ftnandc021_regs *regs = priv->regs;
+ uint32_t st = readl(®s->idr[1]);
+
+ if (st & NAND_STATUS_FAIL)
+ return -EIO;
+
+ if (!(st & NAND_STATUS_READY))
+ return -EBUSY;
+
+ if (!(st & NAND_STATUS_WP))
+ return -EIO;
+
+ return 0;
+}
+
+static inline int ftnandc021_wait(struct ftnandc021_chip *priv)
+{
+ struct ftnandc021_regs *regs = priv->regs;
+ char rc = 'c';
+ ulong ts;
+
+ for (ts = get_timer(0); get_timer(ts) < CFG_CMD_TIMEOUT; ) {
+ if (readl(®s->sr) & SR_ECC) {
+ rc = 'e';
+ break;
+ }
+ if (!(readl(®s->acr) & ACR_START)) {
+ rc = 0;
+ break;
+ }
+ }
+
+ switch (rc) {
+ case 'e':
+ printf("ftnandc021: ecc timeout, cmd_hc=%d\n",
+ priv->cmd_hc);
+ break;
+ case 'c':
+ printf("ftnandc021: cmd timeout, cmd_hc=%d\n",
+ priv->cmd_hc);
+ break;
+ default:
+ break;
+ }
+
+ return rc ? -ETIMEDOUT : 0;
+}
+
+static int ftnandc021_read_page(struct mtd_info *mtd,
+ struct nand_chip *chip, uint8_t *buf, int page)
+{
+ /*
+ * OOB has been read at ftnandc021_cmdfunc(),
+ * so we don't have to handle it right here.
+ */
+ chip->read_buf(mtd, buf, mtd->writesize);
+ return 0;
+}
+
+static void ftnandc021_write_page(struct mtd_info *mtd,
+ struct nand_chip *chip, const uint8_t *buf)
+{
+ /*
+ * OOB has been written at ftnandc021_cmdfunc(),
+ * so we don't have to handle it right here.
+ */
+ chip->write_buf(mtd, buf, mtd->writesize);
+}
+
+static int ftnandc021_read_page_raw(struct mtd_info *mtd,
+ struct nand_chip *chip, uint8_t *buf, int page)
+{
+ printf("ftnandc021: read_page_raw is not supported\n");
+ return -EIO;
+}
+
+static void ftnandc021_write_page_raw(struct mtd_info *mtd,
+ struct nand_chip *chip, const uint8_t *buf)
+{
+ printf("ftnandc021: write_page_raw is not supported\n");
+}
+
+static int ftnandc021_command(struct ftnandc021_chip *priv, uint32_t cmd)
+{
+ struct ftnandc021_regs *regs = priv->regs;
+ int ret = 0;
+
+ priv->cmd_hc = cmd;
+
+ writel(ACR_START | ACR_CMD(cmd), ®s->acr);
+
+ /*
+ * pgread : (We have queued data at the IO port)
+ * pgwrite : (We have queued data at the IO port)
+ * bkerase : nand_wait + nand_ckst
+ * oobwr : nand_wait + nand_ckst
+ * otherwise : nand_wait
+ */
+ switch (cmd) {
+ case FTNANDC021_CMD_RDPG:
+ case FTNANDC021_CMD_WRPG:
+ break;
+ case FTNANDC021_CMD_ERBLK:
+ case FTNANDC021_CMD_WROOB:
+ ret = ftnandc021_wait(priv) || ftnandc021_ckst(priv);
+ break;
+ default:
+ ret = ftnandc021_wait(priv);
+ }
+
+ return ret;
+}
+
+static int ftnandc021_reset(struct nand_chip *chip)
+{
+ struct ftnandc021_chip *priv = chip->priv;
+ struct ftnandc021_regs *regs = priv->regs;
+ uint32_t ts, bk, pg, ac, mask;
+#ifdef CONFIG_SYS_FTNANDC021_TIMING
+ uint32_t timing[] = CONFIG_SYS_FTNANDC021_TIMING;
+
+ writel(timing[0], ®s->atr[0]);
+ writel(timing[1], ®s->atr[1]);
+#endif
+
+ writel(0, ®s->ier);
+ writel(0, ®s->pir);
+ writel(0xff, ®s->bbiwr);
+ writel(0xffffffff, ®s->lsnwr);
+ writel(0xffffffff, ®s->crcwr);
+
+ if (chip->options & NAND_BUSWIDTH_16)
+ writel(FCR_SWCRC | FCR_IGNCRC | FCR_16BIT, ®s->fcr);
+ else
+ writel(FCR_SWCRC | FCR_IGNCRC, ®s->fcr);
+
+ /* chip reset */
+ mask = SRR_CHIP_RESET | SRR_ECC_EN;
+ writel(mask, ®s->srr);
+ mdelay(200);
+ if (readl(®s->srr) & SRR_CHIP_RESET) {
+ printf("ftnandc021: reset failed\n");
+ return -ENXIO;
+ }
+
+ /* sanity check on page size */
+ if (priv->pgsz != 512 && priv->pgsz != 2048 && priv->pgsz != 4096) {
+ printf("ftnandc021: invalid page size=%d\n", priv->pgsz);
+ return -EINVAL;
+ }
+
+ bk = ffs(priv->bksz / priv->pgsz) - 5;
+ pg = (priv->pgsz < 2048) ? 0 : (ffs(priv->pgsz) - 11);
+ ac = priv->alen - 3;
+
+ writel(MCR_ME(0) | MCR_32GB | (bk << 16) | (pg << 8) | (ac << 10),
+ ®s->mcr);
+
+ /* IO mode = PIO */
+ writel(0, ®s->bcr);
+
+ /* ECC mode */
+ chip->ecc.layout = ftnandc021_ecclayout + pg;
+ chip->ecc.size = priv->pgsz;
+ chip->ecc.steps = 1;
+ chip->ecc.read_page = ftnandc021_read_page;
+ chip->ecc.write_page = ftnandc021_write_page;
+ chip->ecc.read_page_raw = ftnandc021_read_page_raw;
+ chip->ecc.write_page_raw = ftnandc021_write_page_raw;
+ chip->ecc.mode = NAND_ECC_HW;
+ if (CFGR_ECC_TYPE(readl(®s->cfgr)) == CFGR_ECC_BCH)
+ chip->ecc.strength = 8;
+ else
+ chip->ecc.strength = 4;
+
+ /* reset the attached flash */
+ if (ftnandc021_command(priv, FTNANDC021_CMD_RESET))
+ return -ENXIO;
+
+ return 0;
+}
+
+/*
+ * Check hardware register for wait status. Returns 1 if device is ready,
+ * 0 if it is still busy.
+ */
+static int ftnandc021_dev_ready(struct mtd_info *mtd)
+{
+ struct nand_chip *chip = mtd->priv;
+ struct ftnandc021_chip *priv = chip->priv;
+ struct ftnandc021_regs *regs = priv->regs;
+ int ret = 1;
+
+ if (ftnandc021_wait(priv))
+ ret = 0;
+ else if (!(readl(®s->sr) & SR_READY))
+ ret = 0;
+
+ return ret;
+}
+
+static int ftnandc021_pio_wait(struct ftnandc021_chip *priv)
+{
+ struct ftnandc021_regs *regs = priv->regs;
+ int ret = -ETIMEDOUT;
+ uint32_t ts;
+
+ for (ts = get_timer(0); get_timer(ts) < CFG_PIO_TIMEOUT; ) {
+ if (!(readl(®s->ior) & IOR_READY))
+ continue;
+ ret = 0;
+ break;
+ }
+
+ if (ret)
+ printf("ftnandc021: pio timeout\n");
+
+ return ret;
+}
+
+static void ftnandc021_read_oob(struct mtd_info *mtd,
+ uint8_t *buf, int len)
+{
+ struct nand_chip *chip = mtd->priv;
+ struct ftnandc021_chip *priv = chip->priv;
+ struct ftnandc021_regs *regs = priv->regs;
+ uint32_t tmp;
+
+ memset(buf, 0xff, len);
+
+ /* bad block */
+ buf[chip->badblockpos] = readl(®s->bbird) & 0xff;
+
+ /* data */
+ tmp = readl(®s->crcrd);
+ buf[8] = (tmp >> 0) & 0xff;
+ buf[9] = (tmp >> 8) & 0xff;
+ if (mtd->writesize >= 4096) {
+ buf[12] = (tmp >> 16) & 0xff;
+ buf[13] = (tmp >> 24) & 0xff;
+ }
+
+ tmp = readl(®s->lsnrd);
+ buf[10] = (tmp >> 0) & 0xff;
+ buf[11] = (tmp >> 8) & 0xff;
+ if (mtd->writesize >= 4096) {
+ buf[14] = (tmp >> 16) & 0xff;
+ buf[15] = (tmp >> 24) & 0xff;
+ }
+}
+
+static void ftnandc021_write_oob(struct mtd_info *mtd,
+ const uint8_t *buf, int len)
+{
+ struct nand_chip *chip = mtd->priv;
+ struct ftnandc021_chip *priv = chip->priv;
+ struct ftnandc021_regs *regs = priv->regs;
+ uint32_t tmp;
+
+ /* bad block */
+ tmp = buf[chip->badblockpos];
+ writel(tmp, ®s->bbiwr);
+
+ /* mark it as 'not blank' */
+ tmp = 'W' | (buf[9] << 8);
+ if (mtd->writesize >= 4096)
+ tmp |= (buf[12] << 16) | (buf[13] << 24);
+ writel(tmp, ®s->crcwr);
+
+ tmp = buf[10] | (buf[11] << 8);
+ if (mtd->writesize >= 4096)
+ tmp |= (buf[14] << 16) | (buf[15] << 24);
+ writel(tmp, ®s->lsnwr);
+}
+
+static uint8_t ftnandc021_read_byte(struct mtd_info *mtd)
+{
+ struct nand_chip *chip = mtd->priv;
+ struct ftnandc021_chip *priv = chip->priv;
+ struct ftnandc021_regs *regs = priv->regs;
+ uint8_t ret = 0xff;
+
+ switch (priv->cmd) {
+ case NAND_CMD_READID:
+ if (priv->col < 8) {
+ uint32_t idx = priv->col >> 2;
+ uint32_t pos = priv->col & 0x3;
+ uint32_t tmp = readl(®s->idr[idx]);
+
+ ret = (uint8_t)(tmp >> (pos << 3));
+ priv->col += 1;
+ }
+ break;
+ case NAND_CMD_STATUS:
+ ret = (uint8_t)(readl(®s->idr[1]) & 0xff);
+ break;
+ default:
+ printf("ftnandc021: unknown cmd=0x%x in read_byte\n",
+ priv->cmd);
+ break;
+ }
+
+ return ret;
+}
+
+static uint16_t ftnandc021_read_word(struct mtd_info *mtd)
+{
+ uint16_t ret = 0xffff;
+ uint8_t *buf = (uint8_t *)&ret;
+
+ /* LSB format */
+ buf[0] = ftnandc021_read_byte(mtd);
+ buf[1] = ftnandc021_read_byte(mtd);
+
+ return ret;
+}
+
+/**
+ * Read data from NAND controller into buffer
+ * @mtd: MTD device structure
+ * @buf: buffer to store date
+ * @len: number of bytes to read
+ */
+static void ftnandc021_read_buf(struct mtd_info *mtd,
+ uint8_t *buf, int len)
+{
+ struct nand_chip *chip = mtd->priv;
+ struct ftnandc021_chip *priv = chip->priv;
+ struct ftnandc021_regs *regs = priv->regs;
+ int off;
+
+ if (priv->col >= mtd->writesize)
+ return;
+
+ if (priv->cmd == NAND_CMD_READOOB)
+ BUG(); /* should never happen */
+
+ /* skip if it's a blank page */
+ if (chip->oob_poi[8] != 'W') {
+ memset(buf, 0xff, len);
+ return;
+ }
+
+ off = 0;
+ while (off < len && priv->col < mtd->writesize) {
+ ftnandc021_pio_wait(priv);
+#ifndef __ARMEB__
+ put_unaligned_le32(readl(®s->dr), buf + off);
+#else
+ put_unaligned_be32(readl(®s->dr), buf + off);
+#endif
+ priv->col += 4;
+ off += 4;
+ }
+
+ ftnandc021_wait(priv);
+}
+
+/**
+ * Write buffer to NAND controller
+ * @mtd: MTD device structure
+ * @buf: data buffer
+ * @len: number of bytes to write
+ */
+static void ftnandc021_write_buf(struct mtd_info *mtd,
+ const uint8_t *buf, int len)
+{
+ struct nand_chip *chip = mtd->priv;
+ struct ftnandc021_chip *priv = chip->priv;
+ struct ftnandc021_regs *regs = priv->regs;
+ uint32_t off, val;
+
+ /*
+ * FTNANDC021 HW design issues:
+ *
+ * 1. OOB data must be set before issuing write command,
+ * so it's too late to do it right here
+ * 2. Only after command issued, the data register
+ * could accept data.
+ */
+ if (priv->col >= mtd->writesize)
+ return;
+
+ for (off = 0; off < len && priv->col < mtd->writesize; ) {
+ ftnandc021_pio_wait(priv);
+#ifndef __ARMEB__
+ val = get_unaligned_le32(buf + off);
+#else
+ val = get_unaligned_be32(buf + off);
+#endif
+ writel(val, ®s->dr);
+ priv->col += 4;
+ off += 4;
+ }
+
+ ftnandc021_wait(priv);
+}
+
+/**
+ * Verify chip data against buffer
+ * @mtd: MTD device structure
+ * @buf: buffer containing the data to compare
+ * @len: number of bytes to compare
+ */
+static int ftnandc021_verify_buf(struct mtd_info *mtd,
+ const uint8_t *buf, int len)
+{
+ int ret = 0;
+ uint8_t *tmp;
+
+ len = min_t(int, len, mtd->writesize);
+ tmp = malloc(mtd->writesize);
+
+ if (!tmp) {
+ printf("ftnandc021: out of memory\n");
+ return -ENOMEM;
+ } else {
+ ftnandc021_read_buf(mtd, tmp, len);
+ if (memcmp(tmp, buf, len))
+ ret = -EINVAL;
+ }
+
+ free(tmp);
+ return ret;
+}
+
+static void ftnandc021_cmdfunc(struct mtd_info *mtd,
+ unsigned cmd, int col, int page)
+{
+ struct nand_chip *chip = mtd->priv;
+ struct ftnandc021_chip *priv = chip->priv;
+ struct ftnandc021_regs *regs = priv->regs;
+
+ priv->cmd = cmd;
+ priv->col = col;
+ priv->page = page;
+
+ switch (cmd) {
+ case NAND_CMD_READID: /* 0x90 */
+ priv->col = 0;
+ if (ftnandc021_command(priv, FTNANDC021_CMD_RDID))
+ printf("ftnandc021: RDID failed.\n");
+ break;
+
+ case NAND_CMD_READOOB: /* 0x50 */
+ priv->col = mtd->writesize;
+ /* fall-through */
+ case NAND_CMD_READ0: /* 0x00 */
+ writel(page, ®s->pir);
+ writel(1, ®s->pcr);
+ /* fetch oob to check if it's a blank page */
+ if (ftnandc021_command(priv, FTNANDC021_CMD_RDOOB)) {
+ printf("ftnandc021: RDOOB failed.\n");
+ break;
+ }
+ ftnandc021_read_oob(mtd, chip->oob_poi, mtd->oobsize);
+ /* skip if we don't need page data */
+ if (priv->col >= mtd->writesize)
+ break;
+ /* skip if it's a blank page */
+ if (chip->oob_poi[8] != 'W') {
+ debug("ftnandc021: skip page %d\n", page);
+ break;
+ }
+ if (ftnandc021_command(priv, FTNANDC021_CMD_RDPG))
+ printf("ftnandc021: RDPG failed.\n");
+ break;
+
+ case NAND_CMD_ERASE1: /* 0x60 */
+ writel(page, ®s->pir);
+ writel(1, ®s->pcr);
+ break;
+
+ case NAND_CMD_ERASE2: /* 0xD0 */
+ if (ftnandc021_command(priv, FTNANDC021_CMD_ERBLK))
+ printf("ftnandc021: ERBLK failed\n");
+ break;
+
+ case NAND_CMD_STATUS: /* 0x70 */
+ if (ftnandc021_command(priv, FTNANDC021_CMD_RDST))
+ printf("ftnandc021: RDST failed\n");
+ break;
+
+ case NAND_CMD_SEQIN: /* 0x80 (Write Stage 1.) */
+ writel(page, ®s->pir);
+ writel(1, ®s->pcr);
+ /* OOB data must be set before issuing command */
+ ftnandc021_write_oob(mtd, chip->oob_poi, mtd->oobsize);
+ priv->cmd_hc = (priv->col >= mtd->writesize)
+ ? FTNANDC021_CMD_WROOB : FTNANDC021_CMD_WRPG;
+ if (ftnandc021_command(priv, priv->cmd_hc))
+ printf("ftnandc021: CMD_HC=%d failed\n", priv->cmd_hc);
+ break;
+
+ case NAND_CMD_PAGEPROG: /* 0x10 (Write Stage 2.) */
+ /* nothing needs to be done */
+ break;
+
+ case NAND_CMD_RESET: /* 0xFF */
+ if (ftnandc021_command(priv, FTNANDC021_CMD_RESET))
+ printf("ftnandc021: RESET failed.\n");
+ break;
+
+ default:
+ printf("ftnandc021: unknown cmd=0x%x\n", cmd);
+ }
+}
+
+/**
+ * hardware specific access to control-lines
+ * @mtd: MTD device structure
+ * @cmd: command to device
+ * @ctrl:
+ * NAND_NCE: bit 0 -> don't care
+ * NAND_CLE: bit 1 -> Command Latch
+ * NAND_ALE: bit 2 -> Address Latch
+ *
+ * NOTE: boards may use different bits for these!!
+ */
+static void ftnandc021_hwcontrol(struct mtd_info *mtd,
+ int cmd, unsigned int ctrl)
+{
+ /* nothing needs to be done */
+}
+
+int ftnandc021_init(struct nand_chip *chip, uint32_t iobase, int alen)
+{
+ struct ftnandc021_chip *priv;
+
+ priv = calloc(1, sizeof(struct ftnandc021_chip));
+ if (!priv)
+ return -ENOMEM;
+
+ priv->regs = (void __iomem *)iobase;
+ priv->pgsz = 1 << chip->page_shift;
+ priv->bksz = 1 << chip->phys_erase_shift;
+ priv->alen = alen;
+
+ chip->priv = priv;
+
+ debug("ftnandc021: pg=%dK, bk=%dK, alen=%d\n",
+ priv->pgsz, priv->bksz, priv->alen);
+
+ /* hardware reset */
+ if (ftnandc021_reset(chip))
+ return -EINVAL;
+
+ /* hwcontrol always must be implemented */
+ chip->cmd_ctrl = ftnandc021_hwcontrol;
+ chip->cmdfunc = ftnandc021_cmdfunc;
+ chip->dev_ready = ftnandc021_dev_ready;
+ chip->chip_delay = 0;
+
+ chip->read_byte = ftnandc021_read_byte;
+ chip->read_word = ftnandc021_read_word;
+ chip->read_buf = ftnandc021_read_buf;
+ chip->write_buf = ftnandc021_write_buf;
+ chip->verify_buf = ftnandc021_verify_buf;
+
+ return 0;
+}
diff --git a/include/faraday/ftnandc021.h b/include/faraday/ftnandc021.h
new file mode 100644
index 0000000..64af806
--- /dev/null
+++ b/include/faraday/ftnandc021.h
@@ -0,0 +1,153 @@
+/*
+ * Faraday NAND Flash Controller
+ *
+ * (C) Copyright 2010 Faraday Technology
+ * Dante Su <dantesu@faraday-tech.com>
+ *
+ * This file is released under the terms of GPL v2 and any later version.
+ * See the file COPYING in the root directory of the source tree for details.
+ */
+
+#ifndef __FTNANDC021_H
+#define __FTNANDC021_H
+
+/* NANDC control registers */
+struct ftnandc021_regs {
+ /* 0x000 ~ 0x0fc */
+ uint32_t ecc_pr[4];/* ECC Parity Register */
+ uint32_t ecc_sr; /* ECC Status Register */
+ uint32_t rsvd0[59];
+
+ /* 0x100 ~ 0x1fc */
+ uint32_t sr; /* Status Register */
+ uint32_t acr; /* Access Control Register */
+ uint32_t fcr; /* Flow Control Register */
+ uint32_t pir; /* Page Index Register */
+ uint32_t mcr; /* Memory Configuration Register */
+ uint32_t atr[2]; /* AC Timing Register */
+ uint32_t rsvd1[1];
+ uint32_t idr[2]; /* Device ID Register */
+ uint32_t ier; /* Interrupt Enable Register */
+ uint32_t iscr; /* Interrupt Status Clear Register */
+ uint32_t rsvd2[4];
+ uint32_t bbiwr; /* Bad Block Info Write */
+ uint32_t lsn; /* LSN Initialize */
+ uint32_t crcwr; /* LSN CRC Write */
+ uint32_t lsnwr; /* LSN Write */
+ uint32_t bbird; /* Bad Block Info Read */
+ uint32_t lsnrd; /* LSN Read */
+ uint32_t crcrd; /* CRC Read */
+ uint32_t rsvd3[41];
+
+ /* 0x200 ~ 0x2fc */
+ uint32_t rsvd4[1];
+ uint32_t icr; /* BMC Interrupt Control Register */
+ uint32_t ior; /* BMC PIO Status Register */
+ uint32_t bcr; /* BMC Burst Control Register */
+ uint32_t rsvd5[60];
+
+ /* 0x300 ~ 0x3fc */
+ uint32_t dr; /* MLC Data Register */
+ uint32_t isr; /* MLC Interrupt Status Register */
+ uint32_t pcr; /* Page Count Register */
+ uint32_t srr; /* MLC Software Reset Register */
+ uint32_t rsvd7[58];
+ uint32_t revr; /* Revision Register */
+ uint32_t cfgr; /* Configuration Register */
+};
+
+/* ECC Status Register */
+#define ECC_SR_CERR (1 << 3) /* correction error */
+#define ECC_SR_ERR (1 << 2) /* ecc error */
+#define ECC_SR_DEC (1 << 1) /* ecc decode finished */
+#define ECC_SR_ENC (1 << 0) /* ecc encode finished */
+
+/* Status Register */
+#define SR_BLANK (1 << 7) /* blanking check failed */
+#define SR_ECC (1 << 6) /* ecc timeout */
+#define SR_STS (1 << 4) /* status error */
+#define SR_CRC (1 << 3) /* crc error */
+#define SR_CMD (1 << 2) /* command finished */
+#define SR_READY (1 << 1) /* chip ready/busy */
+#define SR_ENA (1 << 0) /* chip enabled */
+
+/* Access Control Register */
+#define ACR_CMD(x) (((x) & 0x1f) << 8) /* command code */
+#define ACR_START (1 << 7) /* command start */
+
+/* Flow Control Register */
+#define FCR_SWCRC (1 << 8) /* CRC controlled by Software */
+#define FCR_IGNCRC (1 << 7) /* Bypass/Ignore CRC checking */
+#define FCR_16BIT (1 << 4) /* 16 bit data bus */
+#define FCR_WPROT (1 << 3) /* write protected */
+#define FCR_NOSC (1 << 2) /* bypass status check error */
+#define FCR_MICRON (1 << 1) /* Micron 2-plane command */
+#define FCR_NOBC (1 << 0) /* skip blanking check error */
+
+/* Interrupt Enable Register */
+#define IER_ENA (1 << 7) /* interrupt enabled */
+#define IER_ECC (1 << 3) /* ecc error timeout */
+#define IER_STS (1 << 2) /* status error */
+#define IER_CRC (1 << 1) /* crc error */
+#define IER_CMD (1 << 0) /* command finished */
+
+/* BMC PIO Status Register */
+#define IOR_READY (1 << 0) /* PIO ready */
+
+/* MLC Software Reset Register */
+#define SRR_ECC_EN (1 << 8) /* ECC enabled */
+#define SRR_NANDC_RESET (1 << 2) /* NANDC reset */
+#define SRR_BMC_RESET (1 << 1) /* BMC reset */
+#define SRR_ECC_RESET (1 << 0) /* ECC reset */
+#define SRR_CHIP_RESET (SRR_NANDC_RESET | SRR_BMC_RESET | SRR_ECC_RESET)
+
+/* Memory Configuration Register */
+#define MCR_BS16P (0 << 16) /* page count per block */
+#define MCR_BS32P (1 << 16)
+#define MCR_BS64P (2 << 16)
+#define MCR_BS128P (3 << 16)
+#define MCR_1PLANE (0 << 14) /* memory architecture */
+#define MCR_2PLANE (1 << 14)
+#define MCR_SERIAL (0 << 12) /* interleaving: off, 2 flash, 4 flash */
+#define MCR_IL2 (1 << 12)
+#define MCR_IL4 (2 << 12)
+#define MCR_ALEN3 (0 << 10) /* address length */
+#define MCR_ALEN4 (1 << 10)
+#define MCR_ALEN5 (2 << 10)
+#define MCR_PS512 (0 << 8) /* size per page (bytes) */
+#define MCR_PS2048 (1 << 8)
+#define MCR_PS4096 (2 << 8)
+#define MCR_16MB (0 << 4) /* flash size */
+#define MCR_32MB (1 << 4)
+#define MCR_64MB (2 << 4)
+#define MCR_128MB (3 << 4)
+#define MCR_256MB (4 << 4)
+#define MCR_512MB (5 << 4)
+#define MCR_1GB (6 << 4)
+#define MCR_2GB (7 << 4)
+#define MCR_4GB (8 << 4)
+#define MCR_8GB (9 << 4)
+#define MCR_16GB (10 << 4)
+#define MCR_32GB (11 << 4)
+#define MCR_ME(n) (1 << (n)) /* module enable, 0 <= n <= 3 */
+
+/* Configuration Register */
+#define CFGR_ECC_TYPE(x) (((x) >> 16) & 0xf)
+#define CFGR_ECC_RS 4
+#define CFGR_ECC_BCH 8
+#define CFGR_IOBITS(x) (((x) >> 8) & 0xff) /* Max. data width */
+#define CFGR_MAXFLS(x) ((x) & 0xf) /* Max. flash chips */
+
+/* FTNANDC021 built-in command set */
+#define FTNANDC021_CMD_RDID 0x01 /* read id */
+#define FTNANDC021_CMD_RESET 0x02 /* reset flash */
+#define FTNANDC021_CMD_RDST 0x04 /* read status */
+#define FTNANDC021_CMD_RDPG 0x05 /* read page (data + oob) */
+#define FTNANDC021_CMD_RDOOB 0x06 /* read oob */
+#define FTNANDC021_CMD_WRPG 0x10 /* write page (data + oob) */
+#define FTNANDC021_CMD_ERBLK 0x11 /* erase block */
+#define FTNANDC021_CMD_WROOB 0x13 /* write oob */
+
+int ftnandc021_init(struct nand_chip *chip, uint32_t iobase, int alen);
+
+#endif /* EOF */
--
1.7.9.5
next prev parent reply other threads:[~2013-07-04 3:40 UTC|newest]
Thread overview: 311+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-29 7:06 [U-Boot] [PATCH 00/11] arm: add Faraday A36x SoC platform support Kuo-Jung Su
2013-03-29 7:06 ` [U-Boot] [PATCH 01/11] arm: add MMU/d-cache support for Faraday cores Kuo-Jung Su
2013-04-18 9:25 ` [U-Boot] [PATCH v2 00/12] arm: add Faraday A36x SoC platform support Kuo-Jung Su
2013-04-18 9:25 ` [U-Boot] [PATCH v2 01/12] mtd: spi: winbond: add W25PXX support Kuo-Jung Su
2013-04-26 8:02 ` [U-Boot] [PATCH v3 00/11] arm: add Faraday A36x SoC platform support Kuo-Jung Su
2013-04-26 8:02 ` [U-Boot] [PATCH v3 01/11] arm: add MMU/D-Cache support for Faraday cores Kuo-Jung Su
2013-05-07 6:25 ` [U-Boot] [PATCH v4 0/7] arm: add Faraday A36x SoC platform support Kuo-Jung Su
2013-05-07 6:25 ` [U-Boot] [PATCH v4 1/7] arm: add MMU/D-Cache support for Faraday cores Kuo-Jung Su
2013-06-10 17:59 ` Albert ARIBAUD
2013-06-11 3:09 ` Kuo-Jung Su
2013-06-11 15:28 ` Albert ARIBAUD
2013-06-14 5:44 ` Kuo-Jung Su
2013-05-07 6:25 ` [U-Boot] [PATCH v4 2/7] arm: add Faraday common utilities Kuo-Jung Su
2013-06-10 18:05 ` Albert ARIBAUD
2013-06-11 3:02 ` Kuo-Jung Su
2013-05-07 6:25 ` [U-Boot] [PATCH v4 3/7] arm: add Faraday interrupt controller support Kuo-Jung Su
2013-05-07 6:25 ` [U-Boot] [PATCH v4 4/7] arm: add Faraday FTTMR010 timer support Kuo-Jung Su
2013-05-07 6:25 ` [U-Boot] [PATCH v4 5/7] arm: add Faraday FTPWMTMR010 " Kuo-Jung Su
2013-05-07 6:25 ` [U-Boot] [PATCH v4 6/7] arm: add Faraday firmware image utility Kuo-Jung Su
2013-06-10 18:38 ` Albert ARIBAUD
2013-06-11 3:00 ` Kuo-Jung Su
2013-05-07 6:25 ` [U-Boot] [PATCH v4 7/7] arm: add Faraday A36x SoC platform support Kuo-Jung Su
2013-06-10 18:39 ` Albert ARIBAUD
2013-06-11 3:01 ` Kuo-Jung Su
2013-04-26 8:02 ` [U-Boot] [PATCH v3 02/11] net: ftgmac100: add MMU/D-cache support Kuo-Jung Su
2013-05-07 6:33 ` [U-Boot] [PATCH v4] net: update FTGMAC100 for " Kuo-Jung Su
2013-07-08 16:21 ` Joe Hershberger
2013-04-26 8:02 ` [U-Boot] [PATCH v3 03/11] net: add Faraday FTMAC110 10/100Mbps ethernet support Kuo-Jung Su
2013-05-02 16:03 ` Tom Rini
2013-05-03 6:01 ` Kuo-Jung Su
2013-05-07 6:33 ` [U-Boot] [PATCH v4] " Kuo-Jung Su
2013-07-08 16:19 ` Joe Hershberger
2013-04-26 8:02 ` [U-Boot] [PATCH v3 04/11] i2c: add Faraday FTI2C010 I2C controller support Kuo-Jung Su
2013-04-29 3:34 ` Heiko Schocher
2013-05-07 6:32 ` [U-Boot] [PATCH v4 03/16] " Kuo-Jung Su
2013-05-07 13:19 ` Heiko Schocher
2013-05-08 1:51 ` Kuo-Jung Su
2013-05-08 4:30 ` Heiko Schocher
2013-05-08 5:47 ` Kuo-Jung Su
2013-05-08 7:36 ` [U-Boot] [PATCH v5] " Kuo-Jung Su
2013-04-26 8:02 ` [U-Boot] [PATCH v3 05/11] spi: add Faraday FTSPI010 SPI " Kuo-Jung Su
2013-05-07 6:34 ` [U-Boot] [PATCH v4] " Kuo-Jung Su
2013-06-12 18:56 ` [U-Boot] [U-Boot, " Jagan Teki
2013-06-14 6:00 ` Kuo-Jung Su
2013-11-22 7:44 ` [U-Boot] [PATCH v5] spi: ftssp010_spi: add Faraday " Kuo-Jung Su
2013-11-28 2:46 ` [U-Boot] [PATCH v6] " Kuo-Jung Su
2013-04-26 8:02 ` [U-Boot] [PATCH v3 06/11] mmc: update the Faraday FTSDC010 driver to fix performance issue Kuo-Jung Su
2013-05-03 22:35 ` Andy Fleming
2013-05-06 6:44 ` Kuo-Jung Su
2013-05-07 6:32 ` [U-Boot] [PATCH v4] mmc: update Faraday FTSDC010 for rw performance Kuo-Jung Su
2013-04-26 8:02 ` [U-Boot] [PATCH v3 07/11] mtd: nand: add Faraday FTNANDC021 NAND controller support Kuo-Jung Su
2013-04-26 23:41 ` Scott Wood
2013-04-29 3:28 ` Kuo-Jung Su
2013-04-29 20:46 ` Scott Wood
2013-04-30 1:33 ` Kuo-Jung Su
2013-05-07 6:33 ` [U-Boot] [PATCH v4] " Kuo-Jung Su
2013-05-09 0:43 ` Scott Wood
2013-05-09 1:45 ` Kuo-Jung Su
2013-05-09 1:51 ` [U-Boot] [PATCH v5] " Kuo-Jung Su
2013-04-26 8:02 ` [U-Boot] [PATCH v3 08/11] usb: ehci: add Faraday USB 2.0 EHCI support Kuo-Jung Su
2013-04-26 12:19 ` Marek Vasut
2013-04-29 3:10 ` Kuo-Jung Su
2013-04-29 22:50 ` Marek Vasut
2013-04-30 1:32 ` Kuo-Jung Su
2013-05-01 19:34 ` Marek Vasut
2013-05-02 1:14 ` Kuo-Jung Su
2013-05-07 6:26 ` [U-Boot] [PATCH v4 0/2] usb: ehci: add Faraday USB EHCI&Gadget support Kuo-Jung Su
2013-05-07 6:26 ` [U-Boot] [PATCH v4 1/2] usb: ehci: add Faraday USB 2.0 EHCI support Kuo-Jung Su
2013-05-07 21:42 ` Marek Vasut
2013-05-08 2:18 ` Kuo-Jung Su
2013-05-08 3:09 ` Marek Vasut
2013-05-08 5:41 ` Kuo-Jung Su
2013-05-08 11:52 ` Marek Vasut
2013-05-09 1:51 ` Kuo-Jung Su
2013-05-09 3:20 ` [U-Boot] [PATCH v5 0/4] usb: add Faraday EHCI & Gadget support Kuo-Jung Su
2013-05-09 3:20 ` [U-Boot] [PATCH v5 1/4] usb: hub: make minimum power-on delay configurable Kuo-Jung Su
2013-05-10 11:41 ` Marek Vasut
2013-05-13 1:11 ` Kuo-Jung Su
2013-05-13 2:07 ` [U-Boot] [PATCH v6 0/4] usb: add Faraday EHCI & Gadget support Kuo-Jung Su
2013-05-13 2:07 ` [U-Boot] [PATCH v6 1/4] usb: hub: make minimum power-on delay configurable Kuo-Jung Su
2013-05-13 2:36 ` Marek Vasut
2013-05-13 8:12 ` Kuo-Jung Su
2013-05-13 8:28 ` [U-Boot] [PATCH v7 0/4] usb: add Faraday EHCI & Gadget support Kuo-Jung Su
2013-05-13 8:28 ` [U-Boot] [PATCH v7 1/4] usb: hub: make minimum power-on delay configurable Kuo-Jung Su
2013-05-14 2:29 ` [U-Boot] [PATCH v8 0/4] usb: add Faraday EHCI & Gadget support Kuo-Jung Su
2013-05-14 2:29 ` [U-Boot] [PATCH v8 1/4] usb: hub: make minimum power-on delay configurable Kuo-Jung Su
2013-05-15 7:29 ` [U-Boot] [PATCH v9 0/5] usb: add Faraday EHCI & Gadget support Kuo-Jung Su
2013-05-15 7:29 ` [U-Boot] [PATCH v9 1/5] usb: ehci: prevent bad PORTSC register access Kuo-Jung Su
2013-05-21 20:09 ` Marek Vasut
2013-05-15 7:29 ` [U-Boot] [PATCH v9 2/5] usb: ehci: add weak-aliased function for PORTSC Kuo-Jung Su
2013-05-15 7:29 ` [U-Boot] [PATCH v9 3/5] usb: hub: make minimum power-on delay configurable Kuo-Jung Su
2013-05-15 7:29 ` [U-Boot] [PATCH v9 4/5] usb: ehci: add Faraday USB 2.0 EHCI support Kuo-Jung Su
2013-05-15 7:29 ` [U-Boot] [PATCH v9 5/5] usb: gadget: add Faraday FOTG210 USB gadget support Kuo-Jung Su
2013-05-19 18:37 ` Marek Vasut
2013-05-20 0:56 ` Kuo-Jung Su
2013-05-14 2:29 ` [U-Boot] [PATCH v8 2/4] usb: ehci: add weak-aliased function for PORTSC Kuo-Jung Su
2013-05-14 2:29 ` [U-Boot] [PATCH v8 3/4] usb: ehci: add Faraday USB 2.0 EHCI support Kuo-Jung Su
2013-05-14 2:29 ` [U-Boot] [PATCH v8 4/4] usb: gadget: add Faraday FOTG210 USB gadget support Kuo-Jung Su
2013-05-13 8:28 ` [U-Boot] [PATCH v7 2/4] usb: ehci: add weak-aliased function for PORTSC Kuo-Jung Su
2013-05-13 8:28 ` [U-Boot] [PATCH v7 3/4] usb: ehci: add Faraday USB 2.0 EHCI support Kuo-Jung Su
2013-05-13 8:28 ` [U-Boot] [PATCH v7 4/4] usb: gadget: add Faraday FOTG210 USB gadget support Kuo-Jung Su
2013-05-13 2:07 ` [U-Boot] [PATCH v6 2/4] usb: ehci: add weak-aliased functions to portsc & tdi Kuo-Jung Su
2013-05-13 2:32 ` Marek Vasut
2013-05-13 8:09 ` Kuo-Jung Su
2013-05-13 15:10 ` Marek Vasut
2013-05-14 1:26 ` Kuo-Jung Su
2013-05-14 13:47 ` Marek Vasut
2013-05-15 1:03 ` Kuo-Jung Su
2013-05-15 2:42 ` Kuo-Jung Su
2013-05-15 3:29 ` Marek Vasut
2013-05-15 4:07 ` Kuo-Jung Su
2013-05-13 2:07 ` [U-Boot] [PATCH v6 3/4] usb: ehci: add Faraday USB 2.0 EHCI support Kuo-Jung Su
2013-05-13 2:07 ` [U-Boot] [PATCH v6 4/4] usb: gadget: add Faraday FOTG210 USB gadget support Kuo-Jung Su
2013-05-09 3:20 ` [U-Boot] [PATCH v5 2/4] usb: ehci: add weak-aliased functions to portsc & tdi Kuo-Jung Su
2013-05-10 11:44 ` Marek Vasut
2013-05-13 1:10 ` Kuo-Jung Su
2013-05-09 3:20 ` [U-Boot] [PATCH v5 3/4] usb: ehci: add Faraday USB 2.0 EHCI support Kuo-Jung Su
2013-05-09 3:20 ` [U-Boot] [PATCH v5 4/4] usb: gadget: add Faraday FOTG210 USB gadget support Kuo-Jung Su
2013-05-07 6:26 ` [U-Boot] [PATCH v4 2/2] " Kuo-Jung Su
2013-05-07 21:37 ` Marek Vasut
2013-05-08 2:30 ` Kuo-Jung Su
2013-05-08 3:07 ` Marek Vasut
2013-04-26 8:02 ` [U-Boot] [PATCH v3 09/11] " Kuo-Jung Su
2013-04-26 12:21 ` Marek Vasut
2013-04-29 3:11 ` Kuo-Jung Su
2013-04-26 8:02 ` [U-Boot] [PATCH v3 10/11] video: add Faraday FTLCDC200 LCD controller support Kuo-Jung Su
2013-05-06 20:18 ` Anatolij Gustschin
2013-05-07 6:34 ` [U-Boot] [PATCH v2] " Kuo-Jung Su
2013-04-26 8:02 ` [U-Boot] [PATCH v3 11/11] arm: add Faraday A36x SoC platform support Kuo-Jung Su
2013-05-02 22:27 ` [U-Boot] [PATCH v3 00/11] " Tom Rini
2013-05-03 6:02 ` Kuo-Jung Su
2013-04-18 9:25 ` [U-Boot] [PATCH v2 02/12] net: ftgmac100: add MMU/D-cache support Kuo-Jung Su
2013-04-18 9:25 ` [U-Boot] [PATCH v2 03/12] net: add Faraday FTMAC110 10/100Mbps ethernet support Kuo-Jung Su
2013-04-18 10:52 ` Wolfgang Denk
2013-04-22 2:56 ` Kuo-Jung Su
2013-04-18 9:25 ` [U-Boot] [PATCH v2 04/12] i2c: add Faraday FTI2C010 I2C controller support Kuo-Jung Su
2013-04-18 10:54 ` Wolfgang Denk
2013-04-22 2:52 ` Kuo-Jung Su
2013-04-18 9:25 ` [U-Boot] [PATCH v2 05/12] spi: add Faraday FTSPI010 SPI " Kuo-Jung Su
2013-04-18 10:56 ` Wolfgang Denk
2013-04-22 2:52 ` Kuo-Jung Su
2013-08-08 13:38 ` Jagan Teki
2013-08-09 0:47 ` Kuo-Jung Su
2013-08-09 11:27 ` Jagan Teki
2013-08-12 0:37 ` Kuo-Jung Su
2013-10-03 19:53 ` Jagan Teki
2013-04-18 9:25 ` [U-Boot] [PATCH v2 06/12] mmc: add an alternative driver to Faraday FTSDC010 Kuo-Jung Su
2013-04-18 10:57 ` Wolfgang Denk
2013-04-22 2:51 ` Kuo-Jung Su
2013-04-18 9:25 ` [U-Boot] [PATCH v2 07/12] mtd: nand: add Faraday FTNANDC021 NAND controller support Kuo-Jung Su
2013-04-18 11:04 ` Wolfgang Denk
2013-04-22 1:52 ` Kuo-Jung Su
2013-04-18 19:44 ` Scott Wood
2013-04-22 2:45 ` Kuo-Jung Su
2013-04-22 23:11 ` Scott Wood
2013-04-23 1:19 ` Kuo-Jung Su
2013-04-23 22:57 ` Scott Wood
2013-04-24 1:03 ` Kuo-Jung Su
2013-04-23 1:22 ` Kuo-Jung Su
2013-04-18 9:25 ` [U-Boot] [PATCH v2 08/12] mtd: spi: add FTSPI020 SPI Flash " Kuo-Jung Su
2013-04-18 11:08 ` Wolfgang Denk
2013-04-22 1:51 ` Kuo-Jung Su
2013-04-18 9:25 ` [U-Boot] [PATCH v2 09/12] usb: ehci: add Faraday USB 2.0 EHCI support Kuo-Jung Su
2013-04-18 11:09 ` Wolfgang Denk
2013-04-22 1:45 ` Kuo-Jung Su
2013-04-18 9:25 ` [U-Boot] [PATCH v2 10/12] usb: gadget: add Faraday FOTG210 USB gadget support Kuo-Jung Su
2013-04-18 11:11 ` Wolfgang Denk
2013-04-22 1:45 ` Kuo-Jung Su
2013-04-18 9:25 ` [U-Boot] [PATCH v2 11/12] arm: add MMU/d-cache support for Faraday cores Kuo-Jung Su
2013-04-18 11:13 ` Wolfgang Denk
2013-04-22 1:23 ` Kuo-Jung Su
2013-04-18 19:09 ` Albert ARIBAUD
2013-04-22 1:27 ` Kuo-Jung Su
2013-04-18 9:25 ` [U-Boot] [PATCH v2 12/12] arm: add Faraday A36x SoC platform support Kuo-Jung Su
2013-04-18 11:16 ` Wolfgang Denk
2013-04-22 1:30 ` Kuo-Jung Su
2013-04-18 10:43 ` [U-Boot] [PATCH v2 00/12] " Wolfgang Denk
2013-04-22 1:27 ` Kuo-Jung Su
2013-03-29 7:06 ` [U-Boot] [PATCH 02/11] net/ftgmac100: add MMU/D-cache support Kuo-Jung Su
2013-03-29 7:06 ` [U-Boot] [PATCH 03/11] net: add FTMAC110 10/100Mbps ethernet support Kuo-Jung Su
2013-03-29 7:06 ` [U-Boot] [PATCH 04/11] usb-ehci: add Faraday USB 2.0 EHCI controller support Kuo-Jung Su
2013-03-30 6:29 ` Marek Vasut
2013-04-01 1:21 ` Kuo-Jung Su
2013-03-29 7:06 ` [U-Boot] [PATCH 05/11] usb-gadget: add FOTG210 USB gadget support Kuo-Jung Su
2013-03-30 6:27 ` Marek Vasut
2013-04-01 1:20 ` Kuo-Jung Su
2013-03-29 7:06 ` [U-Boot] [PATCH 06/11] i2c: add FTI2C010 I2C controller support Kuo-Jung Su
2013-03-29 7:06 ` [U-Boot] [PATCH 07/11] spi: add FTSPI010 SPI " Kuo-Jung Su
2013-03-29 7:06 ` [U-Boot] [PATCH 08/11] mtd/nand: add FTNANDC021 NAND flash " Kuo-Jung Su
2013-03-29 7:06 ` [U-Boot] [PATCH 09/11] mtd/spi: add FTSPI020 SPI Flash " Kuo-Jung Su
2013-03-29 7:06 ` [U-Boot] [PATCH 10/11] mmc: add an alternative FTSDC010 driver support Kuo-Jung Su
2013-03-29 7:06 ` [U-Boot] [PATCH 11/11] arm: add Faraday A36x SoC platform support Kuo-Jung Su
2013-06-17 12:06 ` [U-Boot] [PATCH v5 00/14] " Kuo-Jung Su
2013-06-17 12:06 ` [U-Boot] [PATCH v5 01/14] arm: dma_alloc_coherent: malloc() -> memalign() Kuo-Jung Su
2013-06-17 12:06 ` [U-Boot] [PATCH v5 02/14] net: ftgmac100: add MMU/D-cache support Kuo-Jung Su
2013-06-23 7:16 ` Albert ARIBAUD
2013-06-24 1:31 ` Kuo-Jung Su
2013-06-17 12:06 ` [U-Boot] [PATCH v5 03/14] net: add Faraday FTMAC110 10/100Mbps ethernet support Kuo-Jung Su
2013-06-23 7:18 ` Albert ARIBAUD
2013-06-23 11:09 ` Tom Rini
2013-06-23 13:18 ` Albert ARIBAUD
2013-06-23 15:17 ` Tom Rini
2013-06-17 12:06 ` [U-Boot] [PATCH v5 04/14] video: add Faraday FTLCDC200 LCD controller support Kuo-Jung Su
2013-06-17 12:06 ` [U-Boot] [PATCH v5 05/14] nand: add Faraday FTNANDC021 NAND " Kuo-Jung Su
2013-06-18 0:08 ` Scott Wood
2013-06-18 0:51 ` Kuo-Jung Su
2013-06-18 0:56 ` Scott Wood
2013-06-17 12:06 ` [U-Boot] [PATCH v5 06/14] cfi_flash: use buffer length in unmap_physmem() Kuo-Jung Su
2013-06-17 12:06 ` [U-Boot] [PATCH v5 07/14] arm: add MMU/D-Cache support for Faraday cores Kuo-Jung Su
2013-06-17 12:06 ` [U-Boot] [PATCH v5 08/14] arm: add Faraday processor core support Kuo-Jung Su
2013-06-17 12:06 ` [U-Boot] [PATCH v5 09/14] arm: add Faraday FTINTC020 interrupt controller support Kuo-Jung Su
2013-06-17 12:07 ` [U-Boot] [PATCH v5 10/14] arm: add Faraday FTTMR010 timer support Kuo-Jung Su
2013-06-17 12:07 ` [U-Boot] [PATCH v5 11/14] arm: add Faraday FTPWMTMR010 " Kuo-Jung Su
2013-06-17 12:07 ` [U-Boot] [PATCH v5 12/14] arm: add Faraday specific boot command Kuo-Jung Su
2013-06-23 7:22 ` Albert ARIBAUD
2013-06-24 1:30 ` Kuo-Jung Su
2013-06-17 12:07 ` [U-Boot] [PATCH v5 13/14] mmc: ftsdc010_mci: clk_get_rate() -> clock_get_rate() Kuo-Jung Su
2013-06-17 18:32 ` Andy Fleming
2013-06-18 0:48 ` Kuo-Jung Su
2013-06-17 12:07 ` [U-Boot] [PATCH v5 14/14] arm: add Faraday A360/A369 SoC platform support Kuo-Jung Su
2013-07-04 3:40 ` [U-Boot] [PATCH v6 00/12] arm: add Faraday A36x " Kuo-Jung Su
2013-07-04 3:40 ` [U-Boot] [PATCH v6 01/12] arm: dma_alloc_coherent: malloc() -> memalign() Kuo-Jung Su
2013-07-04 3:40 ` [U-Boot] [PATCH v6 02/12] video: add Faraday FTLCDC200 LCD controller support Kuo-Jung Su
2013-07-04 3:40 ` Kuo-Jung Su [this message]
2013-07-08 23:59 ` [U-Boot] [PATCH v6 03/12] nand: add Faraday FTNANDC021 NAND " Scott Wood
2013-07-09 1:42 ` Kuo-Jung Su
2013-07-09 1:48 ` Scott Wood
2013-07-09 1:57 ` Kuo-Jung Su
2013-07-04 3:40 ` [U-Boot] [PATCH v6 04/12] cfi_flash: use buffer length in unmap_physmem() Kuo-Jung Su
2013-07-25 14:46 ` Stefan Roese
2013-07-04 3:40 ` [U-Boot] [PATCH v6 05/12] arm: add MMU/D-Cache support for Faraday cores Kuo-Jung Su
2013-07-04 3:40 ` [U-Boot] [PATCH v6 06/12] arm: add Faraday processor core support Kuo-Jung Su
2013-07-04 3:40 ` [U-Boot] [PATCH v6 07/12] arm: add Faraday FTINTC020 interrupt controller support Kuo-Jung Su
2013-07-04 3:40 ` [U-Boot] [PATCH v6 08/12] arm: add Faraday FTTMR010 timer support Kuo-Jung Su
2013-07-04 3:40 ` [U-Boot] [PATCH v6 09/12] arm: add Faraday FTPWMTMR010 " Kuo-Jung Su
2013-07-04 3:40 ` [U-Boot] [PATCH v6 10/12] arm: add customized boot command for Faraday Images Kuo-Jung Su
2013-07-04 3:40 ` [U-Boot] [PATCH v6 11/12] mmc: ftsdc010_mci: clk_get_rate() -> clock_get_rate() Kuo-Jung Su
2013-07-04 3:40 ` [U-Boot] [PATCH v6 12/12] arm: add Faraday A360/A369 SoC platform support Kuo-Jung Su
2013-07-25 9:07 ` [U-Boot] [PATCH v6 00/12] arm: add Faraday A36x " Albert ARIBAUD
2013-07-26 14:15 ` Kuo-Jung Su
2013-07-29 5:51 ` [U-Boot] [PATCH v7 00/11] " Kuo-Jung Su
2013-07-29 5:51 ` [U-Boot] [PATCH v7 01/11] arm: dma_alloc_coherent: malloc() -> memalign() Kuo-Jung Su
2013-09-14 10:09 ` Albert ARIBAUD
2013-07-29 5:51 ` [U-Boot] [PATCH v7 02/11] video: add Faraday FTLCDC200 LCD controller support Kuo-Jung Su
2013-08-09 19:33 ` Anatolij Gustschin
2013-07-29 5:51 ` [U-Boot] [PATCH v7 03/11] nand: add Faraday FTNANDC021 NAND " Kuo-Jung Su
2013-07-29 22:59 ` Scott Wood
2013-07-30 0:39 ` Kuo-Jung Su
2013-07-29 5:51 ` [U-Boot] [PATCH v7 04/11] arm: add MMU/D-Cache support for Faraday cores Kuo-Jung Su
2013-07-29 5:51 ` [U-Boot] [PATCH v7 05/11] arm: add Faraday processor core support Kuo-Jung Su
2013-07-29 5:51 ` [U-Boot] [PATCH v7 06/11] arm: add Faraday FTINTC020 interrupt controller support Kuo-Jung Su
2013-07-29 5:51 ` [U-Boot] [PATCH v7 07/11] arm: add Faraday FTTMR010 timer support Kuo-Jung Su
2013-07-29 5:51 ` [U-Boot] [PATCH v7 08/11] arm: add Faraday FTPWMTMR010 " Kuo-Jung Su
2013-07-29 5:51 ` [U-Boot] [PATCH v7 09/11] arm: add customized boot command for Faraday Images Kuo-Jung Su
2013-09-14 10:28 ` Albert ARIBAUD
2013-10-02 0:53 ` Kuo-Jung Su
2013-07-29 5:51 ` [U-Boot] [PATCH v7 10/11] mmc: ftsdc010_mci: clk_get_rate() -> clock_get_rate() Kuo-Jung Su
2013-07-29 5:51 ` [U-Boot] [PATCH v7 11/11] arm: add Faraday A360/A369 SoC platform support Kuo-Jung Su
2013-11-28 2:48 ` [U-Boot] [PATCH v8] nand: add Faraday FTNANDC021 NAND controller support Kuo-Jung Su
2014-03-04 2:17 ` [U-Boot] [U-Boot, " Scott Wood
2014-03-04 3:58 ` Kuo-Jung Su
2013-12-30 9:23 ` [U-Boot] [PATCH v8 0/8] arm: add Faraday A36x SoC platform support Kuo-Jung Su
2013-12-30 9:23 ` [U-Boot] [PATCH v8 1/8] arm: global_data: prepare for Faraday SoC support Kuo-Jung Su
2013-12-30 9:23 ` [U-Boot] [PATCH v8 2/8] arm: make mmu_enabled() a global function Kuo-Jung Su
2013-12-30 9:23 ` [U-Boot] [PATCH v8 3/8] arm: add Faraday ARM cores support Kuo-Jung Su
2013-12-30 9:23 ` [U-Boot] [PATCH v8 4/8] arm: faraday: revise the DMA API Kuo-Jung Su
2013-12-30 9:23 ` [U-Boot] [PATCH v8 5/8] arm: faraday: add FTPWMTMR010 timer support Kuo-Jung Su
2013-12-30 9:23 ` [U-Boot] [PATCH v8 6/8] arm: faraday: add FTTMR010 " Kuo-Jung Su
2013-12-30 9:23 ` [U-Boot] [PATCH v8 7/8] arm: faraday: add A360 SoC support Kuo-Jung Su
2013-12-30 9:23 ` [U-Boot] [PATCH v8 8/8] arm: faraday: add A369 " Kuo-Jung Su
2014-01-16 8:31 ` [U-Boot] [PATCH v9 0/7] arm: add Faraday SoC platform support Kuo-Jung Su
2014-01-16 8:31 ` [U-Boot] [PATCH v9 1/7] arm: add Faraday ARMv5TE cores support Kuo-Jung Su
2014-01-16 8:31 ` [U-Boot] [PATCH v9 2/7] arm: add Faraday SoC helper files Kuo-Jung Su
2014-01-16 8:31 ` [U-Boot] [PATCH v9 3/7] arm: faraday: add FTTMR010 timer support Kuo-Jung Su
2014-01-16 8:31 ` [U-Boot] [PATCH v9 4/7] arm: faraday: add FTPWMTMR010 " Kuo-Jung Su
2014-01-16 8:31 ` [U-Boot] [PATCH v9 5/7] arm: faraday: ftsmc020: add a fail-safe macro constant Kuo-Jung Su
2014-01-16 8:31 ` [U-Boot] [PATCH v9 6/7] arm: faraday: add A369 evaluation board support Kuo-Jung Su
2014-01-16 8:31 ` [U-Boot] [PATCH v9 7/7] arm: faraday: add Faraday Virtual Machine support Kuo-Jung Su
2014-02-20 3:40 ` [U-Boot] [PATCH v10 0/6] arm: add Faraday SoC platform support Kuo-Jung Su
2014-02-20 3:40 ` [U-Boot] [PATCH v10 1/6] arm: add Faraday ARMv5TE cores support Kuo-Jung Su
2014-02-20 3:40 ` [U-Boot] [PATCH v10 2/6] arm: faraday: add FTTMR010 timer support Kuo-Jung Su
2014-02-20 3:40 ` [U-Boot] [PATCH v10 3/6] arm: faraday: add FTPWMTMR010 " Kuo-Jung Su
2014-02-20 3:40 ` [U-Boot] [PATCH v10 4/6] arm: faraday: add A369 evaluation board support Kuo-Jung Su
2014-02-20 3:40 ` [U-Boot] [PATCH v10 5/6] arm: faraday: add missing header file for FTSDC021 Kuo-Jung Su
2014-02-20 3:40 ` [U-Boot] [PATCH v10 6/6] arm: faraday: add virtual machine support Kuo-Jung Su
2014-03-25 12:41 ` [U-Boot] [PATCH v10 0/6] arm: add Faraday SoC platform support Albert ARIBAUD
2014-03-26 6:08 ` Kuo-Jung Su
2014-03-26 6:03 ` [U-Boot] [PATCH v11 " Kuo-Jung Su
2014-03-26 6:03 ` [U-Boot] [PATCH v11 1/6] arm: add Faraday ARMv5TE cores support Kuo-Jung Su
2014-03-26 6:47 ` Wolfgang Denk
2014-03-26 7:22 ` Kuo-Jung Su
2014-03-26 6:03 ` [U-Boot] [PATCH v11 2/6] arm: faraday: add FTTMR010 timer support Kuo-Jung Su
2014-03-26 6:03 ` [U-Boot] [PATCH v11 3/6] arm: faraday: add FTPWMTMR010 " Kuo-Jung Su
2014-03-26 6:03 ` [U-Boot] [PATCH v11 4/6] arm: faraday: add A369 evaluation board support Kuo-Jung Su
2014-03-26 6:03 ` [U-Boot] [PATCH v11 5/6] arm: faraday: add missing header file for FTSDC021 Kuo-Jung Su
2014-03-26 6:03 ` [U-Boot] [PATCH v11 6/6] arm: faraday: add virtual machine support Kuo-Jung Su
2014-03-26 6:52 ` Wolfgang Denk
2014-03-26 7:24 ` Kuo-Jung Su
2014-04-01 8:46 ` [U-Boot] [PATCH v12 0/8] arm: add Faraday SoC platform support Kuo-Jung Su
2014-04-01 8:46 ` [U-Boot] [PATCH v12 1/8] libc: move strlcpy() from ether.c to string.c Kuo-Jung Su
2014-04-01 9:16 ` Marek Vasut
2014-04-03 0:58 ` Kuo-Jung Su
2014-04-03 8:16 ` Marek Vasut
2014-04-07 4:07 ` Kuo-Jung Su
2014-04-01 8:46 ` [U-Boot] [PATCH v12 2/8] arm: add legacy linux clock framework support Kuo-Jung Su
2014-04-01 8:46 ` [U-Boot] [PATCH v12 3/8] arm: add Faraday ARMv5TE platform common libraries Kuo-Jung Su
2014-04-01 8:46 ` [U-Boot] [PATCH v12 4/8] arm: faraday: add FTTMR010 timer suppor Kuo-Jung Su
2014-04-01 8:46 ` [U-Boot] [PATCH v12 5/8] arm: faraday: add FTPWMTMR010 timer support Kuo-Jung Su
2014-04-01 8:46 ` [U-Boot] [PATCH v12 6/8] arm: faraday: add A369 evaluation board support Kuo-Jung Su
2014-04-01 8:46 ` [U-Boot] [PATCH v12 7/8] arm: faraday: add missing header file for FTSDC021 Kuo-Jung Su
2014-04-01 8:46 ` [U-Boot] [PATCH v12 8/8] arm: faraday: add faraday virtual machine support Kuo-Jung Su
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1372909244-25211-4-git-send-email-dantesu@gmail.com \
--to=dantesu@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox