1b6c7dacfSAndrew Turner /*- 2b6c7dacfSAndrew Turner * Copyright (c) 2012 Damjan Marion <dmarion@FreeBSD.org> 3b6c7dacfSAndrew Turner * All rights reserved. 4b6c7dacfSAndrew Turner * 5b6c7dacfSAndrew Turner * Redistribution and use in source and binary forms, with or without 6b6c7dacfSAndrew Turner * modification, are permitted provided that the following conditions 7b6c7dacfSAndrew Turner * are met: 8b6c7dacfSAndrew Turner * 1. Redistributions of source code must retain the above copyright 9b6c7dacfSAndrew Turner * notice, this list of conditions and the following disclaimer. 10b6c7dacfSAndrew Turner * 2. Redistributions in binary form must reproduce the above copyright 11b6c7dacfSAndrew Turner * notice, this list of conditions and the following disclaimer in the 12b6c7dacfSAndrew Turner * documentation and/or other materials provided with the distribution. 13b6c7dacfSAndrew Turner * 14b6c7dacfSAndrew Turner * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15b6c7dacfSAndrew Turner * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16b6c7dacfSAndrew Turner * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17b6c7dacfSAndrew Turner * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18b6c7dacfSAndrew Turner * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19b6c7dacfSAndrew Turner * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20b6c7dacfSAndrew Turner * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21b6c7dacfSAndrew Turner * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22b6c7dacfSAndrew Turner * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23b6c7dacfSAndrew Turner * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24b6c7dacfSAndrew Turner * SUCH DAMAGE. 25b6c7dacfSAndrew Turner */ 26b6c7dacfSAndrew Turner 27b6c7dacfSAndrew Turner #ifndef AM335X_SCM_PADCONF_H 28b6c7dacfSAndrew Turner #define AM335X_SCM_PADCONF_H 29b6c7dacfSAndrew Turner 30b6c7dacfSAndrew Turner #define SLEWCTRL (0x01 << 6) /* faster(0) or slower(1) slew rate. */ 31b6c7dacfSAndrew Turner #define RXACTIVE (0x01 << 5) /* Input enable value for the Pad */ 32b6c7dacfSAndrew Turner #define PULLTYPESEL (0x01 << 4) /* Pad pullup/pulldown type selection */ 33b6c7dacfSAndrew Turner #define PULLUDEN (0x01 << 3) /* Pullup/pulldown disabled */ 34b6c7dacfSAndrew Turner 35b8397a9fSOleksandr Tymoshenko #define PADCONF_OUTPUT (PULLUDEN) 36b6c7dacfSAndrew Turner #define PADCONF_OUTPUT_PULLUP (PULLTYPESEL) 37b8397a9fSOleksandr Tymoshenko #define PADCONF_OUTPUT_PULLDOWN (0) 38b6c7dacfSAndrew Turner #define PADCONF_INPUT (RXACTIVE | PULLUDEN) 39b6c7dacfSAndrew Turner #define PADCONF_INPUT_PULLUP (RXACTIVE | PULLTYPESEL) 40b6c7dacfSAndrew Turner #define PADCONF_INPUT_PULLDOWN (RXACTIVE) 41b6c7dacfSAndrew Turner #define PADCONF_INPUT_PULLUP_SLOW (PADCONF_INPUT_PULLUP | SLEWCTRL) 42b6c7dacfSAndrew Turner 43*c49cf114SOlivier Houchard extern const struct ti_pinmux_device ti_am335x_pinmux_dev; 44*c49cf114SOlivier Houchard 45b6c7dacfSAndrew Turner #endif /* AM335X_SCM_PADCONF_H */ 46