Home
last modified time | relevance | path

Searched full:onenand (Results 1 – 25 of 142) sorted by relevance

123456

/openbmc/u-boot/drivers/mtd/onenand/
H A Dsamsung.c3 * S5PC100 OneNAND driver at U-Boot
16 #include <linux/mtd/onenand.h>
67 static struct s3c_onenand *onenand; variable
71 return readl(onenand->ahb_addr + cmd); in s3c_read_cmd()
76 writel(value, onenand->ahb_addr + cmd); in s3c_write_cmd()
101 writel(ONENAND_MEM_RESET_COLD, &onenand->reg->mem_reset); in s3c_onenand_reset()
103 stat = readl(&onenand->reg->int_err_stat); in s3c_onenand_reset()
107 stat = readl(&onenand->reg->int_err_stat); in s3c_onenand_reset()
108 writel(stat, &onenand->reg->int_err_ack); in s3c_onenand_reset()
111 writel(0x0, &onenand->reg->int_err_ack); in s3c_onenand_reset()
[all …]
H A Donenand_base.c2 * linux/drivers/mtd/onenand/onenand_base.c
14 * Flex-OneNAND support
27 #include <linux/mtd/onenand.h>
47 * onenand_oob_128 - oob info for Flex-Onenand with 4KB page
122 * onenand_readw - [OneNAND Interface] Read OneNAND register
125 * Read OneNAND register
133 * onenand_writew - [OneNAND Interface] Write OneNAND register with value
137 * Write OneNAND register with value
226 * @param this - OneNAND device structure
257 * @this: OneNAND device structure
[all …]
H A Donenand_uboot.c2 * drivers/mtd/onenand/onenand_uboot.c
13 * OneNAND initialization at U-Boot
19 #include <linux/mtd/onenand.h>
44 puts("OneNAND: "); in onenand_init()
H A Donenand_bbt.c2 * linux/drivers/mtd/onenand/onenand_bbt.c
4 * Bad Block Table support for the OneNAND driver
20 #include <linux/mtd/onenand.h>
147 * onenand_isbad_bbt - [OneNAND Interface] Check if a block is bad
179 * onenand_scan_bbt - [OneNAND Interface] scan, find, read and maybe create bad block table(s)
240 * onenand_default_bbt - [OneNAND Interface] Select a default bad block table for the device
/openbmc/linux/drivers/mtd/nand/onenand/
H A Donenand_samsung.c3 * Samsung S3C64XX/S5PC1XX OneNAND driver
19 #include <linux/mtd/onenand.h>
143 static struct s3c_onenand *onenand; variable
147 return readl(onenand->base + offset); in s3c_read_reg()
152 writel(value, onenand->base + offset); in s3c_write_reg()
157 return readl(onenand->ahb_addr + cmd); in s3c_read_cmd()
162 writel(value, onenand->ahb_addr + cmd); in s3c_write_cmd()
172 (unsigned int) onenand->base + i, in s3c_dump_reg()
218 struct onenand_chip *this = onenand->mtd->priv; in s3c_onenand_readw()
219 struct device *dev = &onenand->pdev->dev; in s3c_onenand_readw()
[all …]
H A DKconfig3 tristate "OneNAND Device Support"
6 This enables support for accessing all type of OneNAND flash
12 bool "Verify OneNAND page writes"
15 OneNAND flash device internally checks only bits transitioning
21 tristate "OneNAND Flash device via platform device driver"
23 Support for OneNAND flash via platform device driver.
26 tristate "OneNAND on OMAP2/OMAP3 support"
31 Support for a OneNAND flash device connected to an OMAP2/OMAP3 SoC
36 tristate "OneNAND on Samsung SOC controller support"
39 Support for a OneNAND flash device connected to Samsung S3C64XX
[all …]
H A Dgeneric.c7 * This is a device driver for the OneNAND flash for generic boards.
14 #include <linux/mtd/onenand.h>
21 * This version of the driver is named "onenand-flash" and takes struct
23 * with the name "onenand" used to take struct flash_platform_data.
25 #define DRIVER_NAME "onenand-flash"
29 struct onenand_chip onenand; member
49 info->onenand.base = ioremap(res->start, size); in generic_onenand_probe()
50 if (!info->onenand.base) { in generic_onenand_probe()
55 info->onenand.mmcontrol = pdata ? pdata->mmcontrol : NULL; in generic_onenand_probe()
61 info->onenand.irq = err; in generic_onenand_probe()
[all …]
H A Donenand_omap2.c3 * OneNAND driver for OMAP2 / OMAP3
14 #include <linux/mtd/onenand.h>
29 #define DRIVER_NAME "omap2-onenand"
39 struct onenand_chip onenand; member
61 return readw(c->onenand.base + reg); in read_reg()
67 writew(value, c->onenand.base + reg); in write_reg()
456 memset((__force void *)c->onenand.base, 0, ONENAND_BUFRAM_SIZE); in omap2_onenand_shutdown()
484 c->onenand.base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in omap2_onenand_probe()
485 if (IS_ERR(c->onenand.base)) in omap2_onenand_probe()
486 return PTR_ERR(c->onenand.base); in omap2_onenand_probe()
[all …]
H A Donenand_base.c13 * Flex-OneNAND support
27 #include <linux/mtd/onenand.h>
39 /* Default Flex-OneNAND boundary and lock respectively */
43 MODULE_PARM_DESC(flex_bdry, "SLC Boundary information for Flex-OneNAND"
50 /* Default OneNAND/Flex-OneNAND OTP options*/
54 MODULE_PARM_DESC(otp, "Corresponding behaviour of OneNAND in OTP"
63 * flexonenand_oob_128 - oob info for Flex-Onenand with 4KB page
96 * onenand_oob_128 - oob info for OneNAND with 4KB page
99 * 4Gb M-die OneNAND Flash (KFM4G16Q4M, KFN8G16Q4M). Rev. 1.3, Apr. 2010
194 * onenand_readw - [OneNAND Interface] Read OneNAND register
[all …]
H A DMakefile3 # Makefile for the OneNAND MTD
7 obj-$(CONFIG_MTD_ONENAND) += onenand.o
14 onenand-objs = onenand_base.o onenand_bbt.o
H A Donenand_bbt.c3 * Bad Block Table support for the OneNAND driver
16 #include <linux/mtd/onenand.h>
104 printk(KERN_INFO "OneNAND eraseblock %d is an " in create_bbt()
139 * onenand_isbad_bbt - [OneNAND Interface] Check if a block is bad
168 * onenand_scan_bbt - [OneNAND Interface] scan, find, read and maybe create bad block table(s)
223 * onenand_default_bbt - [OneNAND Interface] Select a default bad block table for the device
/openbmc/u-boot/board/samsung/smdkc100/
H A Donenand.c10 #include <linux/mtd/onenand.h>
23 struct samsung_onenand *onenand; in onenand_board_init() local
27 onenand = (struct samsung_onenand *)this->base; in onenand_board_init()
45 writel(ONENAND_MEM_RESET_COLD, &onenand->mem_reset); in onenand_board_init()
47 while (!(readl(&onenand->int_err_stat) & RST_CMP)) in onenand_board_init()
50 writel(RST_CMP, &onenand->int_err_ack); in onenand_board_init()
57 writel(0x3, &onenand->acc_clock); in onenand_board_init()
59 writel(INT_ERR_ALL, &onenand->int_err_mask); in onenand_board_init()
60 writel(1 << 0, &onenand->int_pin_en); /* Enable */ in onenand_board_init()
62 value = readl(&onenand->int_err_mask); in onenand_board_init()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/mtd/
H A Dti,gpmc-onenand.yaml4 $id: http://devicetree.org/schemas/mtd/ti,gpmc-onenand.yaml#
7 title: OneNAND over Texas Instruments GPMC bus.
14 GPMC connected OneNAND (found on OMAP boards) are represented
19 pattern: "^onenand@[0-9],[0,9]$"
22 const: ti,omap2-onenand
28 OneNAND register window.
65 ranges = <0 0 0x01000000 0x01000000>, /* 16 MB for OneNAND */
68 onenand@0,0 {
69 compatible = "ti,omap2-onenand";
/openbmc/linux/include/linux/mtd/
H A Donenand.h3 * linux/include/linux/mtd/onenand.h
21 /* Scan and identify a OneNAND device */
23 /* Free resources held by the OneNAND device */
27 * struct onenand_bufferram - OneNAND BufferRAM Data
35 * struct onenand_chip - OneNAND Private Flash Chip Data
36 * @base: [BOARDSPECIFIC] address to access OneNAND
37 * @dies: [INTERN][FLEX-ONENAND] number of dies on chip
38 * @boundary: [INTERN][FLEX-ONENAND] Boundary of the dies
39 * @diesize: [INTERN][FLEX-ONENAND] Size of the dies
41 * FIXME For Flex-OneNAND, chipsize holds maximum possible
[all …]
/openbmc/u-boot/include/linux/mtd/
H A Donenand.h2 * linux/include/linux/mtd/onenand.h
27 /* Scan and identify a OneNAND device */
29 /* Free resources held by the OneNAND device */
33 * struct onenand_bufferram - OneNAND BufferRAM Data
41 * struct onenand_chip - OneNAND Private Flash Chip Data
42 * @param base [BOARDSPECIFIC] address to access OneNAND
66 * @param wq [INTERN] wait queue to sleep on if a OneNAND operation is in progress
67 * @param state [INTERN] the current state of the OneNAND device
160 * OneNAND Flash Manufacturer ID Codes
/openbmc/u-boot/env/
H A Donenand.c21 #include <linux/mtd/onenand.h>
49 /* Check OneNAND exist */ in env_onenand_load()
95 printf("OneNAND: erase failed at 0x%08llx\n", env_addr); in env_onenand_save()
101 printf("OneNAND: write failed at 0x%llx\n", instr.addr); in env_onenand_save()
108 U_BOOT_ENV_LOCATION(onenand) = {
110 ENV_NAME("OneNAND")
/openbmc/u-boot/include/configs/
H A Dsmdkc100.h64 #define CONFIG_UPDATEB "updateb=onenand erase 0x0 0x40000;" \
65 " onenand write 0x32008000 0x0 0x40000\0"
71 "onenand erase 0x60000 0x300000;" \
72 "onenand write 0x31008000 0x60000 0x300000\0" \
74 "onenand erase block 147-4095;" \
75 "onenand write 0x32000000 0x1260000 0x8C0000\0" \
77 "onenand read 0x30007FC0 0x60000 0x300000;" \
H A Ds5p_goni.h97 #define CONFIG_UPDATEB "updateb=onenand erase 0x0 0x100000;" \
98 " onenand write 0x32008000 0x0 0x100000\0"
106 "onenand erase 0xc00000 0x600000;" \
107 "onenand write 0x31008000 0xc00000 0x600000\0" \
109 "onenand erase 0x01560000 0x1eaa0000;" \
110 "onenand write 0x32000000 0x1260000 0x8C0000\0" \
H A Ds5pc210_universal.h70 "onenand erase 0x0 0x100000;" \
71 "onenand write 0x42008000 0x0 0x100000\0" \
73 "onenand erase 0xc00000 0x500000;" \
74 "onenand write 0x41008000 0xc00000 0x500000\0" \
/openbmc/u-boot/cmd/
H A Donenand.c2 * U-Boot command for OneNAND support
18 #include <linux/mtd/onenand.h>
372 /* Currently only one OneNAND device is supported */ in do_onenand_bad()
447 * onenand erase [force] [off size] in do_onenand_erase()
482 * onenand test [force] [off size] in do_onenand_test()
575 /* Strip off leading 'onenand' command argument */ in do_onenand()
588 onenand, CONFIG_SYS_MAXARGS, 1, do_onenand,
589 "OneNAND sub-system",
590 "info - show available OneNAND devices\n"
591 "onenand bad - show bad blocks\n"
[all …]
/openbmc/linux/arch/arm/boot/dts/ti/omap/
H A Domap3-gta04a5one.dts9 model = "Goldelico GTA04A5/Letux 2804 with OneNAND";
33 * according to TRM. OneNAND seems to require PIN_INPUT on clock.
42 /* switch inherited setup to OneNAND */
44 ranges = <0 0 0x04000000 0x1000000>; /* CS0: 16MB for OneNAND */
50 onenand@0,0 {
54 compatible = "ti,omap2-onenand";
H A Domap3430-sdp.dts52 <2 0 0x20000000 0x1000000>; /* CS2: 16MB for OneNAND */
150 onenand@2,0 {
154 compatible = "ti,omap2-onenand";
175 label = "xloader-onenand";
179 label = "bootloader-onenand";
183 label = "params-onenand";
187 label = "kernel-onenand";
191 label = "filesystem-onenand";
H A Domap2420-n8x0-common.dtsi48 ranges = <0 0 0x04000000 0x1000000>; /* CS0: 16MB for OneNAND */
52 onenand@0,0 {
55 compatible = "ti,omap2-onenand";
107 label = "omap2-onenand";
/openbmc/u-boot/doc/
H A DREADME.nokia_rx519 onenand as such. This u-boot is intended to be flashed to the N900 like
88 ONENAND support:
90 ONENAND support is disabled because not working yet and cause linux kernel to
91 crash or no access to mtd. For enabling ONENAND support add this line at begin
101 support first enable ONENAND support and then add this line at begin of file
/openbmc/u-boot/configs/
H A Dsmdkc100_defconfig9 ….mtd=4 rootfstype=cramfs console=ttySAC0,115200n8 mem=128M mtdparts=s3c-onenand:256k(bootloader),…
19 CONFIG_MTDIDS_DEFAULT="onenand0=s3c-onenand"
20 CONFIG_MTDPARTS_DEFAULT="mtdparts=s3c-onenand:256k(bootloader),128k@0x40000(params),3m@0x60000(kern…

123456