forked from phlizik/x5hd2-drivers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.mak
1047 lines (966 loc) · 31.5 KB
/
base.mak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
CFG_HI_SDK_VERSION="HiSTBLinuxV100R002C00SPC020"
SDK_CFGFILE=cfg.mak
include $(SDK_DIR)/$(SDK_CFGFILE)
#=============SDK_DIR======================================================================
CFGS_DIR=${SDK_DIR}/configs
PUB_DIR=${SDK_DIR}/pub
SAMPLE_DIR=${SDK_DIR}/sample
SCRIPTS_DIR=${SDK_DIR}/scripts
SOURCE_DIR=${SDK_DIR}/source
TOOLS_DIR=${SDK_DIR}/tools/linux
CFG_HI_BASE_ENV=" SDK_DIR CFGS_DIR PUB_DIR SAMPLE_DIR SCRIPTS_DIR SOURCE_DIR TOOLS_DIR "
#=============SRC_DIR======================================================================
MSP_DIR=${SOURCE_DIR}/msp
COMPONENT_DIR=${SOURCE_DIR}/component
ROOTFS_SRC_DIR=${SOURCE_DIR}/rootfs
BOOT_DIR=${SOURCE_DIR}/boot
KERNEL_DIR=${SOURCE_DIR}/kernel
COMMON_DIR=${SOURCE_DIR}/common
CFG_HI_BASE_ENV+=" MSP_DIR COMPONET_DIR ROOTFS_SRC_DIR BOOT_DIR KERNEL_DIR COMMON_DIR "
#=============INCLUDE_DIR==================================================================
MSP_UNF_INCLUDE=${MSP_DIR}/include
MSP_API_INCLUDE=${MSP_DIR}/api/include
MSP_DRV_INCLUDE=${MSP_DIR}/drv/include
COMMON_UNF_INCLUDE=${COMMON_DIR}/include
COMMON_API_INCLUDE=${COMMON_DIR}/api/include
COMMON_DRV_INCLUDE=${COMMON_DIR}/drv/include
CFG_HI_BASE_ENV+=" MSP_UNF_INCLUDE MSP_API_INCLUDE MSP_DRV_INCLUDE "
CFG_HI_BASE_ENV+=" COMMON_UNF_INCLUDE COMMON_API_INCLUDE COMMON_DRV_INCLUDE "
#=============PUB_DIR======================================================================
ROOTBOX_DIR=${PUB_DIR}/rootbox
IMAGE_DIR=${PUB_DIR}/image
#INCLUDE_DIR=${PUB_DIR}/include
#LIB_DIR=${PUB_DIR}/lib
#STATIC_LIB_DIR=${LIB_DIR}/static
#SHARED_LIB_DIR=${LIB_DIR}/share
#EXTERN_LIB_DIR=${LIB_DIR}/extern
MODULE_DIR=${PUB_DIR}/kmod
ROOTFS_DIR=${PUB_DIR}/rootfs
BIN_DIR=${PUB_DIR}/bin
APP_DIR=${PUB_DIR}/app
CFG_HI_BASE_ENV+=" IMAGE_DIR INCLUDE_DIR LIB_DIR STATIC_LIB_DIR SHARED_LIB_DIR EXTERN_LIB_DIR "
CFG_HI_BASE_ENV+=" MODULE_DIR ROOTFS_DIR ROOTBOX_DIR BIN_DIR APP_DIR ROOTBOX_DIR "
#=============LINUX_DIR====================================================================
LINUX_DIR=${KERNEL_SRC}
CFG_HI_BASE_ENV+=" LINUX_DIR "
#=============TOOL CHAINS===================================================================
#AR=${CFG_HI_TOOLCHAINS_NAME}-ar
#AS=${CFG_HI_TOOLCHAINS_NAME}-as
#LD=${CFG_HI_TOOLCHAINS_NAME}-ld
#CPP=${CFG_HI_TOOLCHAINS_NAME}-cpp
#CC=${CFG_HI_TOOLCHAINS_NAME}-gcc
#NM=${CFG_HI_TOOLCHAINS_NAME}-nm
#STRIP=${CFG_HI_TOOLCHAINS_NAME}-strip
#OBJCOPY=${CFG_HI_TOOLCHAINS_NAME}-objcopy
#OBJDUMP=${CFG_HI_TOOLCHAINS_NAME}-objdump
#CFG_HI_BASE_ENV+=" AR AS LD CPP CC NM STRIP OBJCOPY OBJDUMP "
#=============SERVER_UNTILS=================================================================
SERVER_UNTILS_DIR=${TOOLS_DIR}/utils
MKIMAGE=${SERVER_UNTILS_DIR}/mkimage
MKCRAMFS=${SERVER_UNTILS_DIR}/mkfs.cramfs
MKEXT2FS=${SERVER_UNTILS_DIR}/genext2fs
TUNE2FS=${SERVER_UNTILS_DIR}/tune2fs
E2FSCK=${SERVER_UNTILS_DIR}/e2fsck
MKSQUASHFS=${SERVER_UNTILS_DIR}/mksquashfs
MKJFFS2=${SERVER_UNTILS_DIR}/mkfs.jffs2
ifeq ($(CFG_HI_CHIP_TYPE),hi3716cv200es)
MKYAFFS=${SERVER_UNTILS_DIR}/mkyaffs2image504
else
MKYAFFS=${SERVER_UNTILS_DIR}/mkyaffs2image610
endif
MKUBIIMG=${SERVER_UNTILS_DIR}/mkubiimg.sh
FILECAP=${SERVER_UNTILS_DIR}/filecap
SCP=${SERVER_UNTILS_DIR}/cp
SRM=${SERVER_UNTILS_DIR}/rm
CFG_HI_BASE_ENV+=" MKIMAGE MKCRAMFS MKEXT2FS TUNE2FS E2FSCK MKSQUASHFS MKJFFS2 FILECAP SCP SRM "
#==============COMPILE TOOLS=================================================================
CROSS_COMPILE=$(CFG_HI_TOOLCHAINS_NAME)-
CFG_HI_BASE_ENV+=" CROSS_COMPILE "
#==============LIB COMPILE OPTIONS================================================================
#3. export CFG_HI_CFLAGS
CFG_HI_CFLAGS :=
ifeq (${CFG_HI_TOOLCHAINS_NAME},arm-hisiv200-linux)
# CFG_HI_CFLAGS+=-march=armv7-a -mcpu=cortex-a9 -mfloat-abi=softfp -mfpu=vfpv3-d16
endif
ifeq ($(CFG_HI_OPTM_SIZE_SUPPORT),y)
CFG_HI_CFLAGS+= -c -Os -ffunction-sections -Wall -DUSE_AEC -D_GNU_SOURCE -D_XOPEN_SOURCE=600
else
CFG_HI_CFLAGS+= -c -O2 -Wall -DUSE_AEC -D_GNU_SOURCE -D_XOPEN_SOURCE=600
endif
ifndef CFG_HI_STATIC_LIB_ONLY
CFG_HI_CFLAGS+= -fPIC
endif
#ifeq (${CFG_HI_MCE_SUPPORT},y)
#CFG_HI_CFLAGS+=-DMCE_SUPPORT
#endif
ifeq ($(CFG_HI_MSP_BUILDIN),y)
CFG_MSP_BUILDTYPE := y
else
CFG_MSP_BUILDTYPE := m
endif
#CFG_HI_CFLAGS+= -I${MSP_UNF_INCLUDE} -I${MSP_API_INCLUDE} -I${MSP_DRV_INCLUDE} -I${COMMON_UNF_INCLUDE} -I${COMMON_API_INCLUDE} -I${COMMON_DRV_INCLUDE}
CFG_HI_CFLAGS+= -DCHIP_TYPE_${CFG_HI_CHIP_TYPE} -DSDK_VERSION=${CFG_HI_SDK_VERSION}
## common and other modules will use hi_debug.h, which refers to the HI_LOG_LEVEL
ifeq (y,$(CFG_HI_LOG_SUPPORT))
CFG_HI_CFLAGS += -DHI_LOG_SUPPORT=1
ifdef CFG_HI_LOG_LEVEL
CFG_HI_CFLAGS += -DHI_LOG_LEVEL=$(CFG_HI_LOG_LEVEL)
else
CFG_HI_CFLAGS += -DHI_LOG_LEVEL=1
endif
ifeq (y,$(CFG_HI_LOG_NETWORK_SUPPORT))
CFG_HI_CFLAGS += -DLOG_NETWORK_SUPPORT
endif
ifeq (y,$(CFG_HI_LOG_UDISK_SUPPORT))
CFG_HI_CFLAGS += -DLOG_UDISK_SUPPORT
endif
else
CFG_HI_CFLAGS += -DHI_LOG_SUPPORT=0
endif
ifeq (y,$(CFG_HI_PROC_SUPPORT))
CFG_HI_CFLAGS += -DHI_PROC_SUPPORT=1
else
CFG_HI_CFLAGS += -DHI_PROC_SUPPORT=0
endif
## common api and msp_deubg will use these macro
ifeq (y,$(CFG_HI_MEMMGR_SUPPORT))
CFG_HI_CFLAGS += -DCMN_MMGR_SUPPORT
endif
ifeq (y,$(CFG_HI_VI_SUPPORT))
CFG_HI_CFLAGS += -DHI_VI_SUPPORT
endif
ifeq (y,$(CFG_HI_VENC_SUPPORT))
CFG_HI_CFLAGS += -DHI_VENC_SUPPORT
endif
ifeq ($(CFG_HI_ADVCA_SUPPORT),y)
CFG_HI_CFLAGS += -DHI_ADVCA_SUPPORT
CFG_HI_CFLAGS += -DHI_ADVCA_TYPE_$(CFG_HI_ADVCA_TYPE)
ifdef CFG_HI_ADVCA_FUNCTION
ifeq ($(CFG_HI_ADVCA_FUNCTION),FINAL)
CFG_HI_CFLAGS += -DHI_ADVCA_FUNCTION_RELEASE
else
CFG_HI_CFLAGS += -DHI_ADVCA_FUNCTION_$(CFG_HI_ADVCA_FUNCTION)
endif
endif
endif
#=============KERNEL MODULE COMPILE OPTIONS=====================================================
CFG_HI_KMOD_CFLAGS :=
CFG_HI_KMOD_CFLAGS += -DCHIP_TYPE_${CFG_HI_CHIP_TYPE} -DSDK_VERSION=${CFG_HI_SDK_VERSION}
AT :=
ifeq ($(CFG_HI_KEYLED_CT1642_KERNEL_SUPPORT),y)
CFG_HI_KMOD_CFLAGS += -DHI_KEYLED_CT1642_KERNEL_SUPPORT
endif
ifeq ($(CFG_HI_MCE_SUPPORT),y)
CFG_HI_KMOD_CFLAGS += -DHI_MCE_SUPPORT
endif
ifeq ($(CFG_HI_GPIOI2C_SUPPORT),y)
CFG_HI_KMOD_CFLAGS += -DHI_GPIOI2C_SUPPORT
endif
## common and other modules will use drv_mem_ext.h, which refer to the CMN_MMGR_SUPPORT
ifeq (y,$(CFG_HI_MEMMGR_SUPPORT))
CFG_HI_KMOD_CFLAGS += -DCMN_MMGR_SUPPORT
endif
## common and other modules will use hi_debug.h, which refers to the HI_LOG_LEVEL
ifeq (y,$(CFG_HI_LOG_SUPPORT))
CFG_HI_KMOD_CFLAGS += -DHI_LOG_SUPPORT=1
ifdef CFG_HI_LOG_LEVEL
CFG_HI_KMOD_CFLAGS += -DHI_LOG_LEVEL=$(CFG_HI_LOG_LEVEL)
else
CFG_HI_KMOD_CFLAGS += -DHI_LOG_LEVEL=1
endif
else
CFG_HI_KMOD_CFLAGS += -DHI_LOG_SUPPORT=0
endif
ifeq (y,$(CFG_HI_PROC_SUPPORT))
CFG_HI_KMOD_CFLAGS += -DHI_PROC_SUPPORT=1
else
CFG_HI_KMOD_CFLAGS += -DHI_PROC_SUPPORT=0
endif
ifeq ($(CFG_HI_LOADER_APPLOADER),y)
CFG_HI_KMOD_CFLAGS += -DHI_LOADER_APPLOADER
endif
ifeq ($(CFG_HI_LOADER_RECOVERY),y)
CFG_HI_KMOD_CFLAGS += -DHI_LOADER_RECOVERY
endif
ifeq ($(CFG_HI_KEYLED_SUPPORT),y)
CFG_HI_KMOD_CFLAGS += -DHI_KEYLED_SUPPORT
endif
ifeq ($(CFG_HI_HDMI_SUPPORT_HDCP),y)
CFG_HI_KMOD_CFLAGS += -DHI_HDCP_SUPPORT
endif
ifeq ($(CFG_HI_SCI_SUPPORT),y)
CFG_HI_KMOD_CFLAGS += -DHI_SCI_SUPPORT
endif
ifeq ($(CFG_HI_VI_SUPPORT),y)
CFG_HI_KMOD_CFLAGS += -DHI_VI_SUPPORT
endif
ifeq ($(CFG_HI_VENC_SUPPORT),y)
CFG_HI_KMOD_CFLAGS += -DHI_VENC_SUPPORT
endif
ifeq ($(CFG_HI_AENC_SUPPORT),y)
CFG_HI_KMOD_CFLAGS += -DHI_AENC_SUPPORT
endif
#=============BOARD CONFIGURATION OPTIONS=====================================================
CFG_HI_BOARD_CONFIGS :=
#=============TUNER BASIC ATTRIBUTE OPTIONS===================
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_NUMBER=$(CFG_HI_TUNER_NUMBER)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER0_ID=0
ifeq ($(CFG_HI_TUNER_SIGNAL_CAB),y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_SIGNAL_TYPE=0
endif
ifeq ($(CFG_HI_TUNER_SIGNAL_SAT),y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_SIGNAL_TYPE=1
endif
ifeq ($(CFG_HI_TUNER_SIGNAL_DVB_T),y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_SIGNAL_TYPE=2
endif
ifeq ($(CFG_HI_TUNER_SIGNAL_DVB_T2),y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_SIGNAL_TYPE=3
endif
ifeq ($(CFG_HI_TUNER_SIGNAL_ISDB_T),y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_SIGNAL_TYPE=4
endif
ifeq ($(CFG_HI_TUNER_SIGNAL_ATSC_T),y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_SIGNAL_TYPE=5
endif
ifeq ($(CFG_HI_TUNER_SIGNAL_DTMB),y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_SIGNAL_TYPE=6
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_XG_3BL},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=0
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_CD1616},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=1
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_ALPS_TDAE},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=2
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_TDCC},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=3
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_TDA18250},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=4
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_CD1616_DOUBLE},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=5
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_MT2081},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=6
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_TMX7070X},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=7
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_R820C},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=8
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_MXL203},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=9
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_AV2011},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=10
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_SHARP7903},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=11
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_MXL101},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=12
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_MXL603},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=13
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_IT9170},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=14
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_IT9133},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=15
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_TDA6651},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=16
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_TDA18250B},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=17
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_M88TS2022},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=18
endif
ifeq (${CFG_HI_TUNER_DEV_TYPE_RDA5815},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TYPE=19
endif
ifneq (${CFG_HI_TUNER_DEV_ADDR},)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_DEV_ADDR=${CFG_HI_TUNER_DEV_ADDR}
else
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_DEV_ADDR=0xc6
endif
ifeq (${CFG_HI_DEMOD_DEV_TYPE_NONE},y)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_TYPE=0
endif
ifeq (${CFG_HI_DEMOD_DEV_TYPE_3130I},y)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_TYPE=256
endif
ifeq (${CFG_HI_DEMOD_DEV_TYPE_3130E},y)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_TYPE=257
endif
ifeq (${CFG_HI_DEMOD_DEV_TYPE_J83B},y)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_TYPE=258
endif
ifeq (${CFG_HI_DEMOD_DEV_TYPE_AVL6211},y)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_TYPE=259
endif
ifeq (${CFG_HI_DEMOD_DEV_TYPE_MXL101},y)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_TYPE=260
endif
ifeq (${CFG_HI_DEMOD_DEV_TYPE_MN88472},y)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_TYPE=261
endif
ifeq (${CFG_HI_DEMOD_DEV_TYPE_IT9170},y)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_TYPE=262
endif
ifeq (${CFG_HI_DEMOD_DEV_TYPE_IT9133},y)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_TYPE=263
endif
ifeq (${CFG_HI_DEMOD_DEV_TYPE_3136},y)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_TYPE=264
endif
ifeq (${CFG_HI_DEMOD_DEV_TYPE_3136I},y)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_TYPE=265
endif
ifneq (${CFG_HI_DEMOD_DEV_ADDR},)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_DEV_ADDR=${CFG_HI_DEMOD_DEV_ADDR}
else
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_DEV_ADDR=0xb6
endif
ifeq (${CFG_HI_DEMOD_TS_DEFAULT},y)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_TS_MODE=0
endif
ifeq (${CFG_HI_DEMOD_TS_PARALLEL_MODE_A},y)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_TS_MODE=1
endif
ifeq (${CFG_HI_DEMOD_TS_PARALLEL_MODE_B},y)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_TS_MODE=2
endif
ifeq (${CFG_HI_DEMOD_TS_SERIAL},y)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_TS_MODE=3
endif
ifeq (${CFG_HI_DEMOD_TS_SERIAL_50},y)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_TS_MODE=4
endif
ifeq (${CFG_HI_DEMOD_TS_SERIAL_2BIT},y)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_TS_MODE=5
endif
ifneq (${CFG_HI_DEMOD_I2C_CHANNEL},)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_I2C_CHANNEL=${CFG_HI_DEMOD_I2C_CHANNEL}
else
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_I2C_CHANNEL=1
endif
ifneq (${CFG_HI_DEMOD_RESET_GPIO},)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_RESET_GPIO=${CFG_HI_DEMOD_RESET_GPIO}
else
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_RESET_GPIO=0
endif
ifneq (${CFG_HI_DEMUX_PORT},)
CFG_HI_BOARD_CONFIGS += -DHI_DEMUX_PORT=${CFG_HI_DEMUX_PORT}
else
CFG_HI_BOARD_CONFIGS += -DHI_DEMUX_PORT=0
endif
#=============TUNER SATELLITE ATTRIBUTE OPTIONS===================
ifneq (${CFG_HI_DEMOD_REF_CLOCK},)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_REF_CLOCK=${CFG_HI_DEMOD_REF_CLOCK}
else
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD_REF_CLOCK=24000
endif
ifneq (${CFG_HI_TUNER_MAX_LPF},)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_MAX_LPF=${CFG_HI_TUNER_MAX_LPF}
else
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_MAX_LPF=34
endif
ifneq (${CFG_HI_TUNER_I2C_CLOCK},)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_I2C_CLOCK=${CFG_HI_TUNER_I2C_CLOCK}
else
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_I2C_CLOCK=400
endif
ifeq (${CFG_HI_TUNER_RFAGC_INVERT},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_RFAGC=0
endif
ifeq (${CFG_HI_TUNER_RFAGC_NORMAL},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_RFAGC=1
endif
ifeq (${CFG_HI_TUNER_IQSPECTRUM_NORMAL},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_IQSPECTRUM=0
endif
ifeq (${CFG_HI_TUNER_IQSPECTRUM_INVERT},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_IQSPECTRUM=1
endif
ifeq (${CFG_HI_TUNER_TSCLK_POLAR_FALLING},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TSCLK_POLAR=0
endif
ifeq (${CFG_HI_TUNER_TSCLK_POLAR_RISING},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TSCLK_POLAR=1
endif
ifeq (${CFG_HI_TUNER_TS_FORMAT_TS},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TS_FORMAT=0
endif
ifeq (${CFG_HI_TUNER_TS_FORMAT_TSP},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TS_FORMAT=1
endif
ifeq (${CFG_HI_TUNER_TS_SERIAL_PIN_0},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TS_SERIAL_PIN=0
endif
ifeq (${CFG_HI_TUNER_TS_SERIAL_PIN_7},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_TS_SERIAL_PIN=1
endif
ifeq (${CFG_HI_TUNER_DISEQCWAVE_NORMAL},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_DISEQCWAVE=0
endif
ifeq (${CFG_HI_TUNER_DISEQCWAVE_ENVELOPE},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_DISEQCWAVE=1
endif
ifeq (${CFG_HI_LNBCTRL_DEV_TYPE_NONE},y)
CFG_HI_BOARD_CONFIGS += -DHI_LNBCTRL_DEV_TYPE=0
endif
ifeq (${CFG_HI_LNBCTRL_DEV_TYPE_MPS8125},y)
CFG_HI_BOARD_CONFIGS += -DHI_LNBCTRL_DEV_TYPE=1
endif
ifeq (${CFG_HI_LNBCTRL_DEV_TYPE_ISL9492},y)
CFG_HI_BOARD_CONFIGS += -DHI_LNBCTRL_DEV_TYPE=2
endif
ifneq (${CFG_HI_LNBCTRL_DEV_ADDR},)
CFG_HI_BOARD_CONFIGS += -DHI_LNBCTRL_DEV_ADDR=${CFG_HI_LNBCTRL_DEV_ADDR}
else
CFG_HI_BOARD_CONFIGS += -DHI_LNBCTRL_DEV_ADDR=0x0
endif
#=============TUNER TSOUT OPTIONS===================
ifeq (${CFG_HI_TUNER_OUTPUT_PIN0_TSDAT0},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN0=0
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN0_TSDAT1},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN0=1
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN0_TSDAT2},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN0=2
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN0_TSDAT3},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN0=3
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN0_TSDAT4},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN0=4
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN0_TSDAT5},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN0=5
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN0_TSDAT6},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN0=6
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN0_TSDAT7},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN0=7
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN0_TSVLD},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN0=8
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN0_TSSYNC},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN0=9
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN0_TSERR},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN0=10
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN1_TSDAT0},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN1=0
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN1_TSDAT1},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN1=1
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN1_TSDAT2},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN1=2
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN1_TSDAT3},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN1=3
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN1_TSDAT4},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN1=4
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN1_TSDAT5},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN1=5
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN1_TSDAT6},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN1=6
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN1_TSDAT7},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN1=7
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN1_TSVLD},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN1=8
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN1_TSSYNC},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN1=9
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN1_TSERR},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN1=10
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN2_TSDAT0},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN2=0
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN2_TSDAT1},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN2=1
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN2_TSDAT2},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN2=2
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN2_TSDAT3},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN2=3
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN2_TSDAT4},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN2=4
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN2_TSDAT5},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN2=5
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN2_TSDAT6},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN2=6
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN2_TSDAT7},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN2=7
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN2_TSVLD},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN2=8
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN2_TSSYNC},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN2=9
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN2_TSERR},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN2=10
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN3_TSDAT0},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN3=0
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN3_TSDAT1},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN3=1
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN3_TSDAT2},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN3=2
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN3_TSDAT3},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN3=3
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN3_TSDAT4},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN3=4
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN3_TSDAT5},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN3=5
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN3_TSDAT6},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN3=6
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN3_TSDAT7},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN3=7
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN3_TSVLD},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN3=8
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN3_TSSYNC},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN3=9
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN3_TSERR},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN3=10
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN4_TSDAT0},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN4=0
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN4_TSDAT1},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN4=1
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN4_TSDAT2},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN4=2
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN4_TSDAT3},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN4=3
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN4_TSDAT4},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN4=4
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN4_TSDAT5},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN4=5
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN4_TSDAT6},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN4=6
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN4_TSDAT7},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN4=7
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN4_TSVLD},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN4=8
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN4_TSSYNC},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN4=9
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN4_TSERR},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN4=10
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN5_TSDAT0},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN5=0
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN5_TSDAT1},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN5=1
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN5_TSDAT2},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN5=2
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN5_TSDAT3},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN5=3
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN5_TSDAT4},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN5=4
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN5_TSDAT5},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN5=5
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN5_TSDAT6},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN5=6
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN5_TSDAT7},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN5=7
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN5_TSVLD},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN5=8
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN5_TSSYNC},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN5=9
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN5_TSERR},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN5=10
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN6_TSDAT0},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN6=0
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN6_TSDAT1},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN6=1
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN6_TSDAT2},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN6=2
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN6_TSDAT3},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN6=3
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN6_TSDAT4},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN6=4
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN6_TSDAT5},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN6=5
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN6_TSDAT6},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN6=6
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN6_TSDAT7},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN6=7
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN6_TSVLD},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN6=8
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN6_TSSYNC},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN6=9
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN6_TSERR},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN6=10
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN7_TSDAT0},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN7=0
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN7_TSDAT1},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN7=1
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN7_TSDAT2},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN7=2
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN7_TSDAT3},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN7=3
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN7_TSDAT4},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN7=4
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN7_TSDAT5},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN7=5
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN7_TSDAT6},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN7=6
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN7_TSDAT7},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN7=7
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN7_TSVLD},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN7=8
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN7_TSSYNC},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN7=9
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN7_TSERR},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN7=10
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN8_TSDAT0},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN8=0
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN8_TSDAT1},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN8=1
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN8_TSDAT2},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN8=2
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN8_TSDAT3},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN8=3
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN8_TSDAT4},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN8=4
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN8_TSDAT5},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN8=5
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN8_TSDAT6},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN8=6
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN8_TSDAT7},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN8=7
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN8_TSVLD},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN8=8
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN8_TSSYNC},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN8=9
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN8_TSERR},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN8=10
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN9_TSDAT0},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN9=0
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN9_TSDAT1},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN9=1
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN9_TSDAT2},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN9=2
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN9_TSDAT3},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN9=3
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN9_TSDAT4},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN9=4
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN9_TSDAT5},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN9=5
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN9_TSDAT6},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN9=6
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN9_TSDAT7},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN9=7
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN9_TSVLD},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN9=8
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN9_TSSYNC},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN9=9
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN9_TSERR},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN9=10
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN10_TSDAT0},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN10=0
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN10_TSDAT1},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN10=1
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN10_TSDAT2},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN10=2
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN10_TSDAT3},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN10=3
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN10_TSDAT4},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN10=4
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN10_TSDAT5},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN10=5
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN10_TSDAT6},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN10=6
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN10_TSDAT7},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN10=7
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN10_TSVLD},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN10=8
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN10_TSSYNC},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN10=9
endif
ifeq (${CFG_HI_TUNER_OUTPUT_PIN10_TSERR},y)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER_OUTPUT_PIN10=10
endif
ifeq ($(CFG_HI_TUNER1_SIGNAL_TYPE), cable)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_SIGNAL_TYPE=0
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), xg_3bl)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=0
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), cd1616)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=1
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), alps_tdae)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=2
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), tdcc)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=3
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), tda18250)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=4
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), cd1616_double)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=5
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), mt2081)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=6
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), tmx7070x)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=7
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), r820c)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=8
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), mxl203)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=9
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), av2011)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=10
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), sharp7903)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=11
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), mxl101)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=12
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), mxl603)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=13
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), it9170)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=14
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), it9133)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=15
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), tda6651)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=16
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), tda18250b)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=17
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), m88ts2022)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=18
endif
ifeq ($(CFG_HI_TUNER1_DEV_TYPE), rda5815)
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_TYPE=19
endif
CFG_HI_BOARD_CONFIGS += -DHI_TUNER1_DEV_ADDR=${CFG_HI_TUNER1_DEV_ADDR}
ifeq (${CFG_HI_DEMOD1_DEV_TYPE}, none)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD1_TYPE=0
endif
ifeq (${CFG_HI_DEMOD1_DEV_TYPE}, 3130i)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD1_TYPE=256
endif
ifeq (${CFG_HI_DEMOD1_DEV_TYPE}, 3130e)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD1_TYPE=257
endif
ifeq (${CFG_HI_DEMOD1_DEV_TYPE}, j83b)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD1_TYPE=258
endif
ifeq (${CFG_HI_DEMOD1_DEV_TYPE}, avl6211)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD1_TYPE=259
endif
ifeq (${CFG_HI_DEMOD1_DEV_TYPE}, mxl101)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD1_TYPE=260
endif
ifeq (${CFG_HI_DEMOD1_DEV_TYPE}, mn88472)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD1_TYPE=261
endif
ifeq (${CFG_HI_DEMOD1_DEV_TYPE}, it9170)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD1_TYPE=262
endif
ifeq (${CFG_HI_DEMOD1_DEV_TYPE}, it9133)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD1_TYPE=263
endif
ifeq (${CFG_HI_DEMOD1_DEV_TYPE}, 3136)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD1_TYPE=264
endif
ifeq (${CFG_HI_DEMOD1_DEV_TYPE}, 3136i)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD1_TYPE=265
endif
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD1_DEV_ADDR=${CFG_HI_DEMOD1_DEV_ADDR}
ifeq (${CFG_HI_DEMOD1_TS_MODE}, parallel_a)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD1_TS_MODE=1
endif
ifeq (${CFG_HI_DEMOD1_TS_MODE}, parallel_b)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD1_TS_MODE=2
endif
ifeq (${CFG_HI_DEMOD1_TS_MODE}, serial)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD1_TS_MODE=3
endif
ifeq (${CFG_HI_DEMOD1_TS_MODE}, serial_50)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD1_TS_MODE=4
endif
ifeq (${CFG_HI_DEMOD1_TS_MODE}, serial_2bit)
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD1_TS_MODE=5
endif
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD1_I2C_CHANNEL=${CFG_HI_DEMOD1_I2C_CHANNEL}
CFG_HI_BOARD_CONFIGS += -DHI_DEMOD1_RESET_GPIO=${CFG_HI_DEMOD1_RESET_GPIO}
CFG_HI_BOARD_CONFIGS += -DHI_DEMUX1_PORT=${CFG_HI_DEMUX1_PORT}
ifneq (${CFG_HI_DAC_CVBS},)
CFG_HI_BOARD_CONFIGS += -DHI_DAC_CVBS=${CFG_HI_DAC_CVBS}
else
CFG_HI_BOARD_CONFIGS += -DHI_DAC_CVBS=3
endif
ifneq (${CFG_HI_DAC_YPBPR_Y},)
CFG_HI_BOARD_CONFIGS += -DHI_DAC_YPBPR_Y=${CFG_HI_DAC_YPBPR_Y}
else
CFG_HI_BOARD_CONFIGS += -DHI_DAC_YPBPR_Y=1
endif
ifneq (${CFG_HI_DAC_YPBPR_PB},)
CFG_HI_BOARD_CONFIGS += -DHI_DAC_YPBPR_PB=${CFG_HI_DAC_YPBPR_PB}
else
CFG_HI_BOARD_CONFIGS += -DHI_DAC_YPBPR_PB=0
endif