source: svn/newcon3bcm2_21bu/dta/src/jflu/jflu_spi.h @ 46

Last change on this file since 46 was 46, checked in by megakiss, 11 years ago

459Mhz로 OTC 주파수 변경

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2011, Broadcom Corporation
3 *     All Rights Reserved
4 *     Confidential Property of Broadcom Corporation
5 *
6 *  THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
7 *  AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
8 *  EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
9 *
10 * $brcm_Workfile: $
11 * $brcm_Revision: $
12 * $brcm_Date: $
13 *
14 * Module Description: spi interface for jtag flash programmer.
15 *
16 * Revision History:
17 *
18 * $brcm_Log: $
19 *
20 *
21 ***************************************************************************/
22#if !defined(__JFLU_SPI_H__)
23#define __JFLU_SPI_H__
24
25#define SPI_OK 0
26#define SPI_ERROR 1
27
28/* structure describing spi flash */
29typedef struct spi_flash_t {
30        unsigned char se_cmd;
31        unsigned int  sector_size;
32        unsigned int  page_size;
33} spi_flash_t ;
34
35void jflu_spi_init(spi_flash_t * flash);
36int jflu_spi_sector_erase(spi_flash_t * flash, unsigned int offset);
37int jflu_spi_page_program(spi_flash_t * flash, unsigned int offset, unsigned char *buf, int len);
38int jflu_spi_identify(spi_flash_t * flash);
39
40#endif
Note: See TracBrowser for help on using the repository browser.