summaryrefslogtreecommitdiff
path: root/board/xilinx/ppc405-generic
diff options
context:
space:
mode:
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>2016-01-26 10:24:19 (GMT)
committerMichal Simek <michal.simek@xilinx.com>2016-01-27 14:57:11 (GMT)
commit80cce2629bf5c49e44900d7e4396233b2d012921 (patch)
tree4ca3d87e2ee91d1308f4d6e8b99de68fcfadbbca /board/xilinx/ppc405-generic
parent5af08556707f024edded56c3edae99430f3cfceb (diff)
downloadu-boot-fsl-qoriq-80cce2629bf5c49e44900d7e4396233b2d012921.tar.xz
ppc: xilinx-ppc4xx: Port to DM serial
xilinx_uartlite has been ported to DM, this patch makes the xilinx-ppc405-generic and the xilinx-ppc440-generic boards use the new DM driver. Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Acked-by: Stefan Roese <sr@denx.de> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx/ppc405-generic')
-rw-r--r--board/xilinx/ppc405-generic/xilinx_ppc405_generic.c4
-rw-r--r--board/xilinx/ppc405-generic/xparameters.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/board/xilinx/ppc405-generic/xilinx_ppc405_generic.c b/board/xilinx/ppc405-generic/xilinx_ppc405_generic.c
index 8b10dba..32105a8 100644
--- a/board/xilinx/ppc405-generic/xilinx_ppc405_generic.c
+++ b/board/xilinx/ppc405-generic/xilinx_ppc405_generic.c
@@ -46,3 +46,7 @@ void __get_sys_info(sys_info_t *sysInfo)
return;
}
void get_sys_info(sys_info_t *) __attribute__((weak, alias("__get_sys_info")));
+
+int get_serial_clock(void){
+ return XPAR_UARTNS550_0_CLOCK_FREQ_HZ;
+}
diff --git a/board/xilinx/ppc405-generic/xparameters.h b/board/xilinx/ppc405-generic/xparameters.h
index 90fe969..c3df9e5 100644
--- a/board/xilinx/ppc405-generic/xparameters.h
+++ b/board/xilinx/ppc405-generic/xparameters.h
@@ -19,7 +19,6 @@
#define XPAR_CORE_CLOCK_FREQ_HZ 400000000
#define XPAR_INTC_MAX_NUM_INTR_INPUTS 32
#define XPAR_SPI_0_NUM_TRANSFER_BITS 8
-#define XPAR_UARTNS550_0_BASEADDR 0xdeadbeef
#define XPAR_UARTNS550_0_CLOCK_FREQ_HZ 100000000
#endif