Skip to content

Mmap wrapper#1

Open
lyrazhang wants to merge 7 commits into
masterfrom
mmap-wrapper
Open

Mmap wrapper#1
lyrazhang wants to merge 7 commits into
masterfrom
mmap-wrapper

Conversation

@lyrazhang
Copy link
Copy Markdown
Owner

my first pull request

Chunyan Zhang and others added 7 commits April 21, 2016 17:26
The trace data in this example can be decoded successfully.

Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
The channels 0~15 on Juno-r0 seem not permitted to be writen, this patch
also change the start channel of mmap from 0 to 32768.

The STM channel management policy will allocate the channels
automatically from all unused channels.  So if we want to mmap
from a non-zero channel, we have to config the channel range
manually, like below:

/ # mkdir /config/stp-policy/20100000.stm.abc
/ # mkdir /config/stp-policy/20100000.stm.abc/test
/ # echo 32768 65535 > config/stp-policy/20100000.stm.abc/test/channels

Here '32768' is just the channel number from which we want to mmap STM stimulus
space;  'test' is the policy name which we will use to mmap channel
area.

Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
This patch also removed enable_source, since closing the STM device will
turn off it automatically, so don't need to disable STM via sysfs
command.

Signed-off-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants