]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/cpu/armv7/s5p-common/sromc.c
2 * Copyright (C) 2010 Samsung Electronics
3 * Naveen Krishna Ch <ch.naveen@samsung.com>
5 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/arch/sromc.h>
13 * s5p_config_sromc() - select the proper SROMC Bank and configure the
14 * band width control and bank control registers
16 * srom_bw_conf - SMC Band witdh reg configuration value
17 * srom_bc_conf - SMC Bank Control reg configuration value
19 void s5p_config_sromc(u32 srom_bank
, u32 srom_bw_conf
, u32 srom_bc_conf
)
22 struct s5p_sromc
*srom
=
23 (struct s5p_sromc
*)samsung_get_base_sromc();
25 /* Configure SMC_BW register to handle proper SROMC bank */
27 tmp
&= ~(0xF << (srom_bank
* 4));
31 /* Configure SMC_BC register */
32 srom
->bc
[srom_bank
] = srom_bc_conf
;