File tree Expand file tree Collapse file tree 1 file changed +27
-13
lines changed Expand file tree Collapse file tree 1 file changed +27
-13
lines changed Original file line number Diff line number Diff line change 13
13
running ustreamer (which starts webservice providing a camera stream):
14
14
'' ${pkgs.ustreamer}/bin/ustreamer --persistent --dv-timings
15
15
'' ;
16
+ lanes = lib . mkOption {
17
+ type = lib . types . enum [ 2 4 ] ;
18
+ default = 2 ;
19
+ description = ''
20
+ Number of CSI lanes available
21
+ '' ;
22
+ } ;
16
23
} ;
17
24
} ;
18
25
74
81
fragment@2 {
75
82
target = <0x03>;
76
83
77
- __overlay__ {
78
- data-lanes = <0x01 0x02>;
79
- };
84
+ ${ if cfg . lanes == 2 then ''
85
+ __overlay__ {
86
+ data-lanes = <0x01 0x02>;
87
+ };
88
+ '' else "" }
80
89
};
81
90
82
91
fragment@3 {
83
92
target = <0x03>;
84
93
85
- __dormant__ {
86
- data-lanes = <0x01 0x02 0x03 0x04>;
87
- };
94
+ ${ if cfg . lanes == 4 then ''
95
+ __overlay__ {
96
+ data-lanes = <0x01 0x02 0x03 0x04>;
97
+ };
98
+ '' else "" }
88
99
};
89
100
90
101
fragment@4 {
120
131
fragment@7 {
121
132
target = <0x02>;
122
133
123
- __overlay__ {
124
- data-lanes = <0x01 0x02>;
125
- };
134
+ ${ if cfg . lanes == 2 then ''
135
+ __overlay__ {
136
+ data-lanes = <0x01 0x02>;
137
+ };
138
+ '' else "" }
126
139
};
127
140
128
141
fragment@8 {
129
142
target = <0x02>;
130
143
131
- __dormant__ {
132
- data-lanes = <0x01 0x02 0x03 0x04>;
133
- };
144
+ ${ if cfg . lanes == 4 then ''
145
+ __overlay__ {
146
+ data-lanes = <0x01 0x02 0x03 0x04>;
147
+ };
148
+ '' else "" }
134
149
};
135
150
136
151
__overrides__ {
137
- 4lane = "\0\0\0\0-2+3-7+8";
138
152
link-frequency = [00 00 00 03 6c 69 6e 6b 2d 66 72 65 71 75 65 6e 63 69 65 73 23 30 00];
139
153
};
140
154
You can’t perform that action at this time.
0 commit comments