sec_lib.c 885 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * (c) MediaTek Inc. 2011
  3. */
  4. /******************************************************************************
  5. * CHIP SELECTION
  6. ******************************************************************************/
  7. /*#include <mach/mt_typedefs.h>*/
  8. #include "hacc_mach.h"
  9. /******************************************************************************
  10. * REGISTER
  11. ******************************************************************************/
  12. #include "sec_boot_lib.h"
  13. #include "sec_mod.h"
  14. /******************************************************************************
  15. * LOCAL FUNCTIONS
  16. ******************************************************************************/
  17. int masp_hal_sbc_enabled(void)
  18. {
  19. return g_hw_sbcen;
  20. }
  21. int masp_hal_get_sbc_checksum(unsigned int *pChecksum)
  22. {
  23. int i;
  24. for (i = 0; i < NUM_SBC_PUBK_HASH; i++)
  25. *pChecksum += g_sbc_pubk_hash[i];
  26. return 0;
  27. }