Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
f68a0c91
U
U-Boot.Mirror
项目概览
OS
/
U-Boot.Mirror
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
U-Boot.Mirror
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f68a0c91
编写于
12月 09, 2008
作者:
W
Wolfgang Denk
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of /home/wd/git/u-boot/custodians
上级
d5e710a3
695a5f33
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
30 addition
and
19 deletion
+30
-19
drivers/serial/usbtty.c
drivers/serial/usbtty.c
+2
-4
drivers/serial/usbtty.h
drivers/serial/usbtty.h
+21
-10
drivers/usb/usbdcore_omap1510.c
drivers/usb/usbdcore_omap1510.c
+3
-1
include/usb.h
include/usb.h
+1
-1
include/usbdcore_omap1510.h
include/usbdcore_omap1510.h
+3
-3
未找到文件。
drivers/serial/usbtty.c
浏览文件 @
f68a0c91
...
...
@@ -22,16 +22,14 @@
*/
#include <common.h>
#include <config.h>
#include <circbuf.h>
#include <devices.h>
#include "usbtty.h"
#include "usb_cdc_acm.h"
#include "usbdescriptors.h"
#include <config.h>
/* If defined, override Linux identifiers with
* vendor specific ones */
#if
0
#if
def DEBUG
#define TTYDBG(fmt,args...)\
serial_printf("[%s] %s %d: "fmt, __FILE__,__FUNCTION__,__LINE__,##args)
#else
...
...
drivers/serial/usbtty.h
浏览文件 @
f68a0c91
...
...
@@ -24,11 +24,11 @@
#ifndef __USB_TTY_H__
#define __USB_TTY_H__
#include
"usbdcore.h"
#include
<usbdcore.h>
#if defined(CONFIG_PPC)
#include
"usbdcore_mpc8xx.h"
#include
<usbdcore_mpc8xx.h>
#elif defined(CONFIG_ARM)
#include
"usbdcore_omap1510.h"
#include
<usbdcore_omap1510.h>
#endif
#include <version_autogenerated.h>
...
...
@@ -36,14 +36,25 @@
/* If no VendorID/ProductID is defined in config.h, pretend to be Linux
* DO NOT Reuse this Vendor/Product setup with protocol incompatible devices */
#define CONFIG_USBD_VENDORID 0x0525
/* Linux/NetChip */
#define CONFIG_USBD_PRODUCTID_GSERIAL 0xa4a6
/* gserial */
#define CONFIG_USBD_PRODUCTID_CDCACM 0xa4a7
/* CDC ACM */
#define CONFIG_USBD_MANUFACTURER "Das U-Boot"
#define CONFIG_USBD_PRODUCT_NAME U_BOOT_VERSION
#ifndef CONFIG_USBD_VENDORID
#define CONFIG_USBD_VENDORID 0x0525
/* Linux/NetChip */
#endif
#ifndef CONFIG_USBD_PRODUCTID_GSERIAL
#define CONFIG_USBD_PRODUCTID_GSERIAL 0xa4a6
/* gserial */
#endif
#ifndef CONFIG_USBD_PRODUCTID_CDCACM
#define CONFIG_USBD_PRODUCTID_CDCACM 0xa4a7
/* CDC ACM */
#endif
#ifndef CONFIG_USBD_MANUFACTURER
#define CONFIG_USBD_MANUFACTURER "Das U-Boot"
#endif
#ifndef CONFIG_USBD_PRODUCT_NAME
#define CONFIG_USBD_PRODUCT_NAME U_BOOT_VERSION
#endif
#define CONFIG_USBD_CONFIGURATION_STR "TTY via USB"
#ifndef CONFIG_USBD_CONFIGURATION_STR
#define CONFIG_USBD_CONFIGURATION_STR "TTY via USB"
#endif
#define CONFIG_USBD_SERIAL_OUT_ENDPOINT UDC_OUT_ENDPOINT
#define CONFIG_USBD_SERIAL_OUT_PKTSIZE UDC_OUT_PACKET_SIZE
...
...
drivers/usb/usbdcore_omap1510.c
浏览文件 @
f68a0c91
...
...
@@ -1061,7 +1061,7 @@ void omap1510_udc_noniso_irq (void)
*/
/* Called to start packet transmission. */
void
udc_endpoint_write
(
struct
usb_endpoint_instance
*
endpoint
)
int
udc_endpoint_write
(
struct
usb_endpoint_instance
*
endpoint
)
{
unsigned
short
epnum
=
endpoint
->
endpoint_address
&
USB_ENDPOINT_NUMBER_MASK
;
...
...
@@ -1078,6 +1078,8 @@ void udc_endpoint_write (struct usb_endpoint_instance *endpoint)
/* deselect the endpoint FIFO */
outw
(
UDC_EP_Dir
|
epnum
,
UDC_EP_NUM
);
}
return
0
;
}
/* Start to initialize h/w stuff */
...
...
include/usb.h
浏览文件 @
f68a0c91
...
...
@@ -91,7 +91,7 @@ struct usb_endpoint_descriptor {
unsigned
char
bInterval
;
unsigned
char
bRefresh
;
unsigned
char
bSynchAddress
;
}
__attribute__
((
packed
));
}
__attribute__
((
packed
))
__attribute__
((
aligned
(
2
)))
;
/* Interface descriptor */
struct
usb_interface_descriptor
{
...
...
include/usbdcore_omap1510.h
浏览文件 @
f68a0c91
...
...
@@ -168,8 +168,8 @@
#define UDC_IN_ENDPOINT 1
#define UDC_IN_PACKET_SIZE 64
#define UDC_INT_ENDPOINT 5
#define UDC_INT_P
KT
SIZE 16
#define UDC_BULK_P
KT
SIZE 16
#define UDC_INT_P
ACKET_
SIZE 16
#define UDC_BULK_P
ACKET_
SIZE 16
void
udc_irq
(
void
);
/* Flow control */
...
...
@@ -177,7 +177,7 @@ void udc_set_nak(int epid);
void
udc_unset_nak
(
int
epid
);
/* Higher level functions for abstracting away from specific device */
void
udc_endpoint_write
(
struct
usb_endpoint_instance
*
endpoint
);
int
udc_endpoint_write
(
struct
usb_endpoint_instance
*
endpoint
);
int
udc_init
(
void
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录