
Hi Grzegorz,
Signed-off-by: Grzegorz Bernacki gjb@semihalf.com
board/digsy_mtc/digsy_mtc.c | 14 ++++++++++++++ include/configs/digsy_mtc.h | 7 +++++++ 2 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/board/digsy_mtc/digsy_mtc.c b/board/digsy_mtc/digsy_mtc.c index 83d5864..36bbbc5 100644 --- a/board/digsy_mtc/digsy_mtc.c +++ b/board/digsy_mtc/digsy_mtc.c @@ -186,6 +186,10 @@ int checkboard(void)
int board_early_init_r(void) { +#ifdef CONFIG_MPC52XX_SPI
- struct mpc5xxx_gpio *gpio = (struct mpc5xxx_gpio*)MPC5XXX_GPIO;
- struct mpc5xxx_gpt *gpt = (struct mpc5xxx_gpt*)MPC5XXX_GPT;
+#endif /* * Now, when we are in RAM, enable flash write access for detection * process. Note that CS_BOOT cannot be cleared when executing in @@ -202,6 +206,16 @@ int board_early_init_r(void) /* Low level USB init, required for proper kernel operation */ usb_cpu_init(); #endif +#ifdef CONFIG_MPC52XX_SPI
- /* SPI on Tmr2/3/4/5 pins */
- gpio->port_config |= 0x20000000;
- /* GPT 6 Output Enable */
- gpt[6].emsr = 0x00000034 ;
- /* GPT 7 Output Enable */
- gpt[7].emsr = 0x00000034 ;
+#endif
You want to use accessor macros here.
Cheers Detlev