~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/staging/crystalhd/crystalhd_hw.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
302
302
        crystalhd_enable_interrupts(adp);
303
303
 
304
304
        /* Enable the option for getting the total no. of DWORDS
305
 
         * that have been transfered by the RXDMA engine
 
305
         * that have been transferred by the RXDMA engine
306
306
         */
307
307
        dbg_options = crystalhd_reg_rd(adp, MISC1_DMA_DEBUG_OPTIONS_REG);
308
308
        dbg_options |= 0x10;
1776
1776
                return sts;
1777
1777
        }
1778
1778
 
1779
 
        /*Get the Responce Address*/
 
1779
        /*Get the Response Address*/
1780
1780
        cmd_res_addr = bc_dec_reg_rd(hw->adp, Cpu2HstMbx1);
1781
1781
 
1782
1782
        /*Read the Response*/
1965
1965
                } else {
1966
1966
                        BCMLOG_ERR("Insufficient Memory For RX\n");
1967
1967
                        crystalhd_hw_free_dma_rings(hw);
 
1968
                        kfree(rpkt);
1968
1969
                        return BC_STS_INSUFF_RES;
1969
1970
                }
1970
1971
                rpkt->desc_mem.pdma_desc_start = mem;
2366
2367
        BCMLOG(BCMLOG_INFO, "clock is moving to %d with n %d with vco_mg %d\n",
2367
2368
               hw->core_clock_mhz, n, vco_mg);
2368
2369
 
2369
 
        /* Change the DRAM refresh rate to accomodate the new frequency */
 
2370
        /* Change the DRAM refresh rate to accommodate the new frequency */
2370
2371
        /* refresh reg = ((refresh_rate * clock_rate)/16) - 1; rounding up*/
2371
2372
        refresh_reg = (7 * hw->core_clock_mhz / 16);
2372
2373
        bc_dec_reg_wr(hw->adp, SDRAM_REF_PARAM, ((1 << 12) | refresh_reg));