diff options
author | Ashish Singh <assingh@nvidia.com> | 2018-06-03 23:52:39 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-06-04 19:03:21 -0400 |
commit | 000406ecbe1d7bf0f3d2ff3df54b4c5ac7a9133e (patch) | |
tree | 1b79217193cd663eaf885ee16d92f68c2471b845 /include | |
parent | 6c74481d9258ffa773fb7f5573c31ea5263081de (diff) |
tegra: camera: rtcpu: update firmware api headers
tag fb0f0b6062f1b2e85ead86512e9f02a2fb6430d9
rtcpu@5c8eccb
5f17ea1 t194: Remove unused downscaler parameters
847d1a5 t194: Remove deprecated cap_desc and isp_program fields
Jira CAMC-599
Change-Id: Ifdf238444f9add5d6c34fe5b23edc0d38e58442c
Signed-off-by: Ashish Singh <assingh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1738803
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/soc/tegra/camrtc-capture.h | 139 |
1 files changed, 36 insertions, 103 deletions
diff --git a/include/soc/tegra/camrtc-capture.h b/include/soc/tegra/camrtc-capture.h index 1c00e6774..33c3448e2 100644 --- a/include/soc/tegra/camrtc-capture.h +++ b/include/soc/tegra/camrtc-capture.h | |||
@@ -979,16 +979,6 @@ struct stats_surface { | |||
979 | * | 979 | * |
980 | * @param surface_configs: surfaces related config details. | 980 | * @param surface_configs: surfaces related config details. |
981 | * | 981 | * |
982 | * @param surface_configs.tile_of_config_h: Horizontal tile overfetch | ||
983 | * configuration of RCE task submit driver. Information | ||
984 | * in this field must match configuration in ISP PB2. | ||
985 | * Deprecated, will be removed. | ||
986 | * | ||
987 | * @param surface_configs.tile_of_config_v: Vertical tile overfetch | ||
988 | * configuration of RCE task submit driver. Information | ||
989 | * in this field must match configuration in ISP PB2. | ||
990 | * Deprecated. will be removed | ||
991 | * | ||
992 | * @param surface_configs.mr_width: Width of input surface in pixels | 982 | * @param surface_configs.mr_width: Width of input surface in pixels |
993 | * | 983 | * |
994 | * @param surface_configs.mr_height: Height of input surface in pixels | 984 | * @param surface_configs.mr_height: Height of input surface in pixels |
@@ -1107,24 +1097,6 @@ struct isp_capture_descriptor { | |||
1107 | /** surfaces related configuration */ | 1097 | /** surfaces related configuration */ |
1108 | 1098 | ||
1109 | struct { | 1099 | struct { |
1110 | /** | ||
1111 | * DEPRECATED. Overfetch information will be moved to ISP program | ||
1112 | */ | ||
1113 | struct { | ||
1114 | uint8_t l_adj_of; | ||
1115 | uint8_t l_of; | ||
1116 | uint8_t r_adj_of; | ||
1117 | uint8_t r_of; | ||
1118 | } tile_of_config_h CAMRTC_DEPRECATED; | ||
1119 | |||
1120 | /** | ||
1121 | * DEPRECATED. Overfetch information will be moved of ISP program | ||
1122 | */ | ||
1123 | struct { | ||
1124 | uint16_t t_of; | ||
1125 | uint16_t b_of; | ||
1126 | } tile_of_config_v CAMRTC_DEPRECATED; | ||
1127 | |||
1128 | /** Input image resolution */ | 1100 | /** Input image resolution */ |
1129 | uint16_t mr_width; | 1101 | uint16_t mr_width; |
1130 | uint16_t mr_height; | 1102 | uint16_t mr_height; |
@@ -1189,7 +1161,7 @@ struct isp_capture_descriptor { | |||
1189 | struct capture_isp_status status; | 1161 | struct capture_isp_status status; |
1190 | 1162 | ||
1191 | /** Pad to aligned size */ | 1163 | /** Pad to aligned size */ |
1192 | uint32_t __pad[4]; | 1164 | uint32_t __pad[6]; |
1193 | } __CAPTURE_DESCRIPTOR_ALIGN; | 1165 | } __CAPTURE_DESCRIPTOR_ALIGN; |
1194 | 1166 | ||
1195 | /** | 1167 | /** |
@@ -1244,7 +1216,7 @@ struct isp5_downscaler_configbuf { | |||
1244 | * Lowest 16 bits - Width of destination image | 1216 | * Lowest 16 bits - Width of destination image |
1245 | */ | 1217 | */ |
1246 | uint32_t destsize; | 1218 | uint32_t destsize; |
1247 | } __CAPTURE_IVC_ALIGN; | 1219 | }; |
1248 | 1220 | ||
1249 | 1221 | ||
1250 | enum isp5_block_enabled { | 1222 | enum isp5_block_enabled { |
@@ -1279,73 +1251,6 @@ enum isp5_block_enabled { | |||
1279 | 1251 | ||
1280 | struct isp5_program | 1252 | struct isp5_program |
1281 | { | 1253 | { |
1282 | /** | ||
1283 | * Push buffer containing ISP settings related to this program. | ||
1284 | * No relocations will be done for this push buffer; all registers | ||
1285 | * that contain memory addresses that require relocation must be | ||
1286 | * specified in the capture descriptor ISP payload. | ||
1287 | * | ||
1288 | * NOTE : DO NOT move the pushbuffer[] array from the beginning of struct. | ||
1289 | * pushbuffer has to be ATOM aligned. Memory layout in isp_program_descriptor queue is, | ||
1290 | * isp5_program struct begins after every corresponding isp_program_descriptor entry. | ||
1291 | * isp_program_descriptor is guaranteed to be 64Byte aligned. So keeping this at beginning | ||
1292 | * ensures the alignement. Keeping pushbuffer else where in this array means, we have to | ||
1293 | * keep an eye on 64B alignment for pushbuffer. | ||
1294 | */ | ||
1295 | uint32_t pushbuffer[NVISP5_ISP_PROGRAM_PB_SIZE / sizeof(uint32_t)]; | ||
1296 | |||
1297 | /** | ||
1298 | * DEPRECATED. Frame size will come from input surface | ||
1299 | */ | ||
1300 | uint16_t frame_width CAMRTC_DEPRECATED; | ||
1301 | |||
1302 | /** | ||
1303 | * DEPRECATED. Frame size will come from input surface | ||
1304 | */ | ||
1305 | uint16_t frame_height CAMRTC_DEPRECATED; | ||
1306 | |||
1307 | /** | ||
1308 | * Tiles are divided to 3 groups. First, Middle and last | ||
1309 | * | ||
1310 | * tile_width_first : This holds width of very first tile. | ||
1311 | * tiles_width_middle : This holds width of all middle tiles. Can be more than 1. | ||
1312 | * | ||
1313 | * Falcon fw automatically calculates last tile width based on above 2 values. | ||
1314 | * Falcon fw automatically calculates last tile width based on above 2 values. | ||
1315 | * | ||
1316 | * DEPRECATED - moved to capture descriptor | ||
1317 | * | ||
1318 | */ | ||
1319 | uint16_t tile_width_first CAMRTC_DEPRECATED; | ||
1320 | |||
1321 | uint16_t tiles_width_middle CAMRTC_DEPRECATED; | ||
1322 | |||
1323 | /* | ||
1324 | * Slice height is now ISP channel attribute | ||
1325 | * DEPRECATED - moved to capture descriptor | ||
1326 | */ | ||
1327 | uint16_t tile_height CAMRTC_DEPRECATED; | ||
1328 | /** | ||
1329 | * Number of tiles in a slice is determined from image resolution and tile width | ||
1330 | * DEPRECATED - moved to capture descriptor | ||
1331 | */ | ||
1332 | uint8_t tiles_per_slice CAMRTC_DEPRECATED; | ||
1333 | /** | ||
1334 | * Number of slices is determined from image resolution and slice height | ||
1335 | * DEPRECATED - moved to capture descriptor | ||
1336 | */ | ||
1337 | uint8_t slices_per_frame CAMRTC_DEPRECATED; | ||
1338 | /** | ||
1339 | * DEPRECATED - moved to capture descriptor | ||
1340 | */ | ||
1341 | uint8_t frames_per_capture CAMRTC_DEPRECATED; | ||
1342 | |||
1343 | /** | ||
1344 | * | ||
1345 | * Settings ID for this ISP program | ||
1346 | */ | ||
1347 | uint8_t settings_id; | ||
1348 | uint8_t _pad0[2]; | ||
1349 | /* | 1254 | /* |
1350 | * Settings needed by RCE ISP driver to generate config buffer. | 1255 | * Settings needed by RCE ISP driver to generate config buffer. |
1351 | * Content and format of these fields is the same as corresponding | 1256 | * Content and format of these fields is the same as corresponding |
@@ -1399,12 +1304,24 @@ struct isp5_program | |||
1399 | uint32_t pushbuffer_size; | 1304 | uint32_t pushbuffer_size; |
1400 | 1305 | ||
1401 | /** | 1306 | /** |
1402 | * Downscaler configuration for DS[0-2] | 1307 | * Horizontal pixel increment for downscalers, in |
1308 | * U5.20 format. I.e. 2.5 means downscaling | ||
1309 | * by factor of 2.5. Corresponds to ISP_DM_H_PI register. | ||
1310 | * This is needed by ISP Falcon firmware to program | ||
1311 | * tile starting state correctly. | ||
1403 | */ | 1312 | */ |
1404 | uint8_t __pad[8]; | 1313 | union { |
1405 | struct isp5_downscaler_configbuf ds0; | 1314 | uint32_t ds0_pixel_incr_h; |
1406 | struct isp5_downscaler_configbuf ds1; | 1315 | struct isp5_downscaler_configbuf ds0 CAMRTC_DEPRECATED; |
1407 | struct isp5_downscaler_configbuf ds2; | 1316 | }; |
1317 | union { | ||
1318 | uint32_t ds1_pixel_incr_h; | ||
1319 | struct isp5_downscaler_configbuf ds1 CAMRTC_DEPRECATED; | ||
1320 | }; | ||
1321 | union { | ||
1322 | uint32_t ds2_pixel_incr_h; | ||
1323 | struct isp5_downscaler_configbuf ds2 CAMRTC_DEPRECATED; | ||
1324 | }; | ||
1408 | 1325 | ||
1409 | /** | 1326 | /** |
1410 | * Overfetch needed by this ISP program. | 1327 | * Overfetch needed by this ISP program. |
@@ -1447,7 +1364,23 @@ struct isp5_program | |||
1447 | uint8_t alignment; | 1364 | uint8_t alignment; |
1448 | uint8_t __pad1[2]; | 1365 | uint8_t __pad1[2]; |
1449 | } overfetch; | 1366 | } overfetch; |
1450 | uint32_t _pad1[4]; | 1367 | uint32_t _pad1[10]; |
1368 | |||
1369 | /** | ||
1370 | * Push buffer containing ISP settings related to this program. | ||
1371 | * No relocations will be done for this push buffer; all registers | ||
1372 | * that contain memory addresses that require relocation must be | ||
1373 | * specified in the capture descriptor ISP payload. | ||
1374 | */ | ||
1375 | uint32_t pushbuffer[NVISP5_ISP_PROGRAM_PB_SIZE / sizeof(uint32_t)] | ||
1376 | __CAPTURE_DESCRIPTOR_ALIGN; | ||
1377 | |||
1378 | } __CAPTURE_DESCRIPTOR_ALIGN; | ||
1379 | |||
1380 | |||
1381 | struct isp5_program_entry { | ||
1382 | struct isp_program_descriptor prog_desc; | ||
1383 | struct isp5_program isp_prog; | ||
1451 | } __CAPTURE_DESCRIPTOR_ALIGN; | 1384 | } __CAPTURE_DESCRIPTOR_ALIGN; |
1452 | 1385 | ||
1453 | #pragma GCC diagnostic ignored "-Wpadded" | 1386 | #pragma GCC diagnostic ignored "-Wpadded" |