comparison src/cs/system/main/init.c @ 13:c07376e250c1

src/cs/system/main modules patched for passing link
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 15 May 2020 04:25:10 +0000
parents 92470e5d0b9e
children 9a8a20d45be7
comparison
equal deleted inserted replaced
12:054ac529dfd3 13:c07376e250c1
810 /* 810 /*
811 * Init_Drivers 811 * Init_Drivers
812 * 812 *
813 * Performs Drivers Initialization. 813 * Performs Drivers Initialization.
814 */ 814 */
815 void Set_Switch_ON_Cause(void);
816 void Init_Drivers(void) 815 void Init_Drivers(void)
817 { 816 {
818
819 #if (CHIPSET==15)
820 bspI2c_init();
821 bspTwl3029_init();
822
823 #if (OP_L1_STANDALONE == 0)
824 Set_Switch_ON_Cause();
825 #endif
826
827
828 /* Turn on DRP We will make VRMCC to device group Modem
829 * And Switch it on.
830 */
831 bspTwl3029_Power_setDevGrp(NULL,BSP_TWL3029_POWER_VRMMC,BSP_TWL3029_POWER_DEV_GRP_MODEM);
832 wait_ARM_cycles(convert_nanosec_to_cycles(100000*2));
833 bspTwl3029_Power_enable(NULL,BSP_TWL3029_POWER_VRMMC,BSP_TWL3029_POWER_STATE_ACTIVE);
834 #endif
835
836 #if (CHIPSET!=15)
837 #if ABB_SEMAPHORE_PROTECTION 817 #if ABB_SEMAPHORE_PROTECTION
838 // Create the ABB semaphore 818 // Create the ABB semaphore
839 ABB_Sem_Create(); 819 ABB_Sem_Create();
840 #endif // SEMAPHORE_PROTECTION 820 #endif // SEMAPHORE_PROTECTION
841 #endif
842 821
843 #if (OP_L1_STANDALONE == 0) 822 #if (OP_L1_STANDALONE == 0)
844 /* 823 /*
845 * Initialize FFS invoking restore procedure by MPU-S 824 * Initialize FFS invoking restore procedure by MPU-S
846 */ 825 */
864 create_tasks(); 843 create_tasks();
865 #endif 844 #endif
866 /* 845 /*
867 * SIM Main Initialization. 846 * SIM Main Initialization.
868 */ 847 */
869 #if (CHIPSET!=15) 848 #if 0 /* FC FFS editor */
870 SIM_Initialize (); 849 SIM_Initialize ();
871 #else
872 bspUicc_bootInit();
873 #endif 850 #endif
874 #endif 851 #endif
875 } 852 }
876 853
877 /* 854 /*
947 * 924 *
948 * Unmask all used interrupts. 925 * Unmask all used interrupts.
949 */ 926 */
950 void Init_Unmask_IT (void) 927 void Init_Unmask_IT (void)
951 { 928 {
929 #if 0 /* FC FFS editor */
952 IQ_Unmask(IQ_FRAME); 930 IQ_Unmask(IQ_FRAME);
931 #endif
953 IQ_Unmask(IQ_UART_IRDA_IT); 932 IQ_Unmask(IQ_UART_IRDA_IT);
954 IQ_Unmask(IQ_UART_IT); 933 IQ_Unmask(IQ_UART_IT);
934 #if 0 /* FC FFS editor */
955 IQ_Unmask(IQ_ARMIO); 935 IQ_Unmask(IQ_ARMIO);
936 #endif
956 #if (L1_DYN_DSP_DWNLD == 1) 937 #if (L1_DYN_DSP_DWNLD == 1)
957 IQ_Unmask(IQ_API); 938 IQ_Unmask(IQ_API);
958 #endif 939 #endif
959 } 940 }