X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Famcc%2Fyucca%2Fyucca.h;h=66f75847d35ee355cde5fb6bd28f2802bd61d6b8;hb=3754d6987cac587ba9278cb679d6d70d286dde76;hp=91caee8a9e3d47b61fa63c320aa9f5388b8e8069;hpb=6c5879f380be38d85fef0d3aba3353358f4b2ff4;p=oweals%2Fu-boot.git diff --git a/board/amcc/yucca/yucca.h b/board/amcc/yucca/yucca.h index 91caee8a9e..66f75847d3 100644 --- a/board/amcc/yucca/yucca.h +++ b/board/amcc/yucca/yucca.h @@ -349,25 +349,6 @@ void display_config_selection(config_selection_t *config_select_P); | +----------------------------------------------------------------------------*/ -#define GPIO_MAX 32 -#define GPIO_ALT1_SEL 0x40000000 /* GPIO_OUT value put in GPIO_TSx for the GPIO nb 0 */ -#define GPIO_ALT2_SEL 0x80000000 /* GPIO_OUT value put in GPIO_TSx for the GPIO nb 1 */ -#define GPIO_ALT3_SEL 0xC0000000 /* GPIO_OUT value put in GPIO_TSx for the GPIO nb 2 */ -#define GPIO_MASK 0xC0000000 /* GPIO_MASK */ -#define GPIO_IN_SEL 0x40000000 /* GPIO_IN value put in GPIO_ISx for the GPIO nb 0 */ - /* For the other GPIO number, you must shift */ -/*----------------------------------------------------------------------------+ -| Declare GPIO Configuration values -+----------------------------------------------------------------------------*/ -typedef enum gpio_select { GPIO_SEL, GPIO_ALT1, GPIO_ALT2, GPIO_ALT3 } gpio_select_t; -typedef enum gpio_driver { GPIO_DIS, GPIO_IN, GPIO_OUT, GPIO_BI } gpio_driver_t; - -typedef struct { - unsigned long add; /* gpio core base address */ - gpio_driver_t in_out; /* Driver Setting */ - gpio_select_t alt_nb; /* Selected Alternate */ -} gpio_param_s; - unsigned long auto_calc_speed(void); /*----------------------------------------------------------------------------+ | Prototypes