xref: /OK3568_Linux_fs/kernel/Documentation/ABI/testing/sysfs-c2port (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunWhat:		/sys/class/c2port/
2*4882a593SmuzhiyunDate:		October 2008
3*4882a593SmuzhiyunContact:	Rodolfo Giometti <giometti@linux.it>
4*4882a593SmuzhiyunDescription:
5*4882a593Smuzhiyun		The /sys/class/c2port/ directory will contain files and
6*4882a593Smuzhiyun		directories that will provide a unified interface to
7*4882a593Smuzhiyun		the C2 port interface.
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunWhat:		/sys/class/c2port/c2portX
10*4882a593SmuzhiyunDate:		October 2008
11*4882a593SmuzhiyunContact:	Rodolfo Giometti <giometti@linux.it>
12*4882a593SmuzhiyunDescription:
13*4882a593Smuzhiyun		The /sys/class/c2port/c2portX/ directory is related to X-th
14*4882a593Smuzhiyun		C2 port into the system. Each directory will contain files to
15*4882a593Smuzhiyun		manage and control its C2 port.
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunWhat:		/sys/class/c2port/c2portX/access
18*4882a593SmuzhiyunDate:		October 2008
19*4882a593SmuzhiyunContact:	Rodolfo Giometti <giometti@linux.it>
20*4882a593SmuzhiyunDescription:
21*4882a593Smuzhiyun		The /sys/class/c2port/c2portX/access file enable the access
22*4882a593Smuzhiyun		to the C2 port from the system. No commands can be sent
23*4882a593Smuzhiyun		till this entry is set to 0.
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunWhat:		/sys/class/c2port/c2portX/dev_id
26*4882a593SmuzhiyunDate:		October 2008
27*4882a593SmuzhiyunContact:	Rodolfo Giometti <giometti@linux.it>
28*4882a593SmuzhiyunDescription:
29*4882a593Smuzhiyun		The /sys/class/c2port/c2portX/dev_id file show the device ID
30*4882a593Smuzhiyun		of the connected micro.
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunWhat:		/sys/class/c2port/c2portX/flash_access
33*4882a593SmuzhiyunDate:		October 2008
34*4882a593SmuzhiyunContact:	Rodolfo Giometti <giometti@linux.it>
35*4882a593SmuzhiyunDescription:
36*4882a593Smuzhiyun		The /sys/class/c2port/c2portX/flash_access file enable the
37*4882a593Smuzhiyun		access to the on-board flash of the connected micro.
38*4882a593Smuzhiyun		No commands can be sent till this entry is set to 0.
39*4882a593Smuzhiyun
40*4882a593SmuzhiyunWhat:		/sys/class/c2port/c2portX/flash_block_size
41*4882a593SmuzhiyunDate:		October 2008
42*4882a593SmuzhiyunContact:	Rodolfo Giometti <giometti@linux.it>
43*4882a593SmuzhiyunDescription:
44*4882a593Smuzhiyun		The /sys/class/c2port/c2portX/flash_block_size file show
45*4882a593Smuzhiyun		the on-board flash block size of the connected micro.
46*4882a593Smuzhiyun
47*4882a593SmuzhiyunWhat:		/sys/class/c2port/c2portX/flash_blocks_num
48*4882a593SmuzhiyunDate:		October 2008
49*4882a593SmuzhiyunContact:	Rodolfo Giometti <giometti@linux.it>
50*4882a593SmuzhiyunDescription:
51*4882a593Smuzhiyun		The /sys/class/c2port/c2portX/flash_blocks_num file show
52*4882a593Smuzhiyun		the on-board flash blocks number of the connected micro.
53*4882a593Smuzhiyun
54*4882a593SmuzhiyunWhat:		/sys/class/c2port/c2portX/flash_data
55*4882a593SmuzhiyunDate:		October 2008
56*4882a593SmuzhiyunContact:	Rodolfo Giometti <giometti@linux.it>
57*4882a593SmuzhiyunDescription:
58*4882a593Smuzhiyun		The /sys/class/c2port/c2portX/flash_data file export
59*4882a593Smuzhiyun		the content of the on-board flash of the connected micro.
60*4882a593Smuzhiyun
61*4882a593SmuzhiyunWhat:		/sys/class/c2port/c2portX/flash_erase
62*4882a593SmuzhiyunDate:		October 2008
63*4882a593SmuzhiyunContact:	Rodolfo Giometti <giometti@linux.it>
64*4882a593SmuzhiyunDescription:
65*4882a593Smuzhiyun		The /sys/class/c2port/c2portX/flash_erase file execute
66*4882a593Smuzhiyun		the "erase" command on the on-board flash of the connected
67*4882a593Smuzhiyun		micro.
68*4882a593Smuzhiyun
69*4882a593SmuzhiyunWhat:		/sys/class/c2port/c2portX/reset
70*4882a593SmuzhiyunDate:		October 2008
71*4882a593SmuzhiyunContact:	Rodolfo Giometti <giometti@linux.it>
72*4882a593SmuzhiyunDescription:
73*4882a593Smuzhiyun		The /sys/class/c2port/c2portX/reset file execute a "reset"
74*4882a593Smuzhiyun		command on the connected micro.
75*4882a593Smuzhiyun
76*4882a593SmuzhiyunWhat:		/sys/class/c2port/c2portX/rev_id
77*4882a593SmuzhiyunDate:		October 2008
78*4882a593SmuzhiyunContact:	Rodolfo Giometti <giometti@linux.it>
79*4882a593SmuzhiyunDescription:
80*4882a593Smuzhiyun		The /sys/class/c2port/c2portX/rev_id file show the revision ID
81*4882a593Smuzhiyun		of the connected micro.
82