Magnus Damm | 2c59b0b | 2009-07-22 14:41:35 +0000 | [diff] [blame] | 1 | /* |
| 2 | * M66592 driver platform data |
| 3 | * |
| 4 | * Copyright (C) 2009 Renesas Solutions Corp. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | * |
| 19 | */ |
| 20 | |
| 21 | #ifndef __LINUX_USB_M66592_H |
| 22 | #define __LINUX_USB_M66592_H |
| 23 | |
| 24 | #define M66592_PLATDATA_XTAL_12MHZ 0x01 |
| 25 | #define M66592_PLATDATA_XTAL_24MHZ 0x02 |
| 26 | #define M66592_PLATDATA_XTAL_48MHZ 0x03 |
| 27 | |
| 28 | struct m66592_platdata { |
| 29 | /* one = on chip controller, zero = external controller */ |
| 30 | unsigned on_chip:1; |
| 31 | |
| 32 | /* one = big endian, zero = little endian */ |
| 33 | unsigned endian:1; |
| 34 | |
| 35 | /* (external controller only) M66592_PLATDATA_XTAL_nnMHZ */ |
| 36 | unsigned xtal:2; |
| 37 | |
| 38 | /* (external controller only) one = 3.3V, zero = 1.5V */ |
| 39 | unsigned vif:1; |
| 40 | |
Yoshihiro Shimoda | bb59dbf | 2011-07-07 09:58:43 +0900 | [diff] [blame] | 41 | /* (external controller only) set one = WR0_N shorted to WR1_N */ |
| 42 | unsigned wr0_shorted_to_wr1:1; |
Magnus Damm | 2c59b0b | 2009-07-22 14:41:35 +0000 | [diff] [blame] | 43 | }; |
| 44 | |
| 45 | #endif /* __LINUX_USB_M66592_H */ |
| 46 | |