Re: [PATCH v3 1/4] NAND: FSL-UPM: add multi chip support

2009-03-25 Thread Grant Likely
On Wed, Mar 25, 2009 at 7:43 AM, Wolfgang Grandegger wrote: > Grant Likely wrote: >> On Wed, Mar 25, 2009 at 7:31 AM, Grant Likely >> wrote: >>> On Wed, Mar 25, 2009 at 4:08 AM, Wolfgang Grandegger >>> wrote: This patch adds support for multi-chip NAND devices to the FSL-UPM driver.

Re: [PATCH v3 1/4] NAND: FSL-UPM: add multi chip support

2009-03-25 Thread Wolfgang Grandegger
Hi Anton, Anton Vorontsov wrote: > Hi Wolfgang, > > On Wed, Mar 25, 2009 at 11:08:18AM +0100, Wolfgang Grandegger wrote: >> This patch adds support for multi-chip NAND devices to the FSL-UPM >> driver. This requires support for multiple GPIOs for the RNB pins. >> The NAND chips are selected throu

Re: [PATCH v3 1/4] NAND: FSL-UPM: add multi chip support

2009-03-25 Thread Anton Vorontsov
Hi Wolfgang, On Wed, Mar 25, 2009 at 11:08:18AM +0100, Wolfgang Grandegger wrote: > This patch adds support for multi-chip NAND devices to the FSL-UPM > driver. This requires support for multiple GPIOs for the RNB pins. > The NAND chips are selected through address lines defined by the > FDT prope

Re: [PATCH v3 1/4] NAND: FSL-UPM: add multi chip support

2009-03-25 Thread Wolfgang Grandegger
Grant Likely wrote: > On Wed, Mar 25, 2009 at 7:31 AM, Grant Likely > wrote: >> On Wed, Mar 25, 2009 at 4:08 AM, Wolfgang Grandegger >> wrote: >>> This patch adds support for multi-chip NAND devices to the FSL-UPM >>> driver. This requires support for multiple GPIOs for the RNB pins. >>> The NA

Re: [PATCH v3 1/4] NAND: FSL-UPM: add multi chip support

2009-03-25 Thread Grant Likely
On Wed, Mar 25, 2009 at 7:31 AM, Grant Likely wrote: > On Wed, Mar 25, 2009 at 4:08 AM, Wolfgang Grandegger > wrote: >> This patch adds support for multi-chip NAND devices to the FSL-UPM >> driver. This requires support for multiple GPIOs for the RNB pins. >> The NAND chips are selected through

Re: [PATCH v3 1/4] NAND: FSL-UPM: add multi chip support

2009-03-25 Thread Grant Likely
On Wed, Mar 25, 2009 at 4:08 AM, Wolfgang Grandegger wrote: > This patch adds support for multi-chip NAND devices to the FSL-UPM > driver. This requires support for multiple GPIOs for the RNB pins. > The NAND chips are selected through address lines defined by the > FDT property "chip-offset". >

RE: [PATCH v3 1/4] NAND: FSL-UPM: add multi chip support

2009-03-25 Thread Singh, Vimal
> +static void fun_select_chip(struct mtd_info *mtd, int chip_nr) > +{ > + struct nand_chip *chip = mtd->priv; > + struct fsl_upm_nand *fun = to_fsl_upm_nand(mtd); > + > + if (chip_nr == -1) { > + chip->cmd_ctrl(mtd, NAND_CMD_NONE, 0 | > NAND_CTRL_CHANGE); > +

Re: [PATCH v3 1/4] NAND: FSL-UPM: add multi chip support

2009-03-25 Thread Wolfgang Grandegger
Singh, Vimal wrote: >> +static void fun_select_chip(struct mtd_info *mtd, int chip_nr) >> +{ >> + struct nand_chip *chip = mtd->priv; >> + struct fsl_upm_nand *fun = to_fsl_upm_nand(mtd); >> + >> + if (chip_nr == -1) { >> + chip->cmd_ctrl(mtd, NAND_CMD_NONE, 0 | >>

[PATCH v3 1/4] NAND: FSL-UPM: add multi chip support

2009-03-25 Thread Wolfgang Grandegger
This patch adds support for multi-chip NAND devices to the FSL-UPM driver. This requires support for multiple GPIOs for the RNB pins. The NAND chips are selected through address lines defined by the FDT property "chip-offset". Signed-off-by: Wolfgang Grandegger --- arch/powerpc/sysdev/fsl_lbc.c