openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

mspi.h (860B)


      1 /*
      2  * 
      3  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      4  * 
      5  * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      6  *
      7  * File:        mspi.h
      8  * Purpose:     Base definitions for SPI Master mode routines
      9  * Requires:    
     10  */
     11 #ifndef _SOC_MSPI_H
     12 #define _SOC_MSPI_H
     13 
     14 #ifdef BCM_CMICM_SUPPORT
     15 
     16 #define MSPI_FLASH 0
     17 #define MSPI_LIU   1
     18 #define MSPI_DPLL  2
     19 #define MSPI_EXTRA 3 /* Re-Use */
     20 
     21 extern int soc_mspi_init(int unit);
     22 extern int soc_mspi_config(int unit, int device, int cpol, int cpha);
     23 extern int soc_mspi_writeread8(int unit, uint8 *wbuf, int wlen, uint8 *rbuf, int rlen);
     24 extern int soc_mspi_read8(int unit, uint8 *buf, int len);
     25 extern int soc_mspi_write8(int unit, uint8 *buf, int len);
     26 
     27 #endif /* ifdef BCM_CMICM_SUPPORT */
     28 
     29 #endif /* ifdef _SOC_SPIM_H */
     30