mirror of https://gitee.com/openkylin/linux.git
media: atomisp: Replace last use of Intel MID APIs
Intel MID special header is not in use in this driver. Replace it with a better macro for now on. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
79317baaae
commit
e651cc385a
|
@ -250,6 +250,7 @@ const struct atomisp_camera_caps *atomisp_get_default_camera_caps(void);
|
|||
#define IS_MFLD __IS_SOC(INTEL_FAM6_ATOM_SALTWELL_MID)
|
||||
#define IS_BYT __IS_SOC(INTEL_FAM6_ATOM_SILVERMONT)
|
||||
#define IS_CHT __IS_SOC(INTEL_FAM6_ATOM_AIRMONT)
|
||||
#define IS_MRFD __IS_SOC(INTEL_FAM6_ATOM_SILVERMONT_MID)
|
||||
#define IS_MOFD __IS_SOC(INTEL_FAM6_ATOM_AIRMONT_MID)
|
||||
|
||||
/* Both CHT and MOFD come with ISP2401 */
|
||||
|
|
|
@ -33,8 +33,6 @@
|
|||
#include "atomisp_ioctl.h"
|
||||
#include "atomisp_acc.h"
|
||||
|
||||
#include <asm/intel-mid.h>
|
||||
|
||||
#include "ia_css_debug.h"
|
||||
#include "ia_css_isp_param.h"
|
||||
#include "sh_css_hrt.h"
|
||||
|
@ -1966,8 +1964,7 @@ void atomisp_css_input_set_mode(struct atomisp_sub_device *asd,
|
|||
true,
|
||||
0x13000,
|
||||
&size_mem_words) != 0) {
|
||||
if (intel_mid_identify_cpu() ==
|
||||
INTEL_MID_CPU_CHIP_TANGIER)
|
||||
if (IS_MRFD)
|
||||
size_mem_words = CSS_MIPI_FRAME_BUFFER_SIZE_2;
|
||||
else
|
||||
size_mem_words = CSS_MIPI_FRAME_BUFFER_SIZE_1;
|
||||
|
|
Loading…
Reference in New Issue