]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/freescale/common/ls102xa_stream_id.c
Merge branch 'master' of git://git.denx.de/u-boot-fsl-qoriq
[karo-tx-uboot.git] / board / freescale / common / ls102xa_stream_id.c
1 /*
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
11 void 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 }