Lines Matching refs:dsp_index
204 static u32 boot_loader_read_mem32(struct hpi_adapter_obj *pao, int dsp_index,
208 int dsp_index, u32 address, u32 data);
211 int dsp_index);
213 static u16 boot_loader_test_memory(struct hpi_adapter_obj *pao, int dsp_index,
217 int dsp_index);
220 int dsp_index);
222 static u16 boot_loader_test_pld(struct hpi_adapter_obj *pao, int dsp_index);
1504 static u32 boot_loader_read_mem32(struct hpi_adapter_obj *pao, int dsp_index, in boot_loader_read_mem32() argument
1511 if (dsp_index == 0) { in boot_loader_read_mem32()
1534 } else if (dsp_index == 1) { in boot_loader_read_mem32()
1547 int dsp_index, u32 address, u32 data) in boot_loader_write_mem32() argument
1553 if (dsp_index == 0) { in boot_loader_write_mem32()
1576 } else if (dsp_index == 1) { in boot_loader_write_mem32()
1592 static u16 boot_loader_config_emif(struct hpi_adapter_obj *pao, int dsp_index) in boot_loader_config_emif() argument
1594 if (dsp_index == 0) { in boot_loader_config_emif()
1607 boot_loader_write_mem32(pao, dsp_index, 0x01800000, 0x3779); in boot_loader_config_emif()
1618 boot_loader_write_mem32(pao, dsp_index, 0x01800008, setting); in boot_loader_config_emif()
1619 if (setting != boot_loader_read_mem32(pao, dsp_index, in boot_loader_config_emif()
1631 boot_loader_write_mem32(pao, dsp_index, 0x01800004, setting); in boot_loader_config_emif()
1632 if (setting != boot_loader_read_mem32(pao, dsp_index, in boot_loader_config_emif()
1643 boot_loader_write_mem32(pao, dsp_index, 0x01800010, setting); in boot_loader_config_emif()
1644 if (setting != boot_loader_read_mem32(pao, dsp_index, in boot_loader_config_emif()
1654 boot_loader_write_mem32(pao, dsp_index, 0x01800014, setting); in boot_loader_config_emif()
1655 if (setting != boot_loader_read_mem32(pao, dsp_index, in boot_loader_config_emif()
1661 boot_loader_write_mem32(pao, dsp_index, 0x01800018, in boot_loader_config_emif()
1666 boot_loader_write_mem32(pao, dsp_index, 0x0180001C, in boot_loader_config_emif()
1669 } else if (dsp_index == 1) { in boot_loader_config_emif()
1716 boot_loader_write_mem32(pao, dsp_index, 0x01B7C100, 0x0000); in boot_loader_config_emif()
1719 boot_loader_write_mem32(pao, dsp_index, 0x01B7C120, 0x8002); in boot_loader_config_emif()
1721 boot_loader_write_mem32(pao, dsp_index, 0x01B7C11C, 0x8001); in boot_loader_config_emif()
1723 boot_loader_write_mem32(pao, dsp_index, 0x01B7C118, 0x8000); in boot_loader_config_emif()
1730 boot_loader_write_mem32(pao, dsp_index, 0x01B7C100, 0x0001); in boot_loader_config_emif()
1746 if ((boot_loader_read_mem32(pao, dsp_index, 0x01B7C100) & 0xF) in boot_loader_config_emif()
1752 boot_loader_write_mem32(pao, dsp_index, C6713_EMIF_GCTL, in boot_loader_config_emif()
1766 boot_loader_write_mem32(pao, dsp_index, C6713_EMIF_CE0, in boot_loader_config_emif()
1788 boot_loader_write_mem32(pao, dsp_index, C6713_EMIF_SDRAMEXT, in boot_loader_config_emif()
1808 boot_loader_write_mem32(pao, dsp_index, C6713_EMIF_SDRAMCTL, in boot_loader_config_emif()
1814 boot_loader_write_mem32(pao, dsp_index, in boot_loader_config_emif()
1818 } else if (dsp_index == 2) { in boot_loader_config_emif()
1825 static u16 boot_loader_test_memory(struct hpi_adapter_obj *pao, int dsp_index, in boot_loader_test_memory() argument
1842 boot_loader_write_mem32(pao, dsp_index, test_addr, in boot_loader_test_memory()
1844 data = boot_loader_read_mem32(pao, dsp_index, in boot_loader_test_memory()
1850 test_data, data, dsp_index); in boot_loader_test_memory()
1863 boot_loader_write_mem32(pao, dsp_index, test_addr, test_data); in boot_loader_test_memory()
1864 boot_loader_write_mem32(pao, dsp_index, test_addr + 4, 0); in boot_loader_test_memory()
1865 data = boot_loader_read_mem32(pao, dsp_index, test_addr); in boot_loader_test_memory()
1870 data, dsp_index); in boot_loader_test_memory()
1874 boot_loader_write_mem32(pao, dsp_index, test_addr, 0x0); in boot_loader_test_memory()
1880 boot_loader_write_mem32(pao, dsp_index, test_addr, 0x0); in boot_loader_test_memory()
1886 int dsp_index) in boot_loader_test_internal_memory() argument
1889 if (dsp_index == 0) { in boot_loader_test_internal_memory()
1892 err = boot_loader_test_memory(pao, dsp_index, 0x00000000, in boot_loader_test_internal_memory()
1896 err = boot_loader_test_memory(pao, dsp_index, in boot_loader_test_internal_memory()
1898 } else if (dsp_index == 1) { in boot_loader_test_internal_memory()
1901 err = boot_loader_test_memory(pao, dsp_index, 0x00000000, in boot_loader_test_internal_memory()
1905 err = boot_loader_test_memory(pao, dsp_index, in boot_loader_test_internal_memory()
1916 int dsp_index) in boot_loader_test_external_memory() argument
1921 if (dsp_index == 0) { in boot_loader_test_external_memory()
1930 } else if (dsp_index == 1) { in boot_loader_test_external_memory()
1937 if (boot_loader_test_memory(pao, dsp_index, dRAM_start_address, in boot_loader_test_external_memory()
1943 static u16 boot_loader_test_pld(struct hpi_adapter_obj *pao, int dsp_index) in boot_loader_test_pld() argument
1946 if (dsp_index == 0) { in boot_loader_test_pld()
1950 data = boot_loader_read_mem32(pao, dsp_index, in boot_loader_test_pld()
1954 data = boot_loader_read_mem32(pao, dsp_index, in boot_loader_test_pld()
1959 } else if (dsp_index == 1) { in boot_loader_test_pld()
1963 data = boot_loader_read_mem32(pao, dsp_index, in boot_loader_test_pld()
1968 boot_loader_write_mem32(pao, dsp_index, 0x90000000, in boot_loader_test_pld()