Lines Matching full:sram
82 /* Amount of SRAM required */
111 void __iomem *sram; member
315 iowrite32be(op, master->sram + CMD_STAT_REG); in do_copro_command()
328 stat = ioread8(master->sram + CMD_STAT_REG); in do_copro_command()
365 /* Store message into SRAM */ in send_request()
366 iowrite32be((cmd->msg >> 32), master->sram + CMD_DATA); in send_request()
367 iowrite32be((cmd->msg & 0xffffffff), master->sram + CMD_DATA + 4); in send_request()
380 uint8_t rtag = ioread8(master->sram + STAT_RTAG) & 0xf; in read_copro_response()
381 uint8_t rcrc = ioread8(master->sram + STAT_RCRC) & 0xf; in read_copro_response()
392 rdata = ioread32be(master->sram + RSP_DATA); in read_copro_response()
448 ioread32be(master->sram + CMD_STAT_REG), in dump_ucode_trace()
449 ioread8(master->sram + STAT_RTAG), in dump_ucode_trace()
450 ioread8(master->sram + STAT_RCRC), in dump_ucode_trace()
451 ioread32be(master->sram + RSP_DATA), in dump_ucode_trace()
452 ioread32be(master->sram + INT_CNT)); in dump_ucode_trace()
458 v = ioread8(master->sram + TRACEBUF + i); in dump_ucode_trace()
725 /* Segments 2 and 3 to sysregs with byteswap (for SRAM) */ in setup_ast2500_cf_maps()
735 /* Memory cachable, regs and SRAM not cachable */ in setup_ast2500_cf_maps()
746 /* Segments 2 to sysregs with byteswap (for SRAM) */ in setup_ast2400_cf_maps()
753 /* Memory cachable, regs and SRAM not cachable */ in setup_ast2400_cf_maps()
934 * Clear SRAM. This needs to happen before we setup the GPIOs in fsi_master_acf_setup()
937 memset_io(master->sram, 0, SRAM_SIZE); in fsi_master_acf_setup()
970 val = ioread8(master->sram + CF_STARTED); in fsi_master_acf_setup()
982 iowrite8(master->t_send_delay, master->sram + SEND_DLY_REG); in fsi_master_acf_setup()
983 iowrite8(master->t_echo_delay, master->sram + ECHO_DLY_REG); in fsi_master_acf_setup()
1019 iowrite32(0, master->sram + CF_STARTED); in fsi_master_acf_terminate()
1024 iowrite8(ARB_ARM_ACK, master->sram + ARB_REG); in fsi_master_acf_terminate()
1074 iowrite8(master->t_send_delay, master->sram + SEND_DLY_REG); in fsi_master_acf_link_config()
1075 iowrite8(master->t_echo_delay, master->sram + ECHO_DLY_REG); in fsi_master_acf_link_config()
1137 iowrite8(ARB_ARM_REQ, master->sram + ARB_REG); in fsi_master_acf_gpio_request()
1151 if (ioread32(master->sram + CF_STARTED) == 0) { in fsi_master_acf_gpio_request()
1164 val = ioread8(master->sram + ARB_REG); in fsi_master_acf_gpio_request()
1182 iowrite8(0, master->sram + ARB_REG); in fsi_master_acf_gpio_release()
1202 gen_pool_free(master->sram_pool, (unsigned long)master->sram, SRAM_SIZE); in fsi_master_acf_release()
1341 /* Grab the SRAM */ in fsi_master_acf_probe()
1342 master->sram_pool = of_gen_pool_get(dev_of_node(&pdev->dev), "aspeed,sram", 0); in fsi_master_acf_probe()
1345 dev_err(&pdev->dev, "Can't find sram pool\n"); in fsi_master_acf_probe()
1349 /* Current microcode only deals with fixed location in SRAM */ in fsi_master_acf_probe()
1351 master->sram = (void __iomem *)gen_pool_alloc_algo(master->sram_pool, SRAM_SIZE, in fsi_master_acf_probe()
1353 if (!master->sram) { in fsi_master_acf_probe()
1355 dev_err(&pdev->dev, "Failed to allocate sram from pool\n"); in fsi_master_acf_probe()
1358 dev_dbg(&pdev->dev, "SRAM allocation @%lx\n", in fsi_master_acf_probe()
1360 (unsigned long)master->sram)); in fsi_master_acf_probe()
1407 gen_pool_free(master->sram_pool, (unsigned long)master->sram, SRAM_SIZE); in fsi_master_acf_probe()