Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/lnxdsp 544 sc57x macros #3

Merged
merged 2 commits into from
Feb 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions arch/arm/mach-sc57x/icc.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
void platform_send_ipi_cpu(unsigned int cpu, int irq)
{
BUG_ON(cpu > 2);
writel(cpu + TRGM_SOFT0, __io_address(REG_TRU0_MTR));
writel(cpu + TRGM_SOFT3, __io_address(REG_TRU0_MTR));
}

void platform_send_ipi(cpumask_t callmap, int irq)
Expand Down Expand Up @@ -44,8 +44,8 @@ void platform_res_manage_free_irq(uint16_t subid)

void platform_ipi_init(void)
{
writel(TRGM_SOFT0, __io_address(REG_TRU0_SSR71));
writel(TRGM_SOFT1, __io_address(REG_TRU0_SSR75));
writel(TRGM_SOFT2, __io_address(REG_TRU0_SSR79));
writel(TRGM_SOFT3, __io_address(REG_TRU0_SSR71));
writel(TRGM_SOFT4, __io_address(REG_TRU0_SSR75));
writel(TRGM_SOFT5, __io_address(REG_TRU0_SSR79));
writel(1, __io_address(REG_TRU0_GCTL));
}
14 changes: 7 additions & 7 deletions arch/arm/mach-sc57x/include/mach/sc57x.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
/* =========================
WDOG1
========================= */
#define REG_WDOG1_CTL 0x31009000 /* WDOG1 Control Register */
#define REG_WDOG1_CTL 0x31008800 /* WDOG1 Control Register */

/* =========================
* CRC0 MMR
Expand Down Expand Up @@ -145,18 +145,18 @@
/* =========================
TRU0
========================= */
#define REG_TRU0_SSR71 0x3108A118 /* TRU0 Slave Select Register */
#define REG_TRU0_SSR75 0x3108A128 /* TRU0 Slave Select Register */
#define REG_TRU0_SSR79 0x3108A138 /* TRU0 Slave Select Register */
#define REG_TRU0_SSR71 0x3108A11C /* TRU0 Slave Select Register */
#define REG_TRU0_SSR75 0x3108A12C /* TRU0 Slave Select Register */
#define REG_TRU0_SSR79 0x3108A13C /* TRU0 Slave Select Register */
#define REG_TRU0_MTR 0x3108A7E0 /* TRU0 Master Trigger Register */
#define REG_TRU0_GCTL 0x3108A7F4 /* TRU0 Global Control Register */

/* ===================================
Trigger Master Definitions
=================================== */
#define TRGM_SOFT0 70 /* Software-driven Trigger 0 */
#define TRGM_SOFT1 71 /* Software-driven Trigger 1 */
#define TRGM_SOFT2 72 /* Software-driven Trigger 2 */
#define TRGM_SOFT3 70 /* Software-driven Trigger 3 */
#define TRGM_SOFT4 71 /* Software-driven Trigger 4 */
#define TRGM_SOFT5 72 /* Software-driven Trigger 5 */

/* =========================
RCU0
Expand Down