soc.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * Copyright (c) 2016 Open-RnD Sp. z o.o.
  3. * Copyright (c) 2016 Linaro Limited.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0
  6. */
  7. /**
  8. * @file SoC configuration macros for the LEOPARD family processors.
  9. *
  10. */
  11. #ifndef _LEOPARD_SOC_H_
  12. #define _LEOPARD_SOC_H_
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #include <sys/util.h>
  17. #ifndef _ASMLANGUAGE
  18. #include <soc_regs.h>
  19. /* Add include for DTS generated information */
  20. #include <devicetree.h>
  21. #include "soc_clock.h"
  22. #include "soc_reset.h"
  23. #include "soc_irq.h"
  24. #include "soc_gpio.h"
  25. #include "soc_pinmux.h"
  26. #include "soc_pmu.h"
  27. #include "soc_pm.h"
  28. #include "soc_sleep.h"
  29. #include "soc_timer.h"
  30. #include "soc_boot.h"
  31. #include "soc_se.h"
  32. #include "soc_memctrl.h"
  33. #include "soc_ppi.h"
  34. #include "soc_pstore.h"
  35. #include "soc_psram.h"
  36. #include "soc_powergate.h"
  37. void jtag_set(void);
  38. int soc_dvfs_opt(void);
  39. void soc_watchdog_clear(void);
  40. void wd_clear_wdreset_cnt(void);
  41. uint8_t ipmsg_btc_get_ic_pkt(void);
  42. //#define CONFIG_SLEEP_DBG
  43. #ifdef CONFIG_SLEEP_DBG
  44. #define sl_dbg printk
  45. #else
  46. #define sl_dbg(...)
  47. #endif
  48. #define __FPU_PRESENT 1
  49. #define __MPU_PRESENT 1
  50. #define CHIP_LEOPARD 1
  51. #endif /* !_ASMLANGUAGE */
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55. #endif /* _LEOPARD_SOC_H_ */