Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+
0002 /*
0003  * usb_c67x00.h: platform definitions for the Cypress C67X00 USB chip
0004  *
0005  * Copyright (C) 2006-2008 Barco N.V.
0006  */
0007 
0008 #ifndef _LINUX_USB_C67X00_H
0009 #define _LINUX_USB_C67X00_H
0010 
0011 /* SIE configuration */
0012 #define C67X00_SIE_UNUSED   0
0013 #define C67X00_SIE_HOST     1
0014 #define C67X00_SIE_PERIPHERAL_A 2   /* peripheral on A port */
0015 #define C67X00_SIE_PERIPHERAL_B 3   /* peripheral on B port */
0016 
0017 #define c67x00_sie_config(config, n)  (((config)>>(4*(n)))&0x3)
0018 
0019 #define C67X00_SIE1_UNUSED          (C67X00_SIE_UNUSED      << 0)
0020 #define C67X00_SIE1_HOST            (C67X00_SIE_HOST        << 0)
0021 #define C67X00_SIE1_PERIPHERAL_A    (C67X00_SIE_PERIPHERAL_A    << 0)
0022 #define C67X00_SIE1_PERIPHERAL_B    (C67X00_SIE_PERIPHERAL_B    << 0)
0023 
0024 #define C67X00_SIE2_UNUSED      (C67X00_SIE_UNUSED      << 4)
0025 #define C67X00_SIE2_HOST        (C67X00_SIE_HOST        << 4)
0026 #define C67X00_SIE2_PERIPHERAL_A    (C67X00_SIE_PERIPHERAL_A    << 4)
0027 #define C67X00_SIE2_PERIPHERAL_B    (C67X00_SIE_PERIPHERAL_B    << 4)
0028 
0029 struct c67x00_platform_data {
0030     int sie_config;         /* SIEs config (C67X00_SIEx_*) */
0031     unsigned long hpi_regstep;  /* Step between HPI registers  */
0032 };
0033 
0034 #endif /* _LINUX_USB_C67X00_H */