Lines Matching +full:port +full:- +full:base
1 // SPDX-License-Identifier: GPL-2.0+
14 * We cannot use any public GPIO APIs in <asm-generic/gpio.h> to control this
19 * Check <asm/arch-quark/quark.h> for more details.
23 u32 base, port, val; in board_assert_perst() local
25 /* retrieve the GPIO IO base */ in board_assert_perst()
26 qrk_pci_read_config_dword(QUARK_LEGACY_BRIDGE, LB_GBA, &base); in board_assert_perst()
27 base = (base & 0xffff) & ~0x7f; in board_assert_perst()
30 port = base + 0x20; in board_assert_perst()
31 val = inl(port); in board_assert_perst()
33 outl(val, port); in board_assert_perst()
36 port = base + 0x24; in board_assert_perst()
37 val = inl(port); in board_assert_perst()
39 outl(val, port); in board_assert_perst()
42 port = base + 0x28; in board_assert_perst()
43 val = inl(port); in board_assert_perst()
45 outl(val, port); in board_assert_perst()
50 u32 base, port, val; in board_deassert_perst() local
52 /* retrieve the GPIO IO base */ in board_deassert_perst()
53 qrk_pci_read_config_dword(QUARK_LEGACY_BRIDGE, LB_GBA, &base); in board_deassert_perst()
54 base = (base & 0xffff) & ~0x7f; in board_deassert_perst()
56 /* pull it up (de-assert) */ in board_deassert_perst()
57 port = base + 0x28; in board_deassert_perst()
58 val = inl(port); in board_deassert_perst()
60 outl(val, port); in board_deassert_perst()