Lines Matching full:mpu
104 /* MPU OS timers */
292 "omap-mpu-timer", 0x100); in omap_mpu_timer_init()
728 static void omap_ulpd_pm_reset(struct omap_mpu_state_s *mpu) in omap_ulpd_pm_reset() argument
730 mpu->ulpd_pm_regs[0x00 >> 2] = 0x0001; in omap_ulpd_pm_reset()
731 mpu->ulpd_pm_regs[0x04 >> 2] = 0x0000; in omap_ulpd_pm_reset()
732 mpu->ulpd_pm_regs[0x08 >> 2] = 0x0001; in omap_ulpd_pm_reset()
733 mpu->ulpd_pm_regs[0x0c >> 2] = 0x0000; in omap_ulpd_pm_reset()
734 mpu->ulpd_pm_regs[0x10 >> 2] = 0x0000; in omap_ulpd_pm_reset()
735 mpu->ulpd_pm_regs[0x18 >> 2] = 0x01; in omap_ulpd_pm_reset()
736 mpu->ulpd_pm_regs[0x1c >> 2] = 0x01; in omap_ulpd_pm_reset()
737 mpu->ulpd_pm_regs[0x20 >> 2] = 0x01; in omap_ulpd_pm_reset()
738 mpu->ulpd_pm_regs[0x24 >> 2] = 0x03ff; in omap_ulpd_pm_reset()
739 mpu->ulpd_pm_regs[0x28 >> 2] = 0x01; in omap_ulpd_pm_reset()
740 mpu->ulpd_pm_regs[0x2c >> 2] = 0x01; in omap_ulpd_pm_reset()
741 omap_ulpd_clk_update(mpu, mpu->ulpd_pm_regs[0x30 >> 2], 0x0000); in omap_ulpd_pm_reset()
742 mpu->ulpd_pm_regs[0x30 >> 2] = 0x0000; in omap_ulpd_pm_reset()
743 omap_ulpd_req_update(mpu, mpu->ulpd_pm_regs[0x34 >> 2], 0x0000); in omap_ulpd_pm_reset()
744 mpu->ulpd_pm_regs[0x34 >> 2] = 0x0000; in omap_ulpd_pm_reset()
745 mpu->ulpd_pm_regs[0x38 >> 2] = 0x0001; in omap_ulpd_pm_reset()
746 mpu->ulpd_pm_regs[0x3c >> 2] = 0x2211; in omap_ulpd_pm_reset()
747 mpu->ulpd_pm_regs[0x40 >> 2] = 0x0000; /* FIXME: dump a real STATUS_REQ */ in omap_ulpd_pm_reset()
748 mpu->ulpd_pm_regs[0x48 >> 2] = 0x960; in omap_ulpd_pm_reset()
749 mpu->ulpd_pm_regs[0x4c >> 2] = 0x08; in omap_ulpd_pm_reset()
750 mpu->ulpd_pm_regs[0x50 >> 2] = 0x08; in omap_ulpd_pm_reset()
751 omap_clk_setrate(omap_findclk(mpu, "dpll4"), 1, 4); in omap_ulpd_pm_reset()
752 omap_clk_reparent(omap_findclk(mpu, "ck_48m"), omap_findclk(mpu, "dpll4")); in omap_ulpd_pm_reset()
757 struct omap_mpu_state_s *mpu) in omap_ulpd_pm_init() argument
759 memory_region_init_io(&mpu->ulpd_pm_iomem, NULL, &omap_ulpd_pm_ops, mpu, in omap_ulpd_pm_init()
761 memory_region_add_subregion(system_memory, base, &mpu->ulpd_pm_iomem); in omap_ulpd_pm_init()
762 omap_ulpd_pm_reset(mpu); in omap_ulpd_pm_init()
962 static void omap_pin_cfg_reset(struct omap_mpu_state_s *mpu) in omap_pin_cfg_reset() argument
965 mpu->compat1509 = 1; in omap_pin_cfg_reset()
966 omap_pin_funcmux0_update(mpu, mpu->func_mux_ctrl[0], 0); in omap_pin_cfg_reset()
967 omap_pin_funcmux1_update(mpu, mpu->func_mux_ctrl[1], 0); in omap_pin_cfg_reset()
968 omap_pin_modconf1_update(mpu, mpu->mod_conf_ctrl[0], 0); in omap_pin_cfg_reset()
969 memset(mpu->func_mux_ctrl, 0, sizeof(mpu->func_mux_ctrl)); in omap_pin_cfg_reset()
970 memset(mpu->comp_mode_ctrl, 0, sizeof(mpu->comp_mode_ctrl)); in omap_pin_cfg_reset()
971 memset(mpu->pull_dwn_ctrl, 0, sizeof(mpu->pull_dwn_ctrl)); in omap_pin_cfg_reset()
972 memset(mpu->gate_inh_ctrl, 0, sizeof(mpu->gate_inh_ctrl)); in omap_pin_cfg_reset()
973 memset(mpu->voltage_ctrl, 0, sizeof(mpu->voltage_ctrl)); in omap_pin_cfg_reset()
974 memset(mpu->test_dbg_ctrl, 0, sizeof(mpu->test_dbg_ctrl)); in omap_pin_cfg_reset()
975 memset(mpu->mod_conf_ctrl, 0, sizeof(mpu->mod_conf_ctrl)); in omap_pin_cfg_reset()
980 struct omap_mpu_state_s *mpu) in omap_pin_cfg_init() argument
982 memory_region_init_io(&mpu->pin_cfg_iomem, NULL, &omap_pin_cfg_ops, mpu, in omap_pin_cfg_init()
984 memory_region_add_subregion(system_memory, base, &mpu->pin_cfg_iomem); in omap_pin_cfg_init()
985 omap_pin_cfg_reset(mpu); in omap_pin_cfg_init()
1016 hw_error("%s: bad mpu model\n", __func__); in omap_id_read()
1027 hw_error("%s: bad mpu model\n", __func__); in omap_id_read()
1053 static void omap_id_init(MemoryRegion *memory, struct omap_mpu_state_s *mpu) in omap_id_init() argument
1055 memory_region_init_io(&mpu->id_iomem, NULL, &omap_id_ops, mpu, in omap_id_init()
1057 memory_region_init_alias(&mpu->id_iomem_e18, NULL, "omap-id-e18", &mpu->id_iomem, in omap_id_init()
1059 memory_region_add_subregion(memory, 0xfffe1800, &mpu->id_iomem_e18); in omap_id_init()
1060 memory_region_init_alias(&mpu->id_iomem_ed4, NULL, "omap-id-ed4", &mpu->id_iomem, in omap_id_init()
1062 memory_region_add_subregion(memory, 0xfffed400, &mpu->id_iomem_ed4); in omap_id_init()
1063 if (!cpu_is_omap15xx(mpu)) { in omap_id_init()
1064 memory_region_init_alias(&mpu->id_iomem_ed4, NULL, "omap-id-e20", in omap_id_init()
1065 &mpu->id_iomem, 0xfffe2000, 0x800); in omap_id_init()
1066 memory_region_add_subregion(memory, 0xfffe2000, &mpu->id_iomem_e20); in omap_id_init()
1148 struct omap_mpu_state_s *mpu) in omap_mpui_init() argument
1150 memory_region_init_io(&mpu->mpui_iomem, NULL, &omap_mpui_ops, mpu, in omap_mpui_init()
1152 memory_region_add_subregion(memory, base, &mpu->mpui_iomem); in omap_mpui_init()
1154 omap_mpui_reset(mpu); in omap_mpui_init()
1350 static void omap_tcmi_reset(struct omap_mpu_state_s *mpu) in omap_tcmi_reset() argument
1352 mpu->tcmi_regs[0x00 >> 2] = 0x00000000; in omap_tcmi_reset()
1353 mpu->tcmi_regs[0x04 >> 2] = 0x00000000; in omap_tcmi_reset()
1354 mpu->tcmi_regs[0x08 >> 2] = 0x00000000; in omap_tcmi_reset()
1355 mpu->tcmi_regs[0x0c >> 2] = 0x00000010; in omap_tcmi_reset()
1356 mpu->tcmi_regs[0x10 >> 2] = 0x0010fffb; in omap_tcmi_reset()
1357 mpu->tcmi_regs[0x14 >> 2] = 0x0010fffb; in omap_tcmi_reset()
1358 mpu->tcmi_regs[0x18 >> 2] = 0x0010fffb; in omap_tcmi_reset()
1359 mpu->tcmi_regs[0x1c >> 2] = 0x0010fffb; in omap_tcmi_reset()
1360 mpu->tcmi_regs[0x20 >> 2] = 0x00618800; in omap_tcmi_reset()
1361 mpu->tcmi_regs[0x24 >> 2] = 0x00000037; in omap_tcmi_reset()
1362 mpu->tcmi_regs[0x28 >> 2] = 0x00000000; in omap_tcmi_reset()
1363 mpu->tcmi_regs[0x2c >> 2] = 0x00000000; in omap_tcmi_reset()
1364 mpu->tcmi_regs[0x30 >> 2] = 0x00000000; in omap_tcmi_reset()
1365 mpu->tcmi_regs[0x3c >> 2] = 0x00000003; in omap_tcmi_reset()
1366 mpu->tcmi_regs[0x40 >> 2] = 0x00000000; in omap_tcmi_reset()
1370 struct omap_mpu_state_s *mpu) in omap_tcmi_init() argument
1372 memory_region_init_io(&mpu->tcmi_iomem, NULL, &omap_tcmi_ops, mpu, in omap_tcmi_init()
1374 memory_region_add_subregion(memory, base, &mpu->tcmi_iomem); in omap_tcmi_init()
1375 omap_tcmi_reset(mpu); in omap_tcmi_init()
1464 /* MPU Clock/Reset/Power Mode Control */
1886 /* MPU I/O */
3688 struct omap_mpu_state_s *mpu) in omap_setup_mpui_io() argument
3690 memory_region_init_io(&mpu->mpui_io_iomem, NULL, &omap_mpui_io_ops, mpu, in omap_setup_mpui_io()
3693 &mpu->mpui_io_iomem); in omap_setup_mpui_io()
3699 struct omap_mpu_state_s *mpu = opaque; in omap1_mpu_reset() local
3701 omap_dma_reset(mpu->dma); in omap1_mpu_reset()
3702 omap_mpu_timer_reset(mpu->timer[0]); in omap1_mpu_reset()
3703 omap_mpu_timer_reset(mpu->timer[1]); in omap1_mpu_reset()
3704 omap_mpu_timer_reset(mpu->timer[2]); in omap1_mpu_reset()
3705 omap_wd_timer_reset(mpu->wdt); in omap1_mpu_reset()
3706 omap_os_timer_reset(mpu->os_timer); in omap1_mpu_reset()
3707 omap_lcdc_reset(mpu->lcd); in omap1_mpu_reset()
3708 omap_ulpd_pm_reset(mpu); in omap1_mpu_reset()
3709 omap_pin_cfg_reset(mpu); in omap1_mpu_reset()
3710 omap_mpui_reset(mpu); in omap1_mpu_reset()
3711 omap_tipb_bridge_reset(mpu->private_tipb); in omap1_mpu_reset()
3712 omap_tipb_bridge_reset(mpu->public_tipb); in omap1_mpu_reset()
3713 omap_dpll_reset(mpu->dpll[0]); in omap1_mpu_reset()
3714 omap_dpll_reset(mpu->dpll[1]); in omap1_mpu_reset()
3715 omap_dpll_reset(mpu->dpll[2]); in omap1_mpu_reset()
3716 omap_uart_reset(mpu->uart[0]); in omap1_mpu_reset()
3717 omap_uart_reset(mpu->uart[1]); in omap1_mpu_reset()
3718 omap_uart_reset(mpu->uart[2]); in omap1_mpu_reset()
3719 omap_mmc_reset(mpu->mmc); in omap1_mpu_reset()
3720 omap_mpuio_reset(mpu->mpuio); in omap1_mpu_reset()
3721 omap_uwire_reset(mpu->microwire); in omap1_mpu_reset()
3722 omap_pwl_reset(mpu->pwl); in omap1_mpu_reset()
3723 omap_pwt_reset(mpu->pwt); in omap1_mpu_reset()
3724 omap_rtc_reset(mpu->rtc); in omap1_mpu_reset()
3725 omap_mcbsp_reset(mpu->mcbsp1); in omap1_mpu_reset()
3726 omap_mcbsp_reset(mpu->mcbsp2); in omap1_mpu_reset()
3727 omap_mcbsp_reset(mpu->mcbsp3); in omap1_mpu_reset()
3728 omap_lpg_reset(mpu->led[0]); in omap1_mpu_reset()
3729 omap_lpg_reset(mpu->led[1]); in omap1_mpu_reset()
3730 omap_clkm_reset(mpu); in omap1_mpu_reset()
3731 cpu_reset(CPU(mpu->cpu)); in omap1_mpu_reset()
3779 struct omap_mpu_state_s *mpu = opaque; in omap_mpu_wakeup() local
3780 CPUState *cpu = CPU(mpu->cpu); in omap_mpu_wakeup()