Deleted Added
full compact
am335x_scm_padconf.h (273262) am335x_scm_padconf.h (285867)
1/*-
2 * Copyright (c) 2012 Damjan Marion <dmarion@FreeBSD.org>
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2012 Damjan Marion <dmarion@FreeBSD.org>
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/arm/ti/am335x/am335x_scm_padconf.h 273262 2014-10-18 17:51:34Z andrew $
26 * $FreeBSD: head/sys/arm/ti/am335x/am335x_scm_padconf.h 285867 2015-07-25 03:03:32Z gonzo $
27 */
28
29#ifndef AM335X_SCM_PADCONF_H
30#define AM335X_SCM_PADCONF_H
31
32#define SLEWCTRL (0x01 << 6) /* faster(0) or slower(1) slew rate. */
33#define RXACTIVE (0x01 << 5) /* Input enable value for the Pad */
34#define PULLTYPESEL (0x01 << 4) /* Pad pullup/pulldown type selection */
35#define PULLUDEN (0x01 << 3) /* Pullup/pulldown disabled */
36
27 */
28
29#ifndef AM335X_SCM_PADCONF_H
30#define AM335X_SCM_PADCONF_H
31
32#define SLEWCTRL (0x01 << 6) /* faster(0) or slower(1) slew rate. */
33#define RXACTIVE (0x01 << 5) /* Input enable value for the Pad */
34#define PULLTYPESEL (0x01 << 4) /* Pad pullup/pulldown type selection */
35#define PULLUDEN (0x01 << 3) /* Pullup/pulldown disabled */
36
37#define PADCONF_OUTPUT (0)
37#define PADCONF_OUTPUT (PULLUDEN)
38#define PADCONF_OUTPUT_PULLUP (PULLTYPESEL)
38#define PADCONF_OUTPUT_PULLUP (PULLTYPESEL)
39#define PADCONF_OUTPUT_PULLDOWN (0)
39#define PADCONF_INPUT (RXACTIVE | PULLUDEN)
40#define PADCONF_INPUT_PULLUP (RXACTIVE | PULLTYPESEL)
41#define PADCONF_INPUT_PULLDOWN (RXACTIVE)
42#define PADCONF_INPUT_PULLUP_SLOW (PADCONF_INPUT_PULLUP | SLEWCTRL)
43
44#endif /* AM335X_SCM_PADCONF_H */
40#define PADCONF_INPUT (RXACTIVE | PULLUDEN)
41#define PADCONF_INPUT_PULLUP (RXACTIVE | PULLTYPESEL)
42#define PADCONF_INPUT_PULLDOWN (RXACTIVE)
43#define PADCONF_INPUT_PULLUP_SLOW (PADCONF_INPUT_PULLUP | SLEWCTRL)
44
45#endif /* AM335X_SCM_PADCONF_H */