nctgpio.c (523af57ea24624de9430a0bf980b515ba7148b53) nctgpio.c (9d1208bbd27ed9c7b3fd10247e48e5df70d9cbda)
1/*-
2 * Copyright (c) 2016 Daniel Wyatt <Daniel.Wyatt@gmail.com>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 126 unchanged lines hidden (view full) ---

135 {
136 .chip_id = 0x1061,
137 .descr = "Nuvoton NCT5104D",
138 },
139 {
140 .chip_id = 0xc452,
141 .descr = "Nuvoton NCT5104D (PC-Engines APU)",
142 },
1/*-
2 * Copyright (c) 2016 Daniel Wyatt <Daniel.Wyatt@gmail.com>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 126 unchanged lines hidden (view full) ---

135 {
136 .chip_id = 0x1061,
137 .descr = "Nuvoton NCT5104D",
138 },
139 {
140 .chip_id = 0xc452,
141 .descr = "Nuvoton NCT5104D (PC-Engines APU)",
142 },
143 {
144 .chip_id = 0xc453,
145 .descr = "Nuvoton NCT5104D (PC-Engines APU3)",
146 },
143};
144
145static void
146write_cfg_reg_1(struct nct_softc *sc, uint8_t reg, uint8_t value)
147{
148 GPIO_ASSERT_LOCKED(sc);
149 bus_write_1(sc->portres, 0, reg);
150 NCT_BARRIER_WRITE(sc);

--- 652 unchanged lines hidden ---
147};
148
149static void
150write_cfg_reg_1(struct nct_softc *sc, uint8_t reg, uint8_t value)
151{
152 GPIO_ASSERT_LOCKED(sc);
153 bus_write_1(sc->portres, 0, reg);
154 NCT_BARRIER_WRITE(sc);

--- 652 unchanged lines hidden ---