1*d7445676SArnd Bergmann /* SPDX-License-Identifier: GPL-2.0 */ 2*d7445676SArnd Bergmann /* 3*d7445676SArnd Bergmann * access the core module control register. 4*d7445676SArnd Bergmann */ 5*d7445676SArnd Bergmann u32 cm_get(void); 6*d7445676SArnd Bergmann void cm_control(u32, u32); 7*d7445676SArnd Bergmann 8*d7445676SArnd Bergmann struct device_node; 9*d7445676SArnd Bergmann void cm_init(void); 10*d7445676SArnd Bergmann void cm_clear_irqs(void); 11*d7445676SArnd Bergmann 12*d7445676SArnd Bergmann #define CM_CTRL_LED (1 << 0) 13*d7445676SArnd Bergmann #define CM_CTRL_nMBDET (1 << 1) 14*d7445676SArnd Bergmann #define CM_CTRL_REMAP (1 << 2) 15*d7445676SArnd Bergmann 16*d7445676SArnd Bergmann /* 17*d7445676SArnd Bergmann * Integrator/AP,PP2 specific 18*d7445676SArnd Bergmann */ 19*d7445676SArnd Bergmann #define CM_CTRL_HIGHVECTORS (1 << 4) 20*d7445676SArnd Bergmann #define CM_CTRL_BIGENDIAN (1 << 5) 21*d7445676SArnd Bergmann #define CM_CTRL_FASTBUS (1 << 6) 22*d7445676SArnd Bergmann #define CM_CTRL_SYNC (1 << 7) 23*d7445676SArnd Bergmann 24*d7445676SArnd Bergmann /* 25*d7445676SArnd Bergmann * ARM926/946/966 Integrator/CP specific 26*d7445676SArnd Bergmann */ 27*d7445676SArnd Bergmann #define CM_CTRL_LCDBIASEN (1 << 8) 28*d7445676SArnd Bergmann #define CM_CTRL_LCDBIASUP (1 << 9) 29*d7445676SArnd Bergmann #define CM_CTRL_LCDBIASDN (1 << 10) 30*d7445676SArnd Bergmann #define CM_CTRL_LCDMUXSEL_MASK (7 << 11) 31*d7445676SArnd Bergmann #define CM_CTRL_LCDMUXSEL_GENLCD (1 << 11) 32*d7445676SArnd Bergmann #define CM_CTRL_LCDMUXSEL_VGA565_TFT555 (2 << 11) 33*d7445676SArnd Bergmann #define CM_CTRL_LCDMUXSEL_SHARPLCD (3 << 11) 34*d7445676SArnd Bergmann #define CM_CTRL_LCDMUXSEL_VGA555_TFT555 (4 << 11) 35*d7445676SArnd Bergmann #define CM_CTRL_LCDEN0 (1 << 14) 36*d7445676SArnd Bergmann #define CM_CTRL_LCDEN1 (1 << 15) 37*d7445676SArnd Bergmann #define CM_CTRL_STATIC1 (1 << 16) 38*d7445676SArnd Bergmann #define CM_CTRL_STATIC2 (1 << 17) 39*d7445676SArnd Bergmann #define CM_CTRL_STATIC (1 << 18) 40*d7445676SArnd Bergmann #define CM_CTRL_n24BITEN (1 << 19) 41*d7445676SArnd Bergmann #define CM_CTRL_EBIWP (1 << 20) 42