aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorAlex Nixon <alex.nixon@citrix.com>2008-09-03 09:30:23 -0400
committerIngo Molnar <mingo@elte.hu>2008-09-05 11:44:08 -0400
commit913da64b54b2b3bb212a59aba2e6f2b8294ca1fa (patch)
treec7e715a2df32c8360bc568e274e4868640243e1b /net/lapb/lapb_out.c
parent5ab6d815dc23117cd9c5895cb9592824de3d4a68 (diff)
x86: build fix for !CONFIG_SMP
Move reset_lazy_tlbstate into tlb_32.c, and define noop versions of play_dead() in process_{32,64}.c when !CONFIG_SMP. Signed-off-by: Alex Nixon <alex.nixon@citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions
ces ---------- The C2 Interface main references are at (http://www.silabs.com) Silicon Laboratories site], see: - AN127: FLASH Programming via the C2 Interface at http://www.silabs.com/public/documents/tpub_doc/anote/Microcontrollers/Small_Form_Factor/en/an127.pdf, and - C2 Specification at http://www.silabs.com/public/documents/tpub_doc/spec/Microcontrollers/en/C2spec.pdf, however it 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 but extensions are easy to add. Using the driver ---------------- Once the driver is loaded you can use sysfs support to get C2port's info or read/write in-system flash. # ls /sys/class/c2port/c2port0/ access flash_block_size flash_erase rev_id dev_id flash_blocks_num flash_size subsystem/ flash_access flash_data reset uevent Initially the C2port access is disabled since you hardware may have such lines multiplexed with other devices so, to get access to the C2port, you need the command: # echo 1 > /sys/class/c2port/c2port0/access after that you should read the device ID and revision ID of the connected micro controller: # cat /sys/class/c2port/c2port0/dev_id 8 # cat /sys/class/c2port/c2port0/rev_id 1 However, for security reasons, the in-system flash access in not enabled yet, to do so you need the command: # echo 1 > /sys/class/c2port/c2port0/flash_access After that you can read the whole flash: # cat /sys/class/c2port/c2port0/flash_data > image erase it: # echo 1 > /sys/class/c2port/c2port0/flash_erase and write it: # cat image > /sys/class/c2port/c2port0/flash_data after writing you have to reset the device to execute the new code: # echo 1 > /sys/class/c2port/c2port0/reset