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 | |
| 41 | }; |
| 42 | |
| 43 | #endif /* __LINUX_USB_M66592_H */ |
| 44 | |