1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Support for Intel Camera Imaging ISP subsystem. 4 * Copyright (c) 2015, Intel Corporation. 5 */ 6 7 #include "ia_css_properties.h" 8 #include <assert_support.h> 9 #include "ia_css_types.h" 10 #include "gdc_device.h" 11 12 void ia_css_get_properties(struct ia_css_properties * properties)13ia_css_get_properties(struct ia_css_properties *properties) 14 { 15 assert(properties); 16 /* 17 * MW: We don't want to store the coordinates 18 * full range in memory: Truncate 19 */ 20 properties->gdc_coord_one = gdc_get_unity(GDC0_ID) / HRT_GDC_COORD_SCALE; 21 22 properties->l1_base_is_index = true; 23 24 properties->vamem_type = IA_CSS_VAMEM_TYPE_2; 25 } 26