summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233')
-rw-r--r--firmware/target/arm/imx233/nand-imx233.c79
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
33static int nand_first_drive;
34
35int nand_init(void)
36{
37 return -1;
38}
39int nand_read_sectors(IF_MD2(int drive,) unsigned long start, int count,
40 void* buf)
41{
42 return -1;
43}
44
45int nand_write_sectors(IF_MD2(int drive,) unsigned long start, int count,
46 const void* buf)
47{
48 return -1;
49}
50
51int nand_num_drives(int first_drive)
52{
53 nand_first_drive = first_drive;
54 return 1;
55}
56
57void 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/*
68bool nand_present(IF_MD(int drive))
69{
70 IF_MD((void) drive);
71 return true;
72}
73
74bool nand_removable(IF_MD(int drive))
75{
76 IF_MD((void) drive);
77 return false;
78}
79*/