162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * access the core module control register.
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ciu32 cm_get(void);
662306a36Sopenharmony_civoid cm_control(u32, u32);
762306a36Sopenharmony_ci
862306a36Sopenharmony_cistruct device_node;
962306a36Sopenharmony_civoid cm_init(void);
1062306a36Sopenharmony_civoid cm_clear_irqs(void);
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci#define CM_CTRL_LED			(1 << 0)
1362306a36Sopenharmony_ci#define CM_CTRL_nMBDET			(1 << 1)
1462306a36Sopenharmony_ci#define CM_CTRL_REMAP			(1 << 2)
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci/*
1762306a36Sopenharmony_ci * Integrator/AP,PP2 specific
1862306a36Sopenharmony_ci */
1962306a36Sopenharmony_ci#define CM_CTRL_HIGHVECTORS		(1 << 4)
2062306a36Sopenharmony_ci#define CM_CTRL_BIGENDIAN		(1 << 5)
2162306a36Sopenharmony_ci#define CM_CTRL_FASTBUS			(1 << 6)
2262306a36Sopenharmony_ci#define CM_CTRL_SYNC			(1 << 7)
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci/*
2562306a36Sopenharmony_ci * ARM926/946/966 Integrator/CP specific
2662306a36Sopenharmony_ci */
2762306a36Sopenharmony_ci#define CM_CTRL_LCDBIASEN		(1 << 8)
2862306a36Sopenharmony_ci#define CM_CTRL_LCDBIASUP		(1 << 9)
2962306a36Sopenharmony_ci#define CM_CTRL_LCDBIASDN		(1 << 10)
3062306a36Sopenharmony_ci#define CM_CTRL_LCDMUXSEL_MASK		(7 << 11)
3162306a36Sopenharmony_ci#define CM_CTRL_LCDMUXSEL_GENLCD	(1 << 11)
3262306a36Sopenharmony_ci#define CM_CTRL_LCDMUXSEL_VGA565_TFT555	(2 << 11)
3362306a36Sopenharmony_ci#define CM_CTRL_LCDMUXSEL_SHARPLCD	(3 << 11)
3462306a36Sopenharmony_ci#define CM_CTRL_LCDMUXSEL_VGA555_TFT555	(4 << 11)
3562306a36Sopenharmony_ci#define CM_CTRL_LCDEN0			(1 << 14)
3662306a36Sopenharmony_ci#define CM_CTRL_LCDEN1			(1 << 15)
3762306a36Sopenharmony_ci#define CM_CTRL_STATIC1			(1 << 16)
3862306a36Sopenharmony_ci#define CM_CTRL_STATIC2			(1 << 17)
3962306a36Sopenharmony_ci#define CM_CTRL_STATIC			(1 << 18)
4062306a36Sopenharmony_ci#define CM_CTRL_n24BITEN		(1 << 19)
4162306a36Sopenharmony_ci#define CM_CTRL_EBIWP			(1 << 20)
42