Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * access the core module control register.
0004  */
0005 u32 cm_get(void);
0006 void cm_control(u32, u32);
0007 
0008 struct device_node;
0009 void cm_init(void);
0010 void cm_clear_irqs(void);
0011 
0012 #define CM_CTRL_LED         (1 << 0)
0013 #define CM_CTRL_nMBDET          (1 << 1)
0014 #define CM_CTRL_REMAP           (1 << 2)
0015 
0016 /*
0017  * Integrator/AP,PP2 specific
0018  */
0019 #define CM_CTRL_HIGHVECTORS     (1 << 4)
0020 #define CM_CTRL_BIGENDIAN       (1 << 5)
0021 #define CM_CTRL_FASTBUS         (1 << 6)
0022 #define CM_CTRL_SYNC            (1 << 7)
0023 
0024 /*
0025  * ARM926/946/966 Integrator/CP specific
0026  */
0027 #define CM_CTRL_LCDBIASEN       (1 << 8)
0028 #define CM_CTRL_LCDBIASUP       (1 << 9)
0029 #define CM_CTRL_LCDBIASDN       (1 << 10)
0030 #define CM_CTRL_LCDMUXSEL_MASK      (7 << 11)
0031 #define CM_CTRL_LCDMUXSEL_GENLCD    (1 << 11)
0032 #define CM_CTRL_LCDMUXSEL_VGA565_TFT555 (2 << 11)
0033 #define CM_CTRL_LCDMUXSEL_SHARPLCD  (3 << 11)
0034 #define CM_CTRL_LCDMUXSEL_VGA555_TFT555 (4 << 11)
0035 #define CM_CTRL_LCDEN0          (1 << 14)
0036 #define CM_CTRL_LCDEN1          (1 << 15)
0037 #define CM_CTRL_STATIC1         (1 << 16)
0038 #define CM_CTRL_STATIC2         (1 << 17)
0039 #define CM_CTRL_STATIC          (1 << 18)
0040 #define CM_CTRL_n24BITEN        (1 << 19)
0041 #define CM_CTRL_EBIWP           (1 << 20)