summaryrefslogtreecommitdiff
path: root/Documentation/ioctl/tegra_camera.txt
blob: 77dd66f404bb4dfa33c8b2603f40ce5b737c99b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
TEGRA_CAMERA_IOCTL_ENABLE:          enable clock
usage:
     uint clock_id;
     ioctl(fd, TEGRA_CAMERA_IOCTL_ENABLE , &clock_id);

     inputs:

     Clock ID

     outputs:      none

     error return:

     notes: a dummy ioctl for backward compatibility. Doesn't do anything.



TEGRA_CAMERA_IOCTL_DISABLE:          disable clock
usage:
     uint clock_id;
     ioctl(fd, TEGRA_CAMERA_IOCTL_DISABLE , &clock_id);

     inputs:

     Clock ID

     outputs:      none

     error return:

     notes: a dummy ioctl for backward compatibility. Doesn't do anything.

TEGRA_CAMERA_IOCTL_RESET:          reset clock
usage:
     uint clock_id;
     ioctl(fd, TEGRA_CAMERA_IOCTL_RESET , &clock_id);

     inputs:

     Clock ID

     outputs:      none

     error return:

     notes: a dummy ioctl for backward compatibility. Doesn't do anything.


TEGRA_CAMERA_IOCTL_CLK_SET_RATE:          set clock rate

struct tegra_camera_clk_info {
        uint id;
        uint clk_id;
        unsigned long rate;
        uint flag;
};

usage:
     tegra_camera_clk_info clock_info;
     ioctl(fd, TEGRA_CAMERA_IOCTL_CLK_SET_RATE , &clock_info);

     inputs:

     Information about the clock and new rate

     outputs:      none

     error return:
     EINVAL      - out of range input data