cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

colibri.h (1736B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef _COLIBRI_H_
      3#define _COLIBRI_H_
      4
      5#include <net/ax88796.h>
      6#include "mfp.h"
      7
      8/*
      9 * base board glue for PXA270 module
     10 */
     11
     12enum {
     13	COLIBRI_EVALBOARD = 0,
     14	COLIBRI_PXA270_INCOME,
     15};
     16
     17#if defined(CONFIG_MACH_COLIBRI_EVALBOARD)
     18extern void colibri_evalboard_init(void);
     19#else
     20static inline void colibri_evalboard_init(void) {}
     21#endif
     22
     23#if defined(CONFIG_MACH_COLIBRI_PXA270_INCOME)
     24extern void colibri_pxa270_income_boardinit(void);
     25#else
     26static inline void colibri_pxa270_income_boardinit(void) {}
     27#endif
     28
     29/*
     30 * common settings for all modules
     31 */
     32
     33#if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
     34extern void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin);
     35#else
     36static inline void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin) {}
     37#endif
     38
     39#if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
     40extern void colibri_pxa3xx_init_lcd(int bl_pin);
     41#else
     42static inline void colibri_pxa3xx_init_lcd(int bl_pin) {}
     43#endif
     44
     45#if defined(CONFIG_AX88796)
     46extern void colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data);
     47#endif
     48
     49#if IS_ENABLED(CONFIG_MTD_NAND_MARVELL)
     50extern void colibri_pxa3xx_init_nand(void);
     51#else
     52static inline void colibri_pxa3xx_init_nand(void) {}
     53#endif
     54
     55/* physical memory regions */
     56#define COLIBRI_SDRAM_BASE	0xa0000000      /* SDRAM region */
     57
     58/* GPIO definitions for Colibri PXA270 */
     59#define GPIO114_COLIBRI_PXA270_ETH_IRQ	114
     60#define GPIO0_COLIBRI_PXA270_SD_DETECT	0
     61#define GPIO113_COLIBRI_PXA270_TS_IRQ	113
     62
     63/* GPIO definitions for Colibri PXA300/310 */
     64#define GPIO13_COLIBRI_PXA300_SD_DETECT	13
     65
     66/* GPIO definitions for Colibri PXA320 */
     67#define GPIO28_COLIBRI_PXA320_SD_DETECT	28
     68
     69#endif /* _COLIBRI_H_ */
     70