Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * M66592 driver platform data
0004  *
0005  * Copyright (C) 2009  Renesas Solutions Corp.
0006  */
0007 
0008 #ifndef __LINUX_USB_M66592_H
0009 #define __LINUX_USB_M66592_H
0010 
0011 #define M66592_PLATDATA_XTAL_12MHZ  0x01
0012 #define M66592_PLATDATA_XTAL_24MHZ  0x02
0013 #define M66592_PLATDATA_XTAL_48MHZ  0x03
0014 
0015 struct m66592_platdata {
0016     /* one = on chip controller, zero = external controller */
0017     unsigned    on_chip:1;
0018 
0019     /* one = big endian, zero = little endian */
0020     unsigned    endian:1;
0021 
0022     /* (external controller only) M66592_PLATDATA_XTAL_nnMHZ */
0023     unsigned    xtal:2;
0024 
0025     /* (external controller only) one = 3.3V, zero = 1.5V */
0026     unsigned    vif:1;
0027 
0028     /* (external controller only) set one = WR0_N shorted to WR1_N */
0029     unsigned    wr0_shorted_to_wr1:1;
0030 };
0031 
0032 #endif /* __LINUX_USB_M66592_H */
0033