drv_srom_intf.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright 2011 Tilera Corporation. All Rights Reserved.
  3. *
  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.
  7. *
  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.
  13. */
  14. /**
  15. * @file drv_srom_intf.h
  16. * Interface definitions for the SPI Flash ROM driver.
  17. */
  18. #ifndef _SYS_HV_INCLUDE_DRV_SROM_INTF_H
  19. #define _SYS_HV_INCLUDE_DRV_SROM_INTF_H
  20. /** Read this offset to get the total device size. */
  21. #define SROM_TOTAL_SIZE_OFF 0xF0000000
  22. /** Read this offset to get the device sector size. */
  23. #define SROM_SECTOR_SIZE_OFF 0xF0000004
  24. /** Read this offset to get the device page size. */
  25. #define SROM_PAGE_SIZE_OFF 0xF0000008
  26. /** Write this offset to flush any pending writes. */
  27. #define SROM_FLUSH_OFF 0xF1000000
  28. /** Write this offset, plus the byte offset of the start of a sector, to
  29. * erase a sector. Any write data is ignored, but there must be at least
  30. * one byte of write data. Only applies when the driver is in MTD mode.
  31. */
  32. #define SROM_ERASE_OFF 0xF2000000
  33. #endif /* _SYS_HV_INCLUDE_DRV_SROM_INTF_H */