Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Lukasz Majewski | ce86bf9 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2017 DENX Software Engineering |
| 4 | * Lukasz Majewski, DENX Software Engineering, lukma@denx.de |
Lukasz Majewski | ce86bf9 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __DISPL5_COMMON_H_ |
| 8 | #define __DISPL5_COMMON_H_ |
| 9 | |
| 10 | #define UART_PAD_CTRL (PAD_CTL_PKE | PAD_CTL_PUE | \ |
| 11 | PAD_CTL_PUS_100K_UP | PAD_CTL_SPEED_MED | \ |
| 12 | PAD_CTL_DSE_40ohm | PAD_CTL_SRE_FAST | PAD_CTL_HYS) |
| 13 | |
| 14 | #define USDHC_PAD_CTRL (PAD_CTL_PKE | PAD_CTL_PUE | \ |
| 15 | PAD_CTL_PUS_47K_UP | PAD_CTL_SPEED_LOW | \ |
| 16 | PAD_CTL_DSE_80ohm | PAD_CTL_SRE_FAST | PAD_CTL_HYS) |
| 17 | |
| 18 | #define ENET_PAD_CTRL (PAD_CTL_PKE | PAD_CTL_PUE | \ |
| 19 | PAD_CTL_PUS_22K_UP | PAD_CTL_SPEED_MED | \ |
| 20 | PAD_CTL_DSE_40ohm | PAD_CTL_HYS) |
| 21 | |
| 22 | #define SPI_PAD_CTRL (PAD_CTL_HYS | \ |
| 23 | PAD_CTL_PUS_100K_DOWN | PAD_CTL_SPEED_MED | \ |
| 24 | PAD_CTL_DSE_40ohm | PAD_CTL_SRE_FAST) |
| 25 | |
| 26 | #define I2C_PAD_CTRL (PAD_CTL_PKE | PAD_CTL_PUE | \ |
| 27 | PAD_CTL_PUS_100K_UP | PAD_CTL_SPEED_MED | \ |
| 28 | PAD_CTL_DSE_40ohm | PAD_CTL_HYS | \ |
| 29 | PAD_CTL_ODE | PAD_CTL_SRE_FAST) |
| 30 | |
| 31 | #define ENET_PAD_CTRL_CLK ((PAD_CTL_PUS_100K_UP & ~PAD_CTL_PKE) | \ |
| 32 | PAD_CTL_SPEED_HIGH | PAD_CTL_DSE_40ohm | PAD_CTL_SRE_FAST) |
| 33 | |
Lukasz Majewski | ce86bf9 | 2017-10-31 17:58:05 +0100 | [diff] [blame] | 34 | #endif /* __DISPL5_COMMON_H_ */ |