Home
last modified time | relevance | path

Searched refs:mpsc_base (Results 1 – 2 of 2) sorted by relevance

/arch/powerpc/boot/
Dmpsc.c47 static volatile char *mpsc_base; variable
53 chr1 = in_le32((u32 *)(mpsc_base + MPSC_CHR_1)) & 0x00ff0000; in mpsc_open()
54 chr2 = in_le32((u32 *)(mpsc_base + MPSC_CHR_2)) & ~(MPSC_CHR_2_TA in mpsc_open()
57 out_le32((u32 *)(mpsc_base + MPSC_CHR_4), MPSC_CHR_4_Z); in mpsc_open()
58 out_le32((u32 *)(mpsc_base + MPSC_CHR_5), in mpsc_open()
60 out_le32((u32 *)(mpsc_base + MPSC_CHR_2), chr2 | MPSC_CHR_2_EH); in mpsc_open()
66 while (in_le32((u32 *)(mpsc_base + MPSC_CHR_2)) & MPSC_CHR_2_TCS); in mpsc_putc()
68 out_le32((u32 *)(mpsc_base + MPSC_CHR_1), chr1 | c); in mpsc_putc()
69 out_le32((u32 *)(mpsc_base + MPSC_CHR_2), chr2 | MPSC_CHR_2_TCS); in mpsc_putc()
80 c = in_8((u8 *)(mpsc_base + MPSC_CHR_10 + 2)); in mpsc_getc()
[all …]
/arch/powerpc/sysdev/
Dmv64x60_udbg.c29 static void __iomem *mpsc_base; variable
37 while(in_le32(mpsc_base + MPSC_0_CR2_OFFSET) & MPSC_CHR_2_TCS) in mv64x60_udbg_putc()
39 out_le32(mpsc_base + MPSC_0_CR1_OFFSET, c); in mv64x60_udbg_putc()
40 out_le32(mpsc_base + MPSC_0_CR2_OFFSET, MPSC_CHR_2_TCS); in mv64x60_udbg_putc()
56 c = in_8(mpsc_base + MPSC_0_CHR_10_OFFSET + 2); in mv64x60_udbg_getc()
57 out_8(mpsc_base + MPSC_0_CHR_10_OFFSET + 2, c); in mv64x60_udbg_getc()
128 mpsc_base = ioremap(r[0].start, resource_size(&r[0])); in mv64x60_udbg_init()
129 if (!mpsc_base) in mv64x60_udbg_init()
134 iounmap(mpsc_base); in mv64x60_udbg_init()