]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
davinci: move psc support board-->cpu
authorDavid Brownell <dbrownell@users.sourceforge.net>
Fri, 15 May 2009 21:44:06 +0000 (23:44 +0200)
committerWolfgang Denk <wd@denx.de>
Fri, 12 Jun 2009 18:39:47 +0000 (20:39 +0200)
Move DaVinci PSC support from board/* to cpu/* where it belongs.
The PSC module manages clocks and resets for all DaVinci-family
SoCs, and isn't at all board-specific.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
board/davinci/common/Makefile
board/davinci/common/psc.h [deleted file]
board/davinci/dvevm/dvevm.c
board/davinci/schmoogie/schmoogie.c
board/davinci/sffsdr/sffsdr.c
board/davinci/sonata/sonata.c
cpu/arm926ejs/davinci/Makefile
cpu/arm926ejs/davinci/psc.c [moved from board/davinci/common/psc.c with 100% similarity]
include/asm-arm/arch-davinci/hardware.h

index 127bb6ede9f6089e2ab15bea37802709f704d455..8d9ea00ddc345497f3f3f61d1b9953c7e3bcfa7c 100644 (file)
@@ -29,7 +29,7 @@ endif
 
 LIB    = $(obj)lib$(VENDOR).a
 
-COBJS  := psc.o misc.o
+COBJS  := misc.o
 
 SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
diff --git a/board/davinci/common/psc.h b/board/davinci/common/psc.h
deleted file mode 100644 (file)
index b2dd7b5..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (C) 2008 Lyrtech <www.lyrtech.com>
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-
-#ifndef __PSC_H
-#define __PSC_H
-
-void lpsc_on(unsigned int id);
-void dsp_on(void);
-void davinci_enable_uart0(void);
-void davinci_enable_emac(void);
-void davinci_enable_i2c(void);
-void davinci_errata_workarounds(void);
-
-#endif /* __PSC_H */
index 22308deeb05cbb07cd01b3a9c963fb68e8898c6b..162a5dcea81f92167c0466545bcc554d0e9340c1 100644 (file)
@@ -27,7 +27,6 @@
 #include <common.h>
 #include <i2c.h>
 #include <asm/arch/hardware.h>
-#include "../common/psc.h"
 #include "../common/misc.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index 433769a608bc75970e87cbeb86347d10803feff8..d6dfef58174eb6a7a0a48133da08378eeea4060d 100644 (file)
@@ -27,7 +27,6 @@
 #include <common.h>
 #include <i2c.h>
 #include <asm/arch/hardware.h>
-#include "../common/psc.h"
 #include "../common/misc.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index e76f86d08cb6891773b300c7d43beebf6fa087bc..7d855fb8360f31194ccf88820e3df22de23b3e00 100644 (file)
@@ -30,7 +30,6 @@
 #include <common.h>
 #include <i2c.h>
 #include <asm/arch/hardware.h>
-#include "../common/psc.h"
 #include "../common/misc.h"
 
 #define DAVINCI_A3CR     (0x01E00014)  /* EMIF-A CS3 config register. */
index d56b443b202744842e6d060fb23de32736305d7d..155fb549c04e1274a104c4c613de70ba94f12303 100644 (file)
@@ -26,7 +26,6 @@
 
 #include <common.h>
 #include <asm/arch/hardware.h>
-#include "../common/psc.h"
 #include "../common/misc.h"
 
 DECLARE_GLOBAL_DATA_PTR;
index 7f51d1777587c6584ba6d83057f553f1bb91d650..83708d8138aa432d06c54376688913c7a1c53132 100644 (file)
@@ -27,7 +27,7 @@ include $(TOPDIR)/config.mk
 
 LIB    = $(obj)lib$(SOC).a
 
-COBJS  = timer.o ether.o lxt972.o dp83848.o
+COBJS  = timer.o ether.o lxt972.o dp83848.o psc.o
 SOBJS  = reset.o
 
 ifndef CONFIG_SKIP_LOWLEVEL_INIT
index ebcdcfea1e9960d9f44c323cd87baf547b375e75..3f6d4834b0c73787502d9103b20123c0004a94af 100644 (file)
@@ -133,6 +133,14 @@ typedef volatile unsigned int *    dv_reg_p;
 #define DAVINCI_LPSC_GEM               39
 #define DAVINCI_LPSC_IMCOP             40
 
+void lpsc_on(unsigned int id);
+void dsp_on(void);
+
+void davinci_enable_uart0(void);
+void davinci_enable_emac(void);
+void davinci_enable_i2c(void);
+void davinci_errata_workarounds(void);
+
 /* Some PSC defines */
 #define PSC_CHP_SHRTSW                 (0x01c40038)
 #define PSC_GBLCTL                     (0x01c41010)