Linux 3.11-rc3
[cris-mirror.git] / arch / tile / include / hv / drv_srom_intf.h
blob6395faa6d9e696e11b0ce17f1c3fac56091bce27
1 /*
2 * Copyright 2011 Tilera Corporation. All Rights Reserved.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation, version 2.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
11 * NON INFRINGEMENT. See the GNU General Public License for
12 * more details.
15 /**
16 * @file drv_srom_intf.h
17 * Interface definitions for the SPI Flash ROM driver.
20 #ifndef _SYS_HV_INCLUDE_DRV_SROM_INTF_H
21 #define _SYS_HV_INCLUDE_DRV_SROM_INTF_H
23 /** Read this offset to get the total device size. */
24 #define SROM_TOTAL_SIZE_OFF 0xF0000000
26 /** Read this offset to get the device sector size. */
27 #define SROM_SECTOR_SIZE_OFF 0xF0000004
29 /** Read this offset to get the device page size. */
30 #define SROM_PAGE_SIZE_OFF 0xF0000008
32 /** Write this offset to flush any pending writes. */
33 #define SROM_FLUSH_OFF 0xF1000000
35 /** Write this offset, plus the byte offset of the start of a sector, to
36 * erase a sector. Any write data is ignored, but there must be at least
37 * one byte of write data. Only applies when the driver is in MTD mode.
39 #define SROM_ERASE_OFF 0xF2000000
41 #endif /* _SYS_HV_INCLUDE_DRV_SROM_INTF_H */