mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 20:23:57 +08:00
4e17e1db96
C2port implements a two wire serial communication protocol (bit banging) designed to enable in-system programming, debugging, and boundary-scan testing on low pin-count Silicon Labs devices. Currently this code supports only flash programming through sysfs interface but extensions shoud be easy to add. Signed-off-by: Rodolfo Giometti <giometti@linux.it> Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
89 lines
2.9 KiB
Plaintext
89 lines
2.9 KiB
Plaintext
What: /sys/class/c2port/
|
|
Date: October 2008
|
|
Contact: Rodolfo Giometti <giometti@linux.it>
|
|
Description:
|
|
The /sys/class/c2port/ directory will contain files and
|
|
directories that will provide a unified interface to
|
|
the C2 port interface.
|
|
|
|
What: /sys/class/c2port/c2portX
|
|
Date: October 2008
|
|
Contact: Rodolfo Giometti <giometti@linux.it>
|
|
Description:
|
|
The /sys/class/c2port/c2portX/ directory is related to X-th
|
|
C2 port into the system. Each directory will contain files to
|
|
manage and control its C2 port.
|
|
|
|
What: /sys/class/c2port/c2portX/access
|
|
Date: October 2008
|
|
Contact: Rodolfo Giometti <giometti@linux.it>
|
|
Description:
|
|
The /sys/class/c2port/c2portX/access file enable the access
|
|
to the C2 port from the system. No commands can be sent
|
|
till this entry is set to 0.
|
|
|
|
What: /sys/class/c2port/c2portX/dev_id
|
|
Date: October 2008
|
|
Contact: Rodolfo Giometti <giometti@linux.it>
|
|
Description:
|
|
The /sys/class/c2port/c2portX/dev_id file show the device ID
|
|
of the connected micro.
|
|
|
|
What: /sys/class/c2port/c2portX/flash_access
|
|
Date: October 2008
|
|
Contact: Rodolfo Giometti <giometti@linux.it>
|
|
Description:
|
|
The /sys/class/c2port/c2portX/flash_access file enable the
|
|
access to the on-board flash of the connected micro.
|
|
No commands can be sent till this entry is set to 0.
|
|
|
|
What: /sys/class/c2port/c2portX/flash_block_size
|
|
Date: October 2008
|
|
Contact: Rodolfo Giometti <giometti@linux.it>
|
|
Description:
|
|
The /sys/class/c2port/c2portX/flash_block_size file show
|
|
the on-board flash block size of the connected micro.
|
|
|
|
What: /sys/class/c2port/c2portX/flash_blocks_num
|
|
Date: October 2008
|
|
Contact: Rodolfo Giometti <giometti@linux.it>
|
|
Description:
|
|
The /sys/class/c2port/c2portX/flash_blocks_num file show
|
|
the on-board flash blocks number of the connected micro.
|
|
|
|
What: /sys/class/c2port/c2portX/flash_data
|
|
Date: October 2008
|
|
Contact: Rodolfo Giometti <giometti@linux.it>
|
|
Description:
|
|
The /sys/class/c2port/c2portX/flash_data file export
|
|
the content of the on-board flash of the connected micro.
|
|
|
|
What: /sys/class/c2port/c2portX/flash_erase
|
|
Date: October 2008
|
|
Contact: Rodolfo Giometti <giometti@linux.it>
|
|
Description:
|
|
The /sys/class/c2port/c2portX/flash_erase file execute
|
|
the "erase" command on the on-board flash of the connected
|
|
micro.
|
|
|
|
What: /sys/class/c2port/c2portX/flash_erase
|
|
Date: October 2008
|
|
Contact: Rodolfo Giometti <giometti@linux.it>
|
|
Description:
|
|
The /sys/class/c2port/c2portX/flash_erase file show the
|
|
on-board flash size of the connected micro.
|
|
|
|
What: /sys/class/c2port/c2portX/reset
|
|
Date: October 2008
|
|
Contact: Rodolfo Giometti <giometti@linux.it>
|
|
Description:
|
|
The /sys/class/c2port/c2portX/reset file execute a "reset"
|
|
command on the connected micro.
|
|
|
|
What: /sys/class/c2port/c2portX/rev_id
|
|
Date: October 2008
|
|
Contact: Rodolfo Giometti <giometti@linux.it>
|
|
Description:
|
|
The /sys/class/c2port/c2portX/rev_id file show the revision ID
|
|
of the connected micro.
|