1239281Sgonzo/*- 2239281Sgonzo * Copyright (c) 2012 Damjan Marion <dmarion@FreeBSD.org> 3239281Sgonzo * All rights reserved. 4239281Sgonzo * 5239281Sgonzo * Redistribution and use in source and binary forms, with or without 6239281Sgonzo * modification, are permitted provided that the following conditions 7239281Sgonzo * are met: 8239281Sgonzo * 1. Redistributions of source code must retain the above copyright 9239281Sgonzo * notice, this list of conditions and the following disclaimer. 10239281Sgonzo * 2. Redistributions in binary form must reproduce the above copyright 11239281Sgonzo * notice, this list of conditions and the following disclaimer in the 12239281Sgonzo * documentation and/or other materials provided with the distribution. 13239281Sgonzo * 14239281Sgonzo * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15239281Sgonzo * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16239281Sgonzo * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17239281Sgonzo * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18239281Sgonzo * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19239281Sgonzo * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20239281Sgonzo * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21239281Sgonzo * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22239281Sgonzo * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23239281Sgonzo * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24239281Sgonzo * SUCH DAMAGE. 25273262Sandrew * 26273262Sandrew * $FreeBSD: releng/11.0/sys/arm/ti/am335x/am335x_scm_padconf.h 285867 2015-07-25 03:03:32Z gonzo $ 27239281Sgonzo */ 28239281Sgonzo 29273262Sandrew#ifndef AM335X_SCM_PADCONF_H 30273262Sandrew#define AM335X_SCM_PADCONF_H 31239281Sgonzo 32239281Sgonzo#define SLEWCTRL (0x01 << 6) /* faster(0) or slower(1) slew rate. */ 33239281Sgonzo#define RXACTIVE (0x01 << 5) /* Input enable value for the Pad */ 34239281Sgonzo#define PULLTYPESEL (0x01 << 4) /* Pad pullup/pulldown type selection */ 35239281Sgonzo#define PULLUDEN (0x01 << 3) /* Pullup/pulldown disabled */ 36239281Sgonzo 37285867Sgonzo#define PADCONF_OUTPUT (PULLUDEN) 38239281Sgonzo#define PADCONF_OUTPUT_PULLUP (PULLTYPESEL) 39285867Sgonzo#define PADCONF_OUTPUT_PULLDOWN (0) 40239281Sgonzo#define PADCONF_INPUT (RXACTIVE | PULLUDEN) 41239281Sgonzo#define PADCONF_INPUT_PULLUP (RXACTIVE | PULLTYPESEL) 42239281Sgonzo#define PADCONF_INPUT_PULLDOWN (RXACTIVE) 43239281Sgonzo#define PADCONF_INPUT_PULLUP_SLOW (PADCONF_INPUT_PULLUP | SLEWCTRL) 44239281Sgonzo 45273262Sandrew#endif /* AM335X_SCM_PADCONF_H */ 46