2 * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
4 * Copyright (C) 2002-2018 Aleph One Ltd.
6 * Created by Charles Manning <charles@aleph1.co.uk>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
14 * yaffscfg2k.c The configuration for the "direct" use of yaffs.
16 * This file is intended to be modified to your requirements.
17 * There is no need to redistribute this file.
21 #include "yaffs_guts.h"
23 #include "yaffs_fileem2k.h"
24 #include "yaffs_nandemul2k.h"
25 #include "yaffs_trace.h"
26 #include "yaffs_osglue.h"
27 #include "yaffs_nandsim_file.h"
32 unsigned yaffs_trace_mask =
39 YAFFS_TRACE_ALLOCATE |
40 YAFFS_TRACE_BAD_BLOCKS |
46 /* Configure the devices that will be used */
48 #include "yaffs_flashif2.h"
49 #include "yaffs_m18_drv.h"
50 #include "yaffs_nor_drv.h"
51 #include "yaffs_nand_drv.h"
53 int yaffs_start_up(void)
55 static int start_up_called = 0;
61 /* Call the OS initialisation (eg. set up lock semaphore */
62 yaffsfs_OSInitialisation();
64 /* Install the various devices and their device drivers */
65 yflash2_install_drv("yflash2");
66 yaffs_m18_install_drv("M18-1");
67 yaffs_nor_install_drv("nor");
68 yaffs_nandsim_install_drv("nand", "emfile-nand", 256);