mega2560: Add pin configuration for IT5570
This commit is contained in:
parent
f9a775e71b
commit
abf5c3f20b
@ -10,6 +10,8 @@
|
|||||||
#include <arch/uart.h>
|
#include <arch/uart.h>
|
||||||
|
|
||||||
// Mapping of 24-pin ribbon cable to parallel pins. See schematic
|
// Mapping of 24-pin ribbon cable to parallel pins. See schematic
|
||||||
|
#define IT8587
|
||||||
|
#if defined(IT8587)
|
||||||
#define PINS \
|
#define PINS \
|
||||||
/* Data (KSO0 - KSO7) - bi-directional */ \
|
/* Data (KSO0 - KSO7) - bi-directional */ \
|
||||||
PIN(d0, 1) \
|
PIN(d0, 1) \
|
||||||
@ -41,6 +43,42 @@
|
|||||||
/* Strap1 (KSI5) */ \
|
/* Strap1 (KSI5) */ \
|
||||||
/* 1K-Ohm pull-down resistor */ \
|
/* 1K-Ohm pull-down resistor */ \
|
||||||
PIN(strap_1, 12)
|
PIN(strap_1, 12)
|
||||||
|
#elif defined(IT5570)
|
||||||
|
#define PINS \
|
||||||
|
/* Data (KSO0 - KSO7) - bi-directional */ \
|
||||||
|
PIN(d0, 24) \
|
||||||
|
PIN(d1, 23) \
|
||||||
|
PIN(d2, 22) \
|
||||||
|
PIN(d3, 18) \
|
||||||
|
PIN(d4, 16) \
|
||||||
|
PIN(d5, 15) \
|
||||||
|
PIN(d6, 12) \
|
||||||
|
PIN(d7, 9) \
|
||||||
|
/* Wait# (KSO9) - input */ \
|
||||||
|
/* low to indicate cycle may begin, high to indicate cycle may end */ \
|
||||||
|
PIN(wait_n, 7) \
|
||||||
|
/* Write# (KSI0) - output */ \
|
||||||
|
/* low to indicate write cycle, high to indicate read cycle */ \
|
||||||
|
PIN(write_n, 21) \
|
||||||
|
/* DataStrobe# (KSI1) - output */ \
|
||||||
|
/* low indicates a data cycle */ \
|
||||||
|
PIN(data_n, 20) \
|
||||||
|
/* Reset# (KSI2) - output */ \
|
||||||
|
/* low requests device reset */ \
|
||||||
|
PIN(reset_n, 19) \
|
||||||
|
/* AddressStrobe# (KSI3) - output */ \
|
||||||
|
/* low indicates an address cycle */ \
|
||||||
|
PIN(addr_n, 17) \
|
||||||
|
/* Strap0 (KSI4) */ \
|
||||||
|
/* 1K-Ohm pull-down resistor */ \
|
||||||
|
PIN(strap_0, 14) \
|
||||||
|
/* Strap1 (KSI5) */ \
|
||||||
|
/* 1K-Ohm pull-down resistor */ \
|
||||||
|
PIN(strap_1, 13)
|
||||||
|
#else
|
||||||
|
#error "Unknown pin configuration: EC not specified"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define DATA_BITS \
|
#define DATA_BITS \
|
||||||
DATA_BIT(0) \
|
DATA_BIT(0) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user