From: b32955@freescale.com (Huang Shijie)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v6 1/3] MTD : add the common code for GPMI controller driver
Date: Tue, 26 Apr 2011 10:52:16 +0800 [thread overview]
Message-ID: <4DB63360.8010908@freescale.com> (raw)
In-Reply-To: <19887.57747.43423.753598@ipc1.ka-ro>
Hi:
> Huang Shijie writes:
>> These files contain the common code for the GPMI driver.
>>
>> Signed-off-by: Huang Shijie<b32955@freescale.com>
>> ---
>> drivers/mtd/nand/gpmi-nfc/gpmi-nfc.c | 2501 ++++++++++++++++++++++++++++++++++
>> drivers/mtd/nand/gpmi-nfc/gpmi-nfc.h | 488 +++++++
>> 2 files changed, 2989 insertions(+), 0 deletions(-)
>> create mode 100644 drivers/mtd/nand/gpmi-nfc/gpmi-nfc.c
>> create mode 100644 drivers/mtd/nand/gpmi-nfc/gpmi-nfc.h
>>
>> diff --git a/drivers/mtd/nand/gpmi-nfc/gpmi-nfc.c b/drivers/mtd/nand/gpmi-nfc/gpmi-nfc.c
>> new file mode 100644
>> index 0000000..53d6915
>> --- /dev/null
>> +++ b/drivers/mtd/nand/gpmi-nfc/gpmi-nfc.c
>> @@ -0,0 +1,2501 @@
>> +/*
>> + * Freescale GPMI NFC NAND Flash Driver
>> + *
>> + * Copyright (C) 2010-2011 Freescale Semiconductor, Inc.
>> + * Copyright (C) 2008 Embedded Alley Solutions, Inc.
>> + *
>> + * 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.,
>> + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
>> + */
>> +#include<linux/slab.h>
>> +#include "gpmi-nfc.h"
>> +
>> +/* add our owner bbt descriptor */
>> +static uint8_t scan_ff_pattern[] = { 0xff };
>> +static struct nand_bbt_descr gpmi_bbt_descr = {
>> + .options = 0,
>> + .offs = 0,
>> + .len = 1,
>> + .pattern = scan_ff_pattern
>> +};
>> +
>> +/* debug control */
>> +int gpmi_debug;
>> +
> This could be a module_param.
>
I think the module_param is not easy to use.
I want to know the log when the gpmi driver is running, and change the
log level as soon
as my need changs.
So I prefer to use the origin method.
Best Regards
Huang Shijie
next prev parent reply other threads:[~2011-04-26 2:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-20 2:45 [PATCH v6 0/3] add the GPMI controller driver for IMX23/IMX28 Huang Shijie
2011-04-20 2:45 ` [PATCH v6 1/3] MTD : add the common code for GPMI controller driver Huang Shijie
2011-04-21 7:49 ` Lothar Waßmann
2011-04-22 9:39 ` Huang Shijie
2011-04-26 2:52 ` Huang Shijie [this message]
2011-04-26 10:09 ` Lothar Waßmann
2011-04-28 19:20 ` Russell King - ARM Linux
2011-04-29 1:42 ` Huang Shijie
2011-04-20 2:45 ` [PATCH v6 2/3] MTD : add support for imx23 and imx28 Huang Shijie
2011-04-20 2:45 ` [PATCH v6 3/3] MTD : add GPMI driver in the config and Makefile Huang Shijie
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=4DB63360.8010908@freescale.com \
--to=b32955@freescale.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).