pic32mzda.h 962 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Joshua Henderson <joshua.henderson@microchip.com>
  3. * Copyright (C) 2015 Microchip Technology Inc. All rights reserved.
  4. *
  5. * This program is free software; you can distribute it and/or modify it
  6. * under the terms of the GNU General Public License (Version 2) as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12. * for more details.
  13. */
  14. #ifndef PIC32MZDA_COMMON_H
  15. #define PIC32MZDA_COMMON_H
  16. /* early clock */
  17. u32 pic32_get_pbclk(int bus);
  18. u32 pic32_get_sysclk(void);
  19. /* Device configuration */
  20. void __init pic32_config_init(void);
  21. int pic32_set_lcd_mode(int mode);
  22. int pic32_set_sdhci_adma_fifo_threshold(u32 rthrs, u32 wthrs);
  23. u32 pic32_get_boot_status(void);
  24. int pic32_disable_lcd(void);
  25. int pic32_enable_lcd(void);
  26. #endif