diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2012-05-19 13:41:27 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2012-05-19 16:10:52 +0200 |
commit | 247e611f4945d048f280471d78b7b83a96b35454 (patch) | |
tree | 25f5550ac1b2135dd344f0f0a12812fdd31a73ab /firmware/target/arm/imx233/nand-imx233.c | |
parent | 9d871139583fdd0180f2b6893dee1d160a8593e5 (diff) | |
download | rockbox-247e611f4945d048f280471d78b7b83a96b35454.tar.gz rockbox-247e611f4945d048f280471d78b7b83a96b35454.zip |
imx233: add stub nand driver
Change-Id: I6ed3d274b27eb56afb8289cba1b11bceb74bac12
Diffstat (limited to 'firmware/target/arm/imx233/nand-imx233.c')
-rw-r--r-- | firmware/target/arm/imx233/nand-imx233.c | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/nand-imx233.c b/firmware/target/arm/imx233/nand-imx233.c new file mode 100644 index 0000000000..ec584b5869 --- /dev/null +++ b/firmware/target/arm/imx233/nand-imx233.c | |||
@@ -0,0 +1,79 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2011 by Amaury Pouly | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | #include "config.h" | ||
22 | #include "system.h" | ||
23 | #include "gpmi-imx233.h" | ||
24 | #include "pinctrl-imx233.h" | ||
25 | #include "button-target.h" | ||
26 | #include "fat.h" | ||
27 | #include "disk.h" | ||
28 | #include "usb.h" | ||
29 | #include "debug.h" | ||
30 | #include "nand.h" | ||
31 | #include "storage.h" | ||
32 | |||
33 | static int nand_first_drive; | ||
34 | |||
35 | int nand_init(void) | ||
36 | { | ||
37 | return -1; | ||
38 | } | ||
39 | int nand_read_sectors(IF_MD2(int drive,) unsigned long start, int count, | ||
40 | void* buf) | ||
41 | { | ||
42 | return -1; | ||
43 | } | ||
44 | |||
45 | int nand_write_sectors(IF_MD2(int drive,) unsigned long start, int count, | ||
46 | const void* buf) | ||
47 | { | ||
48 | return -1; | ||
49 | } | ||
50 | |||
51 | int nand_num_drives(int first_drive) | ||
52 | { | ||
53 | nand_first_drive = first_drive; | ||
54 | return 1; | ||
55 | } | ||
56 | |||
57 | void nand_get_info(IF_MD2(int drive,) struct storage_info *info) | ||
58 | { | ||
59 | IF_MD((void)drive); | ||
60 | info->sector_size = SECTOR_SIZE; | ||
61 | info->num_sectors = 0; | ||
62 | info->vendor = ""; | ||
63 | info->product = ""; | ||
64 | info->revision = ""; | ||
65 | } | ||
66 | |||
67 | /* | ||
68 | bool nand_present(IF_MD(int drive)) | ||
69 | { | ||
70 | IF_MD((void) drive); | ||
71 | return true; | ||
72 | } | ||
73 | |||
74 | bool nand_removable(IF_MD(int drive)) | ||
75 | { | ||
76 | IF_MD((void) drive); | ||
77 | return false; | ||
78 | } | ||
79 | */ | ||