18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Joshua Henderson <joshua.henderson@microchip.com> 48c2ecf20Sopenharmony_ci * Copyright (C) 2015 Microchip Technology Inc. All rights reserved. 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci#ifndef PIC32MZDA_COMMON_H 78c2ecf20Sopenharmony_ci#define PIC32MZDA_COMMON_H 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci/* early clock */ 108c2ecf20Sopenharmony_ciu32 pic32_get_pbclk(int bus); 118c2ecf20Sopenharmony_ciu32 pic32_get_sysclk(void); 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci/* Device configuration */ 148c2ecf20Sopenharmony_civoid __init pic32_config_init(void); 158c2ecf20Sopenharmony_ciint pic32_set_lcd_mode(int mode); 168c2ecf20Sopenharmony_ciint pic32_set_sdhci_adma_fifo_threshold(u32 rthrs, u32 wthrs); 178c2ecf20Sopenharmony_ciu32 pic32_get_boot_status(void); 188c2ecf20Sopenharmony_ciint pic32_disable_lcd(void); 198c2ecf20Sopenharmony_ciint pic32_enable_lcd(void); 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#endif 22