blob: 6154c9c45886cb1e2cef93f31c539b7a6d4dfcfb [file] [log] [blame]
Xiubo Li660673a2014-11-21 17:40:59 +08001/*
2 * Copyright 2014 Freescale Semiconductor
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#include <common.h>
8#include <asm/io.h>
9#include <asm/arch/ls102xa_stream_id.h>
10
11void ls102xa_config_smmu_stream_id(struct smmu_stream_id *id, uint32_t num)
12{
13 uint32_t *scfg = (uint32_t *)CONFIG_SYS_FSL_SCFG_ADDR;
14 int i;
15
16 for (i = 0; i < num; i++)
17 out_be32(scfg + id[i].offset, id[i].stream_id);
18}