mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 08:57:58 +00:00
ef509b9063
k2hk EVM is based on Texas Instruments Keystone2 Hawking/Kepler SoC. Keystone2 SoC has ARM v7 Cortex-A15 MPCore processor. Please refer the ti/k2hk_evm/README for details on the board, build and other information. This patch add support for keystone architecture and k2hk evm. Signed-off-by: Vitaly Andrianov <vitalya@ti.com> Signed-off-by: Murali Karicheri <m-karicheri2@ti.com> Signed-off-by: WingMan Kwok <w-kwok2@ti.com> Signed-off-by: Sandeep Nair <sandeep_n@ti.com>
68 lines
1.1 KiB
C
68 lines
1.1 KiB
C
/*
|
|
* MSMC controller utilities
|
|
*
|
|
* (C) Copyright 2012-2014
|
|
* Texas Instruments Incorporated, <www.ti.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <asm/arch/hardware.h>
|
|
|
|
struct mpax {
|
|
u32 mpaxl;
|
|
u32 mpaxh;
|
|
};
|
|
|
|
struct msms_regs {
|
|
u32 pid;
|
|
u32 _res_04;
|
|
u32 smcerrar;
|
|
u32 smcerrxr;
|
|
u32 smedcc;
|
|
u32 smcea;
|
|
u32 smsecc;
|
|
u32 smpfar;
|
|
u32 smpfxr;
|
|
u32 smpfr;
|
|
u32 smpfcr;
|
|
u32 _res_2c;
|
|
u32 sbndc[8];
|
|
u32 sbndm;
|
|
u32 sbnde;
|
|
u32 _res_58;
|
|
u32 cfglck;
|
|
u32 cfgulck;
|
|
u32 cfglckstat;
|
|
u32 sms_mpax_lck;
|
|
u32 sms_mpax_ulck;
|
|
u32 sms_mpax_lckstat;
|
|
u32 ses_mpax_lck;
|
|
u32 ses_mpax_ulck;
|
|
u32 ses_mpax_lckstat;
|
|
u32 smestat;
|
|
u32 smirstat;
|
|
u32 smirc;
|
|
u32 smiestat;
|
|
u32 smiec;
|
|
u32 _res_94_c0[12];
|
|
u32 smncerrar;
|
|
u32 smncerrxr;
|
|
u32 smncea;
|
|
u32 _res_d0_1fc[76];
|
|
struct mpax sms[16][8];
|
|
struct mpax ses[16][8];
|
|
};
|
|
|
|
|
|
void share_all_segments(int priv_id)
|
|
{
|
|
struct msms_regs *msmc = (struct msms_regs *)K2HK_MSMC_CTRL_BASE;
|
|
int j;
|
|
|
|
for (j = 0; j < 8; j++) {
|
|
msmc->sms[priv_id][j].mpaxh &= 0xffffff7ful;
|
|
msmc->ses[priv_id][j].mpaxh &= 0xffffff7ful;
|
|
}
|
|
}
|