Lines Matching refs:writel

129 		writel(param, remapped_regs + regs);  in w100fb_reg_write()
302 writel(W100_FB_BASE, remapped_regs + mmDST_OFFSET); in w100_init_graphic_engine()
303 writel(par->xres, remapped_regs + mmDST_PITCH); in w100_init_graphic_engine()
304 writel(W100_FB_BASE, remapped_regs + mmSRC_OFFSET); in w100_init_graphic_engine()
305 writel(par->xres, remapped_regs + mmSRC_PITCH); in w100_init_graphic_engine()
308 writel(0, remapped_regs + mmSC_TOP_LEFT); in w100_init_graphic_engine()
309 writel((par->yres << 16) | par->xres, remapped_regs + mmSC_BOTTOM_RIGHT); in w100_init_graphic_engine()
310 writel(0x1fff1fff, remapped_regs + mmSRC_SC_BOTTOM_RIGHT); in w100_init_graphic_engine()
320 writel(dp_cntl.val, remapped_regs + mmDP_CNTL); in w100_init_graphic_engine()
337 writel(gmc.val, remapped_regs + mmDP_GUI_MASTER_CNTL); in w100_init_graphic_engine()
346 writel(dp_datatype.val, remapped_regs + mmDP_DATATYPE); in w100_init_graphic_engine()
352 writel(dp_mix.val, remapped_regs + mmDP_MIX); in w100_init_graphic_engine()
372 writel(gmc.val, remapped_regs + mmDP_GUI_MASTER_CNTL); in w100fb_fillrect()
373 writel(rect->color, remapped_regs + mmDP_BRUSH_FRGD_CLR); in w100fb_fillrect()
376 writel((rect->dy << 16) | (rect->dx & 0xffff), remapped_regs + mmDST_Y_X); in w100fb_fillrect()
377 writel((rect->width << 16) | (rect->height & 0xffff), in w100fb_fillrect()
400 writel(gmc.val, remapped_regs + mmDP_GUI_MASTER_CNTL); in w100fb_copyarea()
403 writel((sy << 16) | (sx & 0xffff), remapped_regs + mmSRC_Y_X); in w100fb_copyarea()
404 writel((dy << 16) | (dx & 0xffff), remapped_regs + mmDST_Y_X); in w100fb_copyarea()
405 writel((w << 16) | (h & 0xffff), remapped_regs + mmDST_WIDTH_HEIGHT); in w100fb_copyarea()
828 writel((u32) (disp_db_buf_wr_cntl.val), remapped_regs + mmDISP_DB_BUF_CNTL); in w100_update_disable()
839 writel((u32) (disp_db_buf_wr_cntl.val), remapped_regs + mmDISP_DB_BUF_CNTL); in w100_update_enable()
857 writel(value, remapped_regs + mmGPIO_DATA); in w100fb_gpio_write()
859 writel(value, remapped_regs + mmGPIO_DATA2); in w100fb_gpio_write()
885 writel(0x31, remapped_regs + mmSCRATCH_UMSK); in w100_hw_init()
888 writel(0x30, remapped_regs + mmSCRATCH_UMSK); in w100_hw_init()
892 writel((u32)(cif_io.val), remapped_regs + mmCIF_IO); in w100_hw_init()
898 writel((u32) (cif_write_dbg.val), remapped_regs + mmCIF_WRITE_DBG); in w100_hw_init()
902 writel((u32) (cif_read_dbg.val), remapped_regs + mmCIF_READ_DBG); in w100_hw_init()
910 writel((u32) (cif_cntl.val), remapped_regs + mmCIF_CNTL); in w100_hw_init()
932 writel((u32) (cfgreg_base.val), remapped_regs + mmCFGREG_BASE); in w100_hw_init()
936 writel((u32) (wrap_start_dir.val), remapped_regs + mmWRAP_START_DIR); in w100_hw_init()
940 writel((u32) (wrap_top_dir.val), remapped_regs + mmWRAP_TOP_DIR); in w100_hw_init()
942 writel((u32) 0x2440, remapped_regs + mmRBBM_CNTL); in w100_hw_init()
948 writel(temp32, remapped_regs + mmDISP_DEBUG2); in w100_hw_init()
952 writel(gpio->init_data1, remapped_regs + mmGPIO_DATA); in w100_hw_init()
953 writel(gpio->init_data2, remapped_regs + mmGPIO_DATA2); in w100_hw_init()
954 writel(gpio->gpio_dir1, remapped_regs + mmGPIO_CNTL1); in w100_hw_init()
955 writel(gpio->gpio_oe1, remapped_regs + mmGPIO_CNTL2); in w100_hw_init()
956 writel(gpio->gpio_dir2, remapped_regs + mmGPIO_CNTL3); in w100_hw_init()
957 writel(gpio->gpio_oe2, remapped_regs + mmGPIO_CNTL4); in w100_hw_init()
1043 writel((u32) (clk_test_cntl.val), remapped_regs + mmCLK_TEST_CNTL); in w100_get_testcount()
1046 writel((u32) (clk_test_cntl.val), remapped_regs + mmCLK_TEST_CNTL); in w100_get_testcount()
1050 writel((u32) (clk_test_cntl.val), remapped_regs + mmCLK_TEST_CNTL); in w100_get_testcount()
1058 writel((u32) (clk_test_cntl.val), remapped_regs + mmCLK_TEST_CNTL); in w100_get_testcount()
1085 writel((u32) (w100_pwr_state.pll_cntl.val), remapped_regs + mmPLL_CNTL); in w100_pll_adjust()
1091 writel((u32) (w100_pwr_state.pll_cntl.val), remapped_regs + mmPLL_CNTL); in w100_pll_adjust()
1131 writel((u32) (w100_pwr_state.pll_cntl.val), remapped_regs + mmPLL_CNTL); in w100_pll_calibration()
1137 writel((u32) (w100_pwr_state.pll_cntl.val), remapped_regs + mmPLL_CNTL); in w100_pll_calibration()
1141 writel((u32) (w100_pwr_state.pll_cntl.val), remapped_regs + mmPLL_CNTL); in w100_pll_calibration()
1159 writel((u32) (w100_pwr_state.pwrmgt_cntl.val), remapped_regs + mmPWRMGT_CNTL); in w100_pll_set_clk()
1164 writel((u32) (w100_pwr_state.sclk_cntl.val), remapped_regs + mmSCLK_CNTL); in w100_pll_set_clk()
1170 writel((u32) (w100_pwr_state.pll_ref_fb_div.val), remapped_regs + mmPLL_REF_FB_DIV); in w100_pll_set_clk()
1173 writel((u32) (w100_pwr_state.pwrmgt_cntl.val), remapped_regs + mmPWRMGT_CNTL); in w100_pll_set_clk()
1181 writel((u32) (w100_pwr_state.pwrmgt_cntl.val), remapped_regs + mmPWRMGT_CNTL); in w100_pll_set_clk()
1210 writel((u32) (w100_pwr_state.clk_pin_cntl.val), remapped_regs + mmCLK_PIN_CNTL); in w100_pwm_setup()
1230 writel((u32) (w100_pwr_state.sclk_cntl.val), remapped_regs + mmSCLK_CNTL); in w100_pwm_setup()
1235 writel((u32) (w100_pwr_state.pclk_cntl.val), remapped_regs + mmPCLK_CNTL); in w100_pwm_setup()
1242 writel((u32) (w100_pwr_state.pll_ref_fb_div.val), remapped_regs + mmPLL_REF_FB_DIV); in w100_pwm_setup()
1262 writel((u32) (w100_pwr_state.pll_cntl.val), remapped_regs + mmPLL_CNTL); in w100_pwm_setup()
1273 writel((u32) (w100_pwr_state.pwrmgt_cntl.val), remapped_regs + mmPWRMGT_CNTL); in w100_pwm_setup()
1292 writel((u32) (w100_pwr_state.sclk_cntl.val), remapped_regs + mmSCLK_CNTL); in w100_init_clocks()
1311 writel(active_h_disp.val, remapped_regs + mmACTIVE_H_DISP); in w100_init_lcd()
1316 writel(active_v_disp.val, remapped_regs + mmACTIVE_V_DISP); in w100_init_lcd()
1321 writel(graphic_h_disp.val, remapped_regs + mmGRAPHIC_H_DISP); in w100_init_lcd()
1326 writel(graphic_v_disp.val, remapped_regs + mmGRAPHIC_V_DISP); in w100_init_lcd()
1331 writel(crtc_total.val, remapped_regs + mmCRTC_TOTAL); in w100_init_lcd()
1333 writel(mode->crtc_ss, remapped_regs + mmCRTC_SS); in w100_init_lcd()
1334 writel(mode->crtc_ls, remapped_regs + mmCRTC_LS); in w100_init_lcd()
1335 writel(mode->crtc_gs, remapped_regs + mmCRTC_GS); in w100_init_lcd()
1336 writel(mode->crtc_vpos_gs, remapped_regs + mmCRTC_VPOS_GS); in w100_init_lcd()
1337 writel(mode->crtc_rev, remapped_regs + mmCRTC_REV); in w100_init_lcd()
1338 writel(mode->crtc_dclk, remapped_regs + mmCRTC_DCLK); in w100_init_lcd()
1339 writel(mode->crtc_gclk, remapped_regs + mmCRTC_GCLK); in w100_init_lcd()
1340 writel(mode->crtc_goe, remapped_regs + mmCRTC_GOE); in w100_init_lcd()
1341 writel(mode->crtc_ps1_active, remapped_regs + mmCRTC_PS1_ACTIVE); in w100_init_lcd()
1343 writel(regs->lcd_format, remapped_regs + mmLCD_FORMAT); in w100_init_lcd()
1344 writel(regs->lcdd_cntl1, remapped_regs + mmLCDD_CNTL1); in w100_init_lcd()
1345 writel(regs->lcdd_cntl2, remapped_regs + mmLCDD_CNTL2); in w100_init_lcd()
1346 writel(regs->genlcd_cntl1, remapped_regs + mmGENLCD_CNTL1); in w100_init_lcd()
1347 writel(regs->genlcd_cntl2, remapped_regs + mmGENLCD_CNTL2); in w100_init_lcd()
1348 writel(regs->genlcd_cntl3, remapped_regs + mmGENLCD_CNTL3); in w100_init_lcd()
1350 writel(0x00000000, remapped_regs + mmCRTC_FRAME); in w100_init_lcd()
1351 writel(0x00000000, remapped_regs + mmCRTC_FRAME_VPOS); in w100_init_lcd()
1352 writel(0x00000000, remapped_regs + mmCRTC_DEFAULT_COUNT); in w100_init_lcd()
1353 writel(0x0000FF00, remapped_regs + mmLCD_BACKGROUND_COLOR); in w100_init_lcd()
1358 writel(temp32, remapped_regs + mmDISP_DEBUG2); in w100_init_lcd()
1375 writel((u32) (intmem_location.val), remapped_regs + mmMC_FB_LOCATION); in w100_setup_memory()
1381 writel((u32) (extmem_location.val), remapped_regs + mmMC_EXT_MEM_LOCATION); in w100_setup_memory()
1386 writel((u32) (intmem_location.val), remapped_regs + mmMC_FB_LOCATION); in w100_setup_memory()
1391 writel((u32) (extmem_location.val), remapped_regs + mmMC_EXT_MEM_LOCATION); in w100_setup_memory()
1393 writel(0x00007800, remapped_regs + mmMC_BIST_CTRL); in w100_setup_memory()
1394 writel(mem->ext_cntl, remapped_regs + mmMEM_EXT_CNTL); in w100_setup_memory()
1395 writel(0x00200021, remapped_regs + mmMEM_SDRAM_MODE_REG); in w100_setup_memory()
1397 writel(0x80200021, remapped_regs + mmMEM_SDRAM_MODE_REG); in w100_setup_memory()
1399 writel(mem->sdram_mode_reg, remapped_regs + mmMEM_SDRAM_MODE_REG); in w100_setup_memory()
1401 writel(mem->ext_timing_cntl, remapped_regs + mmMEM_EXT_TIMING_CNTL); in w100_setup_memory()
1402 writel(mem->io_cntl, remapped_regs + mmMEM_IO_CNTL); in w100_setup_memory()
1404 writel(bm_mem->ext_mem_bw, remapped_regs + mmBM_EXT_MEM_BANDWIDTH); in w100_setup_memory()
1405 writel(bm_mem->offset, remapped_regs + mmBM_OFFSET); in w100_setup_memory()
1406 writel(bm_mem->ext_timing_ctl, remapped_regs + mmBM_MEM_EXT_TIMING_CNTL); in w100_setup_memory()
1407 writel(bm_mem->ext_cntl, remapped_regs + mmBM_MEM_EXT_CNTL); in w100_setup_memory()
1408 writel(bm_mem->mode_reg, remapped_regs + mmBM_MEM_MODE_REG); in w100_setup_memory()
1409 writel(bm_mem->io_cntl, remapped_regs + mmBM_MEM_IO_CNTL); in w100_setup_memory()
1410 writel(bm_mem->config, remapped_regs + mmBM_CONFIG); in w100_setup_memory()
1495 writel((u32) (w100_pwr_state.pclk_cntl.val), remapped_regs + mmPCLK_CNTL); in w100_set_dispregs()
1497 writel(graphic_ctrl.val, remapped_regs + mmGRAPHIC_CTRL); in w100_set_dispregs()
1498 writel(W100_FB_BASE + ((offset * BITS_PER_PIXEL/8)&~0x03UL), remapped_regs + mmGRAPHIC_OFFSET); in w100_set_dispregs()
1499 writel((par->xres*BITS_PER_PIXEL/8), remapped_regs + mmGRAPHIC_PITCH); in w100_set_dispregs()
1531 writel(0x7FFF8000, remapped_regs + mmMC_EXT_MEM_LOCATION); in w100_suspend()
1532 writel(0x00FF0000, remapped_regs + mmMC_PERF_MON_CNTL); in w100_suspend()
1537 writel(val, remapped_regs + mmMEM_EXT_TIMING_CNTL); in w100_suspend()
1542 writel(val, remapped_regs + mmMEM_EXT_CNTL); in w100_suspend()
1550 writel(val, remapped_regs + mmMEM_EXT_CNTL); in w100_suspend()
1555 writel(val, remapped_regs + mmMEM_EXT_CNTL); in w100_suspend()
1557 writel(0x00000000, remapped_regs + mmSCLK_CNTL); in w100_suspend()
1558 writel(0x000000BF, remapped_regs + mmCLK_PIN_CNTL); in w100_suspend()
1559 writel(0x00000015, remapped_regs + mmPWRMGT_CNTL); in w100_suspend()
1565 writel(val, remapped_regs + mmPLL_CNTL); in w100_suspend()
1567 writel(0x00000000, remapped_regs + mmLCDD_CNTL1); in w100_suspend()
1568 writel(0x00000000, remapped_regs + mmLCDD_CNTL2); in w100_suspend()
1569 writel(0x00000000, remapped_regs + mmGENLCD_CNTL1); in w100_suspend()
1570 writel(0x00000000, remapped_regs + mmGENLCD_CNTL2); in w100_suspend()
1571 writel(0x00000000, remapped_regs + mmGENLCD_CNTL3); in w100_suspend()
1576 writel(val, remapped_regs + mmMEM_EXT_CNTL); in w100_suspend()
1578 writel(0x0000001d, remapped_regs + mmPWRMGT_CNTL); in w100_suspend()
1590 writel((tmp >> 16) & 0x3ff, remapped_regs + mmDISP_INT_CNTL); in w100_vsync()
1596 writel(tmp, remapped_regs + mmGEN_INT_CNTL); in w100_vsync()
1599 writel(0x00000002, remapped_regs + mmGEN_INT_STATUS); in w100_vsync()
1602 writel((tmp | 0x00000002), remapped_regs + mmGEN_INT_CNTL); in w100_vsync()
1605 writel(0x00000002, remapped_regs + mmGEN_INT_STATUS); in w100_vsync()
1615 writel(tmp, remapped_regs + mmGEN_INT_CNTL); in w100_vsync()
1618 writel(0x00000002, remapped_regs + mmGEN_INT_STATUS); in w100_vsync()