ppc4xx: Big header cleanup part 2, mostly PPC405 related
PATCH 5/5 ppc4xx: Big header cleanup part 2, mostly PPC405 related
This cleanup is done by creating header files for all SoC versions and moving the SoC specific defines into these special headers. This way the common header ppc405.h and ppc440.h can be cleaned up finally.
As a part from this cleanup, the GPIO definitions for PPC405EP are corrected. The high and low parts of the registers (for example CONFIG_SYS_GPIO0_OSRL vs. CONFIG_SYS_GPIO0_OSRH) have been defined in the wrong order. This patch now fixes this issue by switching these xxxH and xxxL values. This brings the GPIO 405EP port in sync with all other PPC4xx ports.
--- arch/powerpc/cpu/ppc4xx/4xx_uart.c | 4 +- arch/powerpc/cpu/ppc4xx/cpu_init.c | 2 +- arch/powerpc/cpu/ppc4xx/gpio.c | 5 + arch/powerpc/cpu/ppc4xx/speed.c | 2 +- arch/powerpc/include/asm/ppc405.h | 799 ++---------------------------- arch/powerpc/include/asm/ppc405cr.h | 74 +++ arch/powerpc/include/asm/ppc405ep.h | 221 ++++++++ arch/powerpc/include/asm/ppc405ex.h | 57 ++- arch/powerpc/include/asm/ppc405ez.h | 69 +++ arch/powerpc/include/asm/ppc405gp.h | 77 +++ arch/powerpc/include/asm/ppc440.h | 64 --- arch/powerpc/include/asm/ppc440ep_gr.h | 2 - arch/powerpc/include/asm/ppc440epx_grx.h | 2 - arch/powerpc/include/asm/ppc440sp.h | 2 - arch/powerpc/include/asm/ppc440spe.h | 2 - arch/powerpc/include/asm/ppc460ex_gt.h | 2 - arch/powerpc/include/asm/ppc460sx.h | 2 - arch/powerpc/include/asm/ppc4xx.h | 69 +++ board/amcc/acadia/pll.c | 28 +- board/mpl/mip405/init.S | 3 +- board/mpl/mip405/mip405.c | 1 + board/mpl/pip405/init.S | 3 +- board/sc3/sc3.c | 10 +- include/configs/ASH405.h | 10 +- include/configs/CATcenter.h | 12 +- include/configs/CMS700.h | 12 +- include/configs/DP405.h | 12 +- include/configs/G2000.h | 10 +- include/configs/HH405.h | 10 +- include/configs/HUB405.h | 10 +- include/configs/PLU405.h | 10 +- include/configs/PPChameleonEVB.h | 12 +- include/configs/VOH405.h | 10 +- include/configs/VOM405.h | 12 +- include/configs/WUH405.h | 10 +- include/configs/bubinga.h | 10 +- include/configs/quad100hd.h | 10 +- include/configs/zeus.h | 10 +- 38 files changed, 712 insertions(+), 948 deletions(-)
arch/powerpc/cpu/ppc4xx/4xx_uart.c +2 -2
@@ -312,10 +312,10 @@ static void serial_divs (int baudrate, unsigned long *pudiv, } *pudiv = udiv; -mfcpr (CPC0_PERD0 , reg); +mfcpr (CPR0_PERD0 , reg); reg &= ~0x0000ffff ; reg |= ((udiv -0 ) <<8 ) | (udiv -0 ); -mtcpr (CPC0_PERD0 , reg); +mtcpr (CPR0_PERD0 , reg); *pbdiv = div / udiv; }#endif /* defined(CONFIG_440) && !defined(CONFIG_SYS_EXT_SERIAL_CLK) */
arch/powerpc/cpu/ppc4xx/cpu_init.c +1 -1
@@ -266,7 +266,7 @@ cpu_init_f (void)/* * Set EMAC noise filter bits */ -mtdcr (CPC0_EPCTL ,CPC0_EPRCSR_E0NFE |CPC0_EPRCSR_E1NFE ); +mtdcr (CPC0_EPCTL ,CPC0_EPCTL_E0NFE |CPC0_EPCTL_E1NFE );#endif /* CONFIG_405EP */ #if defined(CONFIG_SYS_4xx_GPIO_TABLE)
arch/powerpc/cpu/ppc4xx/gpio.c +5 -0
@@ -26,6 +26,9 @@#include <asm/io.h> #include <asm/ppc4xx-gpio.h> +/* Only compile this file for boards with GPIO support */ +#if defined(GPIO0_BASE ) +#if defined(CONFIG_SYS_4xx_GPIO_TABLE)gpio_param_s const gpio_tab[GPIO_GROUP_MAX ][GPIO_MAX ] = CONFIG_SYS_4xx_GPIO_TABLE;#endif
@@ -252,4 +255,6 @@ void gpio_set_chip_configuration(void) } } } + +#endif /* GPIO0_BASE */ #endif /* CONFIG_SYS_4xx_GPIO_TABLE */
arch/powerpc/cpu/ppc4xx/speed.c +1 -1
@@ -902,7 +902,7 @@ void get_sys_info (PPC4xx_SYS_INFO * sysInfo)/* * Read CPR_PRIMAD register */ -mfcpr (CPC0_PRIMAD , cpr_primad); +mfcpr (CPR0_PRIMAD , cpr_primad);/* * Determine PLB_DIV.
arch/powerpc/include/asm/ppc405.h +35 -764
808 lines not on this page · raw message
arch/powerpc/include/asm/ppc405cr.h +74 -0
78 lines not on this page · raw message
arch/powerpc/include/asm/ppc405ep.h +221 -0
225 lines not on this page · raw message
arch/powerpc/include/asm/ppc405ex.h +56 -1
62 lines not on this page · raw message
arch/powerpc/include/asm/ppc405ez.h +69 -0
75 lines not on this page · raw message
arch/powerpc/include/asm/ppc405gp.h +77 -0
81 lines not on this page · raw message
arch/powerpc/include/asm/ppc440.h +0 -64
74 lines not on this page · raw message
arch/powerpc/include/asm/ppc440ep_gr.h +0 -2
@@ -25,8 +25,6 @@#define CONFIG_NAND_NDFC -#define CONFIG_SYS_PPC4xx_PLB4_ARBITER -/* * Some SoC specific registers (not common for all 440 SoC's) */
arch/powerpc/include/asm/ppc440epx_grx.h +0 -2
@@ -25,8 +25,6 @@#define CONFIG_NAND_NDFC -#define CONFIG_SYS_PPC4xx_PLB4_ARBITER -/* * Some SoC specific registers (not common for all 440 SoC's) */
arch/powerpc/include/asm/ppc440sp.h +0 -2
@@ -23,8 +23,6 @@#define CONFIG_SDRAM_PPC4xx_IBM_DDR2/* IBM DDR(2) controller */ -#define CONFIG_SYS_PPC4xx_PLB4_ARBITER -/* * Some SoC specific registers (not common for all 440 SoC's) */
arch/powerpc/include/asm/ppc440spe.h +0 -2
@@ -23,8 +23,6 @@#define CONFIG_SDRAM_PPC4xx_IBM_DDR2/* IBM DDR(2) controller */ -#define CONFIG_SYS_PPC4xx_PLB4_ARBITER -/* * Some SoC specific registers (not common for all 440 SoC's) */
arch/powerpc/include/asm/ppc460ex_gt.h +0 -2
@@ -25,8 +25,6 @@#define CONFIG_NAND_NDFC -#define CONFIG_SYS_PPC4xx_PLB4_ARBITER -/* * Some SoC specific registers */
arch/powerpc/include/asm/ppc460sx.h +0 -2
@@ -23,8 +23,6 @@#define CONFIG_SDRAM_PPC4xx_IBM_DDR2/* IBM DDR(2) controller */ -#define CONFIG_SYS_PPC4xx_PLB4_ARBITER -#define GPIO0_BASE (CONFIG_SYS_PERIPHERAL_BASE + 0x00000700)#define SDR0_SRST0_DMC 0x00200000
arch/powerpc/include/asm/ppc4xx.h +69 -0
81 lines not on this page · raw message
board/amcc/acadia/pll.c +14 -14
@@ -53,9 +53,9 @@ void board_pll_init_f(void)/* Initialize PLL */ mtcpr (CPR0_PLLC ,0x0000033c );mtcpr (CPR0_PLLD ,0x0c010200 ); -mtcpr (CPC0_PRIMAD ,0x04060c0c ); -mtcpr (CPC0_PERD0 ,0x000c0000 );/* SPI clk div. eq. OPB clk div. */ - mtcpr(CPR0_CLKUP, 0x40000000); +mtcpr (CPR0_PRIMAD ,0x04060c0c ); +mtcpr (CPR0_PERD0 ,0x000c0000 );/* SPI clk div. eq. OPB clk div. */ + mtcpr(CPR0_CLKUPD, 0x40000000); }#elif defined(PLLMR0_266_160_80)
@@ -85,10 +85,10 @@ void board_pll_init_f(void)/* Initialize PLL */ mtcpr (CPR0_PLLC ,0x20000238 );mtcpr (CPR0_PLLD ,0x03010400 ); -mtcpr (CPC0_PRIMAD ,0x03050a0a ); -mtcpr (CPC0_PERC0 ,0x00000000 ); -mtcpr (CPC0_PERD0 ,0x070a0707 );/* SPI clk div. eq. OPB clk div. */ -mtcpr (CPC0_PERD1 ,0x07323200 ); +mtcpr (CPR0_PRIMAD ,0x03050a0a ); +mtcpr (CPR0_PERC0 ,0x00000000 ); +mtcpr (CPR0_PERD0 ,0x070a0707 );/* SPI clk div. eq. OPB clk div. */ +mtcpr (CPR0_PERD1 ,0x07323200 );mtcpr (CPR0_CLKUP ,0x40000000 ); }
@@ -119,9 +119,9 @@ void board_pll_init_f(void)/* Initialize PLL */ mtcpr (CPR0_PLLC ,0x0000033C );mtcpr (CPR0_PLLD ,0x0a010000 ); -mtcpr (CPC0_PRIMAD ,0x02040808 ); -mtcpr (CPC0_PERD0 ,0x02080505 );/* SPI clk div. eq. OPB clk div. */ -mtcpr (CPC0_PERD1 ,0xA6A60300 ); +mtcpr (CPR0_PRIMAD ,0x02040808 ); +mtcpr (CPR0_PERD0 ,0x02080505 );/* SPI clk div. eq. OPB clk div. */ +mtcpr (CPR0_PERD1 ,0xA6A60300 );mtcpr (CPR0_CLKUP ,0x40000000 ); }
@@ -145,9 +145,9 @@ void board_pll_init_f(void)/* Initialize PLL */ mtcpr (CPR0_PLLC ,0x000003BC );mtcpr (CPR0_PLLD ,0x06060600 ); -mtcpr (CPC0_PRIMAD ,0x02020004 ); -mtcpr (CPC0_PERD0 ,0x04002828 );/* SPI clk div. eq. OPB clk div. */ -mtcpr (CPC0_PERD1 ,0xC8C81600 ); +mtcpr (CPR0_PRIMAD ,0x02020004 ); +mtcpr (CPR0_PERD0 ,0x04002828 );/* SPI clk div. eq. OPB clk div. */ +mtcpr (CPR0_PERD1 ,0xC8C81600 ); mtcpr(CPR0_CLKUP, 0x40000000); }#endif /* CPU_<speed>_405EZ */
@@ -172,7 +172,7 @@ unsigned long get_tbclk(void)/* * Read CPR_PRIMAD register */ -mfcpr (CPC0_PRIMAD , cpr_primad); +mfcpr (CPR0_PRIMAD , cpr_primad);/* * Determine CPU clock frequency
board/mpl/mip405/init.S +1 -2
@@ -39,8 +39,6 @@ * Bank 6 - not used * Bank 7 - PLD Register *-----------------------------------------------------------------------------*/ -#include <asm/ppc4xx.h> - #define _LINUX_CONFIG_H 1 /* avoid reading Linux autoconf.h file */ #include <configs/MIP405.h>
@@ -49,6 +47,7 @@ #include <asm/cache.h> #include <asm/mmu.h> +#include <asm/ppc4xx.h> #include "mip405.h"
board/mpl/mip405/mip405.c +1 -0
@@ -65,6 +65,7 @@#include <common.h> #include "mip405.h" #include <asm/processor.h> +#include <asm/ppc4xx.h> #include <asm/ppc4xx-i2c.h> #include <miiphy.h> #include "../common/common_util.h"
board/mpl/pip405/init.S +1 -2
@@ -39,8 +39,6 @@ * Bank 6 - used to switch on the 12V for the Multipurpose socket * Bank 7 - Config Register *-----------------------------------------------------------------------------*/ -#include <asm/ppc4xx.h> - #define _LINUX_CONFIG_H 1 /* avoid reading Linux autoconf.h file */ #include <configs/PIP405.h>
@@ -49,6 +47,7 @@ #include <asm/cache.h> #include <asm/mmu.h> +#include <asm/ppc4xx.h> #include "pip405.h" .globl ext_bus_cntlr_init
board/sc3/sc3.c +5 -5
@@ -331,16 +331,16 @@ int board_early_init_f (void) }/* Code decompression disabled */ -mtdcr (KIAR ,KCONF ); -mtdcr (KIDR ,0x2B ); +mtdcr (DCP0_CFGADDR ,KCONF ); +mtdcr (DCP0_CFGDATA ,0x2B );/* CPC0_ER: enable sleep mode of (currently) unused components */ /* CPC0_FR: force unused components into sleep mode */ -mtdcr (CPMER ,0x3F800000 ); -mtdcr (CPMFR ,0x14000000 ); +mtdcr (CPC0_ER ,0x3F800000 ); +mtdcr (CPC0_FR ,0x14000000 );/* set PLB priority */ -mtdcr (0x87 ,0x08000000 ); +mtdcr (PLB0_ACR ,0x08000000 );/* --------------- DMA stuff ------------------------------------- */ mtdcr (0x126 ,0x49200000 );
include/configs/ASH405.h +5 -5
@@ -335,12 +335,12 @@* GPIO0[28-29] - UART1 data signal input/output * GPIO0[30-31] - EMAC0 and EMAC1 reject packet inputs */ -#define CONFIG_SYS_GPIO0_OSRH 0x40000550 -#define CONFIG_SYS_GPIO0_OSRL 0x00000110 -#define CONFIG_SYS_GPIO0_ISR1H 0x00000000 -#define CONFIG_SYS_GPIO0_ISR1L 0x15555445 -#define CONFIG_SYS_GPIO0_TSRH 0x00000000 +#define CONFIG_SYS_GPIO0_OSRL 0x40000550 +#define CONFIG_SYS_GPIO0_OSRH 0x00000110 +#define CONFIG_SYS_GPIO0_ISR1L 0x00000000 +#define CONFIG_SYS_GPIO0_ISR1H 0x15555445#define CONFIG_SYS_GPIO0_TSRL 0x00000000 +#define CONFIG_SYS_GPIO0_TSRH 0x00000000#define CONFIG_SYS_GPIO0_TCR 0xF7FE0014#define CONFIG_SYS_DUART_RST (0x80000000 >> 14)
include/configs/CATcenter.h +6 -6
@@ -535,13 +535,13 @@* GPIO0[30] - EMAC0 input * GPIO0[31] - EMAC1 reject packet as output */ -#define CONFIG_SYS_GPIO0_OSRH 0x40000550 -#define CONFIG_SYS_GPIO0_OSRL 0x00000110 -#define CONFIG_SYS_GPIO0_ISR1H 0x00000000 -/*#define CONFIG_SYS_GPIO0_ISR1L 0x15555445*/ -#define CONFIG_SYS_GPIO0_ISR1L 0x15555444 -#define CONFIG_SYS_GPIO0_TSRH 0x00000000 +#define CONFIG_SYS_GPIO0_OSRL 0x40000550 +#define CONFIG_SYS_GPIO0_OSRH 0x00000110 +#define CONFIG_SYS_GPIO0_ISR1L 0x00000000 +/*#define CONFIG_SYS_GPIO0_ISR1H 0x15555445*/ +#define CONFIG_SYS_GPIO0_ISR1H 0x15555444#define CONFIG_SYS_GPIO0_TSRL 0x00000000 +#define CONFIG_SYS_GPIO0_TSRH 0x00000000#define CONFIG_SYS_GPIO0_TCR 0xF7FF8014/*
include/configs/CMS700.h +6 -6
@@ -301,12 +301,12 @@/* GPIO Output: OSR=00, ISR=00, TSR=00, TCR=1 */ /* Alt. Funtion Input: OSR=00, ISR=01, TSR=00, TCR=0 */ /* Alt. Funtion Output: OSR=01, ISR=00, TSR=00, TCR=1 */ -#define CONFIG_SYS_GPIO0_OSRH 0x40000500/* 0 ... 15 */ -#define CONFIG_SYS_GPIO0_OSRL 0x00000110/* 16 ... 31 */ -#define CONFIG_SYS_GPIO0_ISR1H 0x00000000/* 0 ... 15 */ -#define CONFIG_SYS_GPIO0_ISR1L 0x14000045/* 16 ... 31 */ -#define CONFIG_SYS_GPIO0_TSRH 0x00000000/* 0 ... 15 */ -#define CONFIG_SYS_GPIO0_TSRL 0x00000000/* 16 ... 31 */ +#define CONFIG_SYS_GPIO0_OSRL 0x40000500/* 0 ... 15 */ +#define CONFIG_SYS_GPIO0_OSRH 0x00000110/* 16 ... 31 */ +#define CONFIG_SYS_GPIO0_ISR1L 0x00000000/* 0 ... 15 */ +#define CONFIG_SYS_GPIO0_ISR1H 0x14000045/* 16 ... 31 */ +#define CONFIG_SYS_GPIO0_TSRL 0x00000000/* 0 ... 15 */ +#define CONFIG_SYS_GPIO0_TSRH 0x00000000/* 16 ... 31 */ #define CONFIG_SYS_GPIO0_TCR 0xF7FE0014/* 0 ... 31 */ #define CONFIG_SYS_EEPROM_WP (0x80000000 >> 8)/* GPIO8 */
include/configs/DP405.h +6 -6
@@ -243,12 +243,12 @@/* GPIO Output: OSR=00, ISR=00, TSR=00, TCR=1 */ /* Alt. Funtion Input: OSR=00, ISR=01, TSR=00, TCR=0 */ /* Alt. Funtion Output: OSR=01, ISR=00, TSR=00, TCR=1 */ -#define CONFIG_SYS_GPIO0_OSRH 0x40000540/* 0 ... 15 */ -#define CONFIG_SYS_GPIO0_OSRL 0x00000110/* 16 ... 31 */ -#define CONFIG_SYS_GPIO0_ISR1H 0x00000000/* 0 ... 15 */ -#define CONFIG_SYS_GPIO0_ISR1L 0x14000045/* 16 ... 31 */ -#define CONFIG_SYS_GPIO0_TSRH 0x00000000/* 0 ... 15 */ -#define CONFIG_SYS_GPIO0_TSRL 0x00000000/* 16 ... 31 */ +#define CONFIG_SYS_GPIO0_OSRL 0x40000540/* 0 ... 15 */ +#define CONFIG_SYS_GPIO0_OSRH 0x00000110/* 16 ... 31 */ +#define CONFIG_SYS_GPIO0_ISR1L 0x00000000/* 0 ... 15 */ +#define CONFIG_SYS_GPIO0_ISR1H 0x14000045/* 16 ... 31 */ +#define CONFIG_SYS_GPIO0_TSRL 0x00000000/* 0 ... 15 */ +#define CONFIG_SYS_GPIO0_TSRH 0x00000000/* 16 ... 31 */ #define CONFIG_SYS_GPIO0_TCR 0xB7FE0014/* 0 ... 31 */ /*
include/configs/G2000.h +5 -5
@@ -367,12 +367,12 @@* * following GPIO setting changed for G20000, 080304 */ -#define CONFIG_SYS_GPIO0_OSRH 0x40005555 -#define CONFIG_SYS_GPIO0_OSRL 0x40000110 -#define CONFIG_SYS_GPIO0_ISR1H 0x00000000 -#define CONFIG_SYS_GPIO0_ISR1L 0x15555445 -#define CONFIG_SYS_GPIO0_TSRH 0x00000000 +#define CONFIG_SYS_GPIO0_OSRL 0x40005555 +#define CONFIG_SYS_GPIO0_OSRH 0x40000110 +#define CONFIG_SYS_GPIO0_ISR1L 0x00000000 +#define CONFIG_SYS_GPIO0_ISR1H 0x15555445#define CONFIG_SYS_GPIO0_TSRL 0x00000000 +#define CONFIG_SYS_GPIO0_TSRH 0x00000000#define CONFIG_SYS_GPIO0_TCR 0xF7FF8014/*
include/configs/HH405.h +5 -5
@@ -461,12 +461,12 @@* GPIO0[28-29] - UART1 data signal input/output * GPIO0[30-31] - EMAC0 and EMAC1 reject packet inputs */ -#define CONFIG_SYS_GPIO0_OSRH 0x40000550 -#define CONFIG_SYS_GPIO0_OSRL 0x00000110 -#define CONFIG_SYS_GPIO0_ISR1H 0x00000000 -#define CONFIG_SYS_GPIO0_ISR1L 0x15555440 -#define CONFIG_SYS_GPIO0_TSRH 0x00000000 +#define CONFIG_SYS_GPIO0_OSRL 0x40000550 +#define CONFIG_SYS_GPIO0_OSRH 0x00000110 +#define CONFIG_SYS_GPIO0_ISR1L 0x00000000 +#define CONFIG_SYS_GPIO0_ISR1H 0x15555440#define CONFIG_SYS_GPIO0_TSRL 0x00000000 +#define CONFIG_SYS_GPIO0_TSRH 0x00000000#define CONFIG_SYS_GPIO0_TCR 0xF7FE0017#define CONFIG_SYS_LCD_ENDIAN (0x80000000 >> 7)
include/configs/HUB405.h +5 -5
@@ -334,12 +334,12 @@* GPIO0[28-29] - UART1 data signal input/output * GPIO0[30-31] - EMAC0 and EMAC1 reject packet inputs */ -#define CONFIG_SYS_GPIO0_OSRH 0x40000550 -#define CONFIG_SYS_GPIO0_OSRL 0x00000110 -#define CONFIG_SYS_GPIO0_ISR1H 0x00000000 -#define CONFIG_SYS_GPIO0_ISR1L 0x15555445 -#define CONFIG_SYS_GPIO0_TSRH 0x00000000 +#define CONFIG_SYS_GPIO0_OSRL 0x40000550 +#define CONFIG_SYS_GPIO0_OSRH 0x00000110 +#define CONFIG_SYS_GPIO0_ISR1L 0x00000000 +#define CONFIG_SYS_GPIO0_ISR1H 0x15555445#define CONFIG_SYS_GPIO0_TSRL 0x00000000 +#define CONFIG_SYS_GPIO0_TSRH 0x00000000#define CONFIG_SYS_GPIO0_TCR 0xF7FE0014#define CONFIG_SYS_DUART_RST (0x80000000 >> 14)
include/configs/PLU405.h +5 -5
@@ -379,12 +379,12 @@* GPIO0[28-29] - UART1 data signal input/output * GPIO0[30-31] - EMAC0 and EMAC1 reject packet inputs */ -#define CONFIG_SYS_GPIO0_OSRH 0x00000550 -#define CONFIG_SYS_GPIO0_OSRL 0x00000110 -#define CONFIG_SYS_GPIO0_ISR1H 0x00000000 -#define CONFIG_SYS_GPIO0_ISR1L 0x15555445 -#define CONFIG_SYS_GPIO0_TSRH 0x00000000 +#define CONFIG_SYS_GPIO0_OSRL 0x00000550 +#define CONFIG_SYS_GPIO0_OSRH 0x00000110 +#define CONFIG_SYS_GPIO0_ISR1L 0x00000000 +#define CONFIG_SYS_GPIO0_ISR1H 0x15555445#define CONFIG_SYS_GPIO0_TSRL 0x00000000 +#define CONFIG_SYS_GPIO0_TSRH 0x00000000#define CONFIG_SYS_GPIO0_TCR 0x77FE0014#define CONFIG_SYS_DUART_RST (0x80000000 >> 14)
include/configs/PPChameleonEVB.h +6 -6
@@ -542,13 +542,13 @@* GPIO0[30] - EMAC0 input * GPIO0[31] - EMAC1 reject packet as output */ -#define CONFIG_SYS_GPIO0_OSRH 0x40000550 -#define CONFIG_SYS_GPIO0_OSRL 0x00000110 -#define CONFIG_SYS_GPIO0_ISR1H 0x00000000 -/*#define CONFIG_SYS_GPIO0_ISR1L 0x15555445*/ -#define CONFIG_SYS_GPIO0_ISR1L 0x15555444 -#define CONFIG_SYS_GPIO0_TSRH 0x00000000 +#define CONFIG_SYS_GPIO0_OSRL 0x40000550 +#define CONFIG_SYS_GPIO0_OSRH 0x00000110 +#define CONFIG_SYS_GPIO0_ISR1L 0x00000000 +/*#define CONFIG_SYS_GPIO0_ISR1H 0x15555445*/ +#define CONFIG_SYS_GPIO0_ISR1H 0x15555444#define CONFIG_SYS_GPIO0_TSRL 0x00000000 +#define CONFIG_SYS_GPIO0_TSRH 0x00000000#define CONFIG_SYS_GPIO0_TCR 0xF7FF8014/*
include/configs/VOH405.h +5 -5
@@ -388,12 +388,12 @@* GPIO0[28-29] - UART1 data signal input/output * GPIO0[30-31] - EMAC0 and EMAC1 reject packet inputs -> GPIO */ -#define CONFIG_SYS_GPIO0_OSRH 0x00000550 -#define CONFIG_SYS_GPIO0_OSRL 0x00000110 -#define CONFIG_SYS_GPIO0_ISR1H 0x00000000 -#define CONFIG_SYS_GPIO0_ISR1L 0x15555440 -#define CONFIG_SYS_GPIO0_TSRH 0x00000000 +#define CONFIG_SYS_GPIO0_OSRL 0x00000550 +#define CONFIG_SYS_GPIO0_OSRH 0x00000110 +#define CONFIG_SYS_GPIO0_ISR1L 0x00000000 +#define CONFIG_SYS_GPIO0_ISR1H 0x15555440#define CONFIG_SYS_GPIO0_TSRL 0x00000000 +#define CONFIG_SYS_GPIO0_TSRH 0x00000000#define CONFIG_SYS_GPIO0_TCR 0x777E0017#define CONFIG_SYS_DUART_RST (0x80000000 >> 14)
include/configs/VOM405.h +6 -6
@@ -273,12 +273,12 @@/* GPIO Output: OSR=00, ISR=00, TSR=00, TCR=1 */ /* Alt. Funtion Input: OSR=00, ISR=01, TSR=00, TCR=0 */ /* Alt. Funtion Output: OSR=01, ISR=00, TSR=00, TCR=1 */ -#define CONFIG_SYS_GPIO0_OSRH 0x40000500/* 0 ... 15 */ -#define CONFIG_SYS_GPIO0_OSRL 0x00000110/* 16 ... 31 */ -#define CONFIG_SYS_GPIO0_ISR1H 0x00000000/* 0 ... 15 */ -#define CONFIG_SYS_GPIO0_ISR1L 0x14000045/* 16 ... 31 */ -#define CONFIG_SYS_GPIO0_TSRH 0x00000000/* 0 ... 15 */ -#define CONFIG_SYS_GPIO0_TSRL 0x00000000/* 16 ... 31 */ +#define CONFIG_SYS_GPIO0_OSRL 0x40000500/* 0 ... 15 */ +#define CONFIG_SYS_GPIO0_OSRH 0x00000110/* 16 ... 31 */ +#define CONFIG_SYS_GPIO0_ISR1L 0x00000000/* 0 ... 15 */ +#define CONFIG_SYS_GPIO0_ISR1H 0x14000045/* 16 ... 31 */ +#define CONFIG_SYS_GPIO0_TSRL 0x00000000/* 0 ... 15 */ +#define CONFIG_SYS_GPIO0_TSRH 0x00000000/* 16 ... 31 */ #define CONFIG_SYS_GPIO0_TCR 0xF7FE0014/* 0 ... 31 */ /*
include/configs/WUH405.h +5 -5
@@ -332,12 +332,12 @@* GPIO0[28-29] - UART1 data signal input/output * GPIO0[30-31] - EMAC0 and EMAC1 reject packet inputs */ -#define CONFIG_SYS_GPIO0_OSRH 0x40000550 -#define CONFIG_SYS_GPIO0_OSRL 0x00000110 -#define CONFIG_SYS_GPIO0_ISR1H 0x00000000 -#define CONFIG_SYS_GPIO0_ISR1L 0x15555445 -#define CONFIG_SYS_GPIO0_TSRH 0x00000000 +#define CONFIG_SYS_GPIO0_OSRL 0x40000550 +#define CONFIG_SYS_GPIO0_OSRH 0x00000110 +#define CONFIG_SYS_GPIO0_ISR1L 0x00000000 +#define CONFIG_SYS_GPIO0_ISR1H 0x15555445#define CONFIG_SYS_GPIO0_TSRL 0x00000000 +#define CONFIG_SYS_GPIO0_TSRH 0x00000000#define CONFIG_SYS_GPIO0_TCR 0xF7FE0014#define CONFIG_SYS_DUART_RST (0x80000000 >> 14)
include/configs/bubinga.h +5 -5
@@ -284,12 +284,12 @@* GPIO0[28-29] - UART1 data signal input/output * GPIO0[30-31] - EMAC0 and EMAC1 reject packet inputs */ -#define CONFIG_SYS_GPIO0_OSRH 0x55555555 -#define CONFIG_SYS_GPIO0_OSRL 0x40000110 -#define CONFIG_SYS_GPIO0_ISR1H 0x00000000 -#define CONFIG_SYS_GPIO0_ISR1L 0x15555445 -#define CONFIG_SYS_GPIO0_TSRH 0x00000000 +#define CONFIG_SYS_GPIO0_OSRL 0x55555555 +#define CONFIG_SYS_GPIO0_OSRH 0x40000110 +#define CONFIG_SYS_GPIO0_ISR1L 0x00000000 +#define CONFIG_SYS_GPIO0_ISR1H 0x15555445#define CONFIG_SYS_GPIO0_TSRL 0x00000000 +#define CONFIG_SYS_GPIO0_TSRH 0x00000000#define CONFIG_SYS_GPIO0_TCR 0xFFFF8014/*-----------------------------------------------------------------------
include/configs/quad100hd.h +5 -5
@@ -270,12 +270,12 @@* Taken in part from PPCBoot board/icecube/icecube.h */ /* see ./arch/powerpc/cpu/ppc4xx/cpu_init.c ./cpu/ppc4xx/start.S */ -#define CONFIG_SYS_GPIO0_OSRH 0x55555550 -#define CONFIG_SYS_GPIO0_OSRL 0x00000110 -#define CONFIG_SYS_GPIO0_ISR1H 0x00000000 -#define CONFIG_SYS_GPIO0_ISR1L 0x15555445 -#define CONFIG_SYS_GPIO0_TSRH 0x00000000 +#define CONFIG_SYS_GPIO0_OSRL 0x55555550 +#define CONFIG_SYS_GPIO0_OSRH 0x00000110 +#define CONFIG_SYS_GPIO0_ISR1L 0x00000000 +#define CONFIG_SYS_GPIO0_ISR1H 0x15555445#define CONFIG_SYS_GPIO0_TSRL 0x00000000 +#define CONFIG_SYS_GPIO0_TSRH 0x00000000#define CONFIG_SYS_GPIO0_TCR 0xFFFF8097#define CONFIG_SYS_GPIO0_ODR 0x00000000
include/configs/zeus.h +5 -5
@@ -279,12 +279,12 @@* GPIO0[28-29] - UART1 data signal input/output * GPIO0[30-31] - EMAC0 and EMAC1 reject packet inputs */ -#define CONFIG_SYS_GPIO0_OSRH 0x15555550/* Chip selects */ -#define CONFIG_SYS_GPIO0_OSRL 0x00000110/* UART_DTR-pin 27 alt out */ -#define CONFIG_SYS_GPIO0_ISR1H 0x10000041/* Pin 2, 12 is input */ -#define CONFIG_SYS_GPIO0_ISR1L 0x15505440/* OUT: LEDs 22/23; IN: pin12,2, NVALID# */ -#define CONFIG_SYS_GPIO0_TSRH 0x00000000 +#define CONFIG_SYS_GPIO0_OSRL 0x15555550/* Chip selects */ +#define CONFIG_SYS_GPIO0_OSRH 0x00000110/* UART_DTR-pin 27 alt out */ +#define CONFIG_SYS_GPIO0_ISR1L 0x10000041/* Pin 2, 12 is input */ +#define CONFIG_SYS_GPIO0_ISR1H 0x15505440/* OUT: LEDs 22/23; IN: pin12,2, NVALID# */ #define CONFIG_SYS_GPIO0_TSRL 0x00000000 +#define CONFIG_SYS_GPIO0_TSRH 0x00000000#define CONFIG_SYS_GPIO0_TCR 0xBFF68317/* 3-state OUT: 22/23/29; 12,2 is not 3-state */ #define CONFIG_SYS_GPIO0_ODR 0x00000000
Signature · 1 line
1.7.2.3