[U-Boot] [PATCH v2 23/35] nand: Add zynq nand controller driver support

Jagan Teki jagannadh.teki at gmail.com
Wed Dec 18 20:07:50 CET 2013


On Wed, Dec 18, 2013 at 9:07 PM, Marek Vasut <marex at denx.de> wrote:
> On Wednesday, December 18, 2013 at 04:30:08 PM, Jagannadha Sutradharudu Teki
> wrote:
>> Added support for Zynq Nand controller driver.
>>
>> Signed-off-by: Jagannadha Sutradharudu Teki <jaganna at xilinx.com>
>> CC: Marek Vasut <marex at denx.de>
>> Cc: Scott Wood <scottwood at freescale.com>
>> ---
>> V2: Fixed issues pointed by Scott
>>
>>  arch/arm/include/asm/arch-zynq/hardware.h |    2 +
>>  drivers/mtd/nand/Makefile                 |    1 +
>>  drivers/mtd/nand/zynq_nand.c              | 1198
>> +++++++++++++++++++++++++++++ 3 files changed, 1201 insertions(+)
>>  create mode 100644 drivers/mtd/nand/zynq_nand.c
>
> [...]
>
>> +#define zynq_nand_smc_base   ((struct zynq_nand_smc_regs __iomem *)\
>> +                             ZYNQ_SMC_BASEADDR)
>
> Why don't you make this a static const * variable ?

For accessing base from all func - may be I will through structure
pointer and access.

-- 
Thanks,
Jagan.
--------
Jagannadha Sutradharudu Teki,
E: jagannadh.teki at gmail.com, P: +91-9676773388
Engineer - System Software Hacker
U-boot - SPI Custodian and Zynq APSOC
Ln: http://www.linkedin.com/in/jaganteki


More information about the U-Boot mailing list