static int v2m_osc_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) { struct v2m_osc *osc = to_v2m_osc(hw); v2m_cfg_write(SYS_CFG_OSC | SYS_CFG_SITE(osc->site) | SYS_CFG_STACK(osc->stack) | osc->osc, rate); return 0; }
static void v2m_restart(char str, const char *cmd) { if (v2m_cfg_write(SYS_CFG_REBOOT | SYS_CFG_SITE(SYS_CFG_SITE_MB), 0)) printk(KERN_EMERG "Unable to reboot\n"); }
static void v2m_power_off(void) { if (v2m_cfg_write(SYS_CFG_SHUTDOWN | SYS_CFG_SITE(SYS_CFG_SITE_MB), 0)) printk(KERN_EMERG "Unable to shutdown\n"); }
static int v2m_osc1_set(struct clk *clk, unsigned long rate) { return v2m_cfg_write(SYS_CFG_OSC | SYS_CFG_SITE_MB | 1, rate); }
static void ct_ca9x4_clcd_enable(struct clcd_fb *fb) { v2m_cfg_write(SYS_CFG_MUXFPGA | SYS_CFG_SITE_DB1, 0); v2m_cfg_write(SYS_CFG_DVIMODE | SYS_CFG_SITE_DB1, 2); }