2009-05-16 15:05:27 -06:00
|
|
|
/* arch/arm/plat-s3c/include/plat/udc-hs.h
|
|
|
|
*
|
|
|
|
* Copyright 2008 Openmoko, Inc.
|
|
|
|
* Copyright 2008 Simtec Electronics
|
|
|
|
* Ben Dooks <ben@simtec.co.uk>
|
|
|
|
* http://armlinux.simtec.co.uk/
|
|
|
|
*
|
|
|
|
* S3C USB2.0 High-speed / OtG platform information
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
2010-01-20 17:37:28 -07:00
|
|
|
enum s3c_hsotg_dmamode {
|
2009-05-16 15:05:27 -06:00
|
|
|
S3C_HSOTG_DMA_NONE, /* do not use DMA at-all */
|
|
|
|
S3C_HSOTG_DMA_ONLY, /* always use DMA */
|
|
|
|
S3C_HSOTG_DMA_DRV, /* DMA is chosen by driver */
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* struct s3c_hsotg_plat - platform data for high-speed otg/udc
|
|
|
|
* @dma: Whether to use DMA or not.
|
|
|
|
* @is_osc: The clock source is an oscillator, not a crystal
|
|
|
|
*/
|
|
|
|
struct s3c_hsotg_plat {
|
2010-01-20 17:37:28 -07:00
|
|
|
enum s3c_hsotg_dmamode dma;
|
2009-05-16 15:05:27 -06:00
|
|
|
unsigned int is_osc : 1;
|
|
|
|
};
|