Path: blob/master/arch/arm/mach-omap2/board-flash.h
10817 views
/*1* board-sdp.h2*3* Information structures for SDP-specific board config data4*5* Copyright (C) 2009 Nokia Corporation6* Copyright (C) 2009 Texas Instruments7*8* This program is free software; you can redistribute it and/or modify9* it under the terms of the GNU General Public License version 2 as10* published by the Free Software Foundation.11*/12#include <linux/mtd/mtd.h>13#include <linux/mtd/partitions.h>14#include <plat/gpmc.h>1516#define PDC_NOR 117#define PDC_NAND 218#define PDC_ONENAND 319#define DBG_MPDB 42021struct flash_partitions {22struct mtd_partition *parts;23int nr_parts;24};2526extern void board_flash_init(struct flash_partitions [],27char chip_sel[][GPMC_CS_NUM], int nand_type);28extern void board_nand_init(struct mtd_partition *nand_parts,29u8 nr_parts, u8 cs, int nand_type);303132