Commit e35d4427 authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman

atomisp: __SP is never defined so scrub this ifdef

Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0d93fe75
...@@ -23,11 +23,6 @@ ...@@ -23,11 +23,6 @@
#include <platform_support.h> #include <platform_support.h>
#include "ia_css_circbuf_comm.h" #include "ia_css_circbuf_comm.h"
#include "ia_css_circbuf_desc.h" #include "ia_css_circbuf_desc.h"
#ifdef __SP
#include "event_handler.sp.h"
/* We should not #define SP_FILE_ID here, because we are in a header file. */
#include "ia_css_sp_assert_level.sp.h"
#endif
/**************************************************************** /****************************************************************
* *
...@@ -287,11 +282,7 @@ STORAGE_CLASS_INLINE void ia_css_circbuf_write( ...@@ -287,11 +282,7 @@ STORAGE_CLASS_INLINE void ia_css_circbuf_write(
OP___assert(cb->desc != NULL); OP___assert(cb->desc != NULL);
/* Cannot continue as the queue is full*/ /* Cannot continue as the queue is full*/
#ifdef __SP
SP_ASSERT_FATAL(!ia_css_circbuf_is_full(cb));
#else
assert(!ia_css_circbuf_is_full(cb)); assert(!ia_css_circbuf_is_full(cb));
#endif
ia_css_circbuf_elem_cpy(&elem, &cb->elems[cb->desc->end]); ia_css_circbuf_elem_cpy(&elem, &cb->elems[cb->desc->end]);
......
...@@ -16,15 +16,6 @@ ...@@ -16,15 +16,6 @@
#include <assert_support.h> #include <assert_support.h>
#ifdef __SP
#include <hive_isp_css_sp_api_modified.h>
#include <ia_css_sp_file_id.sp.h>
#ifndef SP_FILE_ID
#define SP_FILE_ID SP_FILE_ID_CIRCBUF /* overrule default in ia_css_sp_assert_level.sp.h */
#endif
#include <ia_css_sp_assert_level.sp.h>
#endif
/********************************************************************** /**********************************************************************
* *
* Forward declarations. * Forward declarations.
...@@ -117,11 +108,7 @@ uint32_t ia_css_circbuf_pop(ia_css_circbuf_t *cb) ...@@ -117,11 +108,7 @@ uint32_t ia_css_circbuf_pop(ia_css_circbuf_t *cb)
uint32_t ret; uint32_t ret;
ia_css_circbuf_elem_t elem; ia_css_circbuf_elem_t elem;
#ifdef __SP
SP_ASSERT_FATAL(!ia_css_circbuf_is_empty(cb));
#else
assert(!ia_css_circbuf_is_empty(cb)); assert(!ia_css_circbuf_is_empty(cb));
#endif
/* read an element from the buffer */ /* read an element from the buffer */
elem = ia_css_circbuf_read(cb); elem = ia_css_circbuf_read(cb);
......
...@@ -209,13 +209,13 @@ STORAGE_CLASS_INLINE unsigned int ceil_pow2(unsigned int a) ...@@ -209,13 +209,13 @@ STORAGE_CLASS_INLINE unsigned int ceil_pow2(unsigned int a)
#endif /* !defined(PIPE_GENERATION) */ #endif /* !defined(PIPE_GENERATION) */
#if !defined(__ISP) && !defined(__SP) #if !defined(__ISP)
/* /*
* For SP and ISP, SDK provides the definition of OP_std_modadd. * For SP and ISP, SDK provides the definition of OP_std_modadd.
* We need it only for host * We need it only for host
*/ */
#define OP_std_modadd(base, offset, size) ((base+offset)%(size)) #define OP_std_modadd(base, offset, size) ((base+offset)%(size))
#endif /* !defined(__ISP) && !defined(__SP) */ #endif /* !defined(__ISP) */
#if !defined(__KERNEL__) #if !defined(__KERNEL__)
#define clamp(a, min_val, max_val) MIN(MAX((a), (min_val)), (max_val)) #define clamp(a, min_val, max_val) MIN(MAX((a), (min_val)), (max_val))
......
...@@ -347,7 +347,7 @@ struct ia_css_sp_info { ...@@ -347,7 +347,7 @@ struct ia_css_sp_info {
issue with the firmware struct/union's. issue with the firmware struct/union's.
More permanent solution will be to refactor this include. More permanent solution will be to refactor this include.
*/ */
#if !defined(__ISP) && !defined(__SP) #if !defined(__ISP)
/** Accelerator firmware information. /** Accelerator firmware information.
*/ */
struct ia_css_acc_info { struct ia_css_acc_info {
...@@ -458,7 +458,7 @@ struct ia_css_acc_fw { ...@@ -458,7 +458,7 @@ struct ia_css_acc_fw {
#define IA_CSS_EXT_ISP_MEM_OFFSETS(f) \ #define IA_CSS_EXT_ISP_MEM_OFFSETS(f) \
((const struct ia_css_memory_offsets *)((const char *)(f)+(f)->blob.mem_offsets)) ((const struct ia_css_memory_offsets *)((const char *)(f)+(f)->blob.mem_offsets))
#endif /* !defined(__ISP) && !defined(__SP) */ #endif /* !defined(__ISP) */
enum ia_css_sp_sleep_mode { enum ia_css_sp_sleep_mode {
SP_DISABLE_SLEEP_MODE = 0, SP_DISABLE_SLEEP_MODE = 0,
......
...@@ -47,7 +47,7 @@ enum ia_css_buffer_type { ...@@ -47,7 +47,7 @@ enum ia_css_buffer_type {
}; };
/* Driver API is not SP/ISP visible, 64 bit types not supported on hivecc */ /* Driver API is not SP/ISP visible, 64 bit types not supported on hivecc */
#if !defined(__SP) && !defined(__ISP) #if !defined(__ISP)
/** Buffer structure. This is a container structure that enables content /** Buffer structure. This is a container structure that enables content
* independent buffer queues and access functions. * independent buffer queues and access functions.
*/ */
...@@ -80,6 +80,6 @@ struct ia_css_buffer { ...@@ -80,6 +80,6 @@ struct ia_css_buffer {
void void
ia_css_dequeue_param_buffers(void); ia_css_dequeue_param_buffers(void);
#endif /* !__SP && !__ISP */ #endif /* !__ISP */
#endif /* __IA_CSS_BUFFER_H */ #endif /* __IA_CSS_BUFFER_H */
...@@ -146,13 +146,8 @@ more details. ...@@ -146,13 +146,8 @@ more details.
ISP_INPUT == IA_CSS_BINARY_INPUT_SENSOR ? 1 : \ ISP_INPUT == IA_CSS_BINARY_INPUT_SENSOR ? 1 : \
isp_online) isp_online)
#if defined(__SP)
#define ISP_DVS_ENVELOPE_WIDTH (ENABLE_DVS_ENVELOPE ? stage->dvs_envelope.width : 0)
#define ISP_DVS_ENVELOPE_HEIGHT (ENABLE_DVS_ENVELOPE ? stage->dvs_envelope.height : 0)
#else
#define ISP_DVS_ENVELOPE_WIDTH 0 #define ISP_DVS_ENVELOPE_WIDTH 0
#define ISP_DVS_ENVELOPE_HEIGHT 0 #define ISP_DVS_ENVELOPE_HEIGHT 0
#endif
#define _ISP_INPUT_WIDTH_VECS _ISP_VECS(ISP_INPUT_WIDTH) #define _ISP_INPUT_WIDTH_VECS _ISP_VECS(ISP_INPUT_WIDTH)
......
...@@ -35,7 +35,7 @@ more details. ...@@ -35,7 +35,7 @@ more details.
without this extra decl. */ without this extra decl. */
struct ia_css_3a_output; struct ia_css_3a_output;
#if defined(__ISP) || defined(__SP) #if defined(__ISP)
struct isp_uds_config { struct isp_uds_config {
int hive_dx; int hive_dx;
int hive_dy; int hive_dy;
......
...@@ -15,11 +15,8 @@ ...@@ -15,11 +15,8 @@
#ifndef _SH_CSS_DEFS_H_ #ifndef _SH_CSS_DEFS_H_
#define _SH_CSS_DEFS_H_ #define _SH_CSS_DEFS_H_
#if !defined(__SP1)
#include "isp.h" #include "isp.h"
#else
#include "system_local.h" /* to get IS_ISP_2500_SYSTEM for SP1*/
#endif
/*#include "vamem.h"*/ /* Cannot include for VAMEM properties this file is visible on ISP -> pipeline generator */ /*#include "vamem.h"*/ /* Cannot include for VAMEM properties this file is visible on ISP -> pipeline generator */
#include "math_support.h" /* max(), min, etc etc */ #include "math_support.h" /* max(), min, etc etc */
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include "ia_css_buffer.h" #include "ia_css_buffer.h"
#include "ia_css_binary.h" #include "ia_css_binary.h"
#if !defined(__ISP) && !defined(__SP) #if !defined(__ISP)
#include "sh_css_firmware.h" /* not needed/desired on SP/ISP */ #include "sh_css_firmware.h" /* not needed/desired on SP/ISP */
#endif #endif
#include "sh_css_legacy.h" #include "sh_css_legacy.h"
...@@ -557,12 +557,8 @@ struct sh_css_sp_pipeline { ...@@ -557,12 +557,8 @@ struct sh_css_sp_pipeline {
uint32_t running; /* needed for pipe termination */ uint32_t running; /* needed for pipe termination */
hrt_vaddress sp_stage_addr[SH_CSS_MAX_STAGES]; hrt_vaddress sp_stage_addr[SH_CSS_MAX_STAGES];
hrt_vaddress scaler_pp_lut; /* Early bound LUT */ hrt_vaddress scaler_pp_lut; /* Early bound LUT */
#ifndef __SP
uint32_t dummy; /* stage ptr is only used on sp but lives in uint32_t dummy; /* stage ptr is only used on sp but lives in
this struct; needs cleanup */ this struct; needs cleanup */
#else
struct sh_css_sp_stage *stage; /* Current stage for this pipeline */
#endif
int32_t num_execs; /* number of times to run if this is int32_t num_execs; /* number of times to run if this is
an acceleration pipe. */ an acceleration pipe. */
#if defined(SH_CSS_ENABLE_METADATA) #if defined(SH_CSS_ENABLE_METADATA)
...@@ -797,7 +793,7 @@ struct sh_css_hmm_buffer { ...@@ -797,7 +793,7 @@ struct sh_css_hmm_buffer {
* uint64_t does not exist on SP/ISP. * uint64_t does not exist on SP/ISP.
* Size of the struct is checked by sp.hive.c. * Size of the struct is checked by sp.hive.c.
*/ */
#if !defined(__SP) && !defined(__ISP) #if !defined(__ISP)
CSS_ALIGN(uint64_t cookie_ptr, 8); /* TODO: check if this alignment is needed */ CSS_ALIGN(uint64_t cookie_ptr, 8); /* TODO: check if this alignment is needed */
uint64_t kernel_ptr; uint64_t kernel_ptr;
#else #else
...@@ -1006,7 +1002,7 @@ sh_css_vprint(const char *fmt, va_list args) ...@@ -1006,7 +1002,7 @@ sh_css_vprint(const char *fmt, va_list args)
issue with the firmware struct/union's. issue with the firmware struct/union's.
More permanent solution will be to refactor this include. More permanent solution will be to refactor this include.
*/ */
#if !defined(__ISP) && !defined(__SP) #if !defined(__ISP)
hrt_vaddress hrt_vaddress
sh_css_params_ddr_address_map(void); sh_css_params_ddr_address_map(void);
...@@ -1114,6 +1110,6 @@ ia_css_get_crop_offsets( ...@@ -1114,6 +1110,6 @@ ia_css_get_crop_offsets(
struct ia_css_pipe *pipe, struct ia_css_pipe *pipe,
struct ia_css_frame_info *in_frame); struct ia_css_frame_info *in_frame);
#endif #endif
#endif /* !defined(__ISP) && !defined(__SP) */ #endif /* !defined(__ISP) */
#endif /* _SH_CSS_INTERNAL_H_ */ #endif /* _SH_CSS_INTERNAL_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment