From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Date: Tue, 26 Jan 2016 15:20:18 +0100 Subject: [U-Boot] [PATCH 22/22] ppc: xilinx-ppc440-generic: Wire LL_TEMAC driver In-Reply-To: References: <1453803865-2623-1-git-send-email-ricardo.ribalda@gmail.com> <1453803865-2623-23-git-send-email-ricardo.ribalda@gmail.com> Message-ID: <56A780A2.8070504@monstr.eu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 26.1.2016 13:43, Ricardo Ribalda Delgado wrote: > Hello Bin > > On Tue, Jan 26, 2016 at 1:21 PM, Bin Meng wrote: >> Hi Ricardo, >> >> On Tue, Jan 26, 2016 at 6:24 PM, Ricardo Ribalda Delgado >> wrote: >>> If the xparameters file contains a LL_TEMAC definition compile its >>> driver and the net commands. >>> >>> Signed-off-by: Ricardo Ribalda Delgado >>> --- >>> .../xilinx/ppc440-generic/xilinx_ppc440_generic.c | 22 ++++++++++++++++++++++ >>> board/xilinx/ppc440-generic/xparameters.h | 4 ++++ >>> configs/xilinx-ppc440-generic_defconfig | 5 +++++ >>> include/configs/xilinx-ppc440-generic.h | 10 ++++++++++ >>> 4 files changed, 41 insertions(+) >>> >>> diff --git a/board/xilinx/ppc440-generic/xilinx_ppc440_generic.c b/board/xilinx/ppc440-generic/xilinx_ppc440_generic.c >>> index 0e3ab94e31ef..d8233529304d 100644 >>> --- a/board/xilinx/ppc440-generic/xilinx_ppc440_generic.c >>> +++ b/board/xilinx/ppc440-generic/xilinx_ppc440_generic.c >>> @@ -8,6 +8,7 @@ >>> >>> #include >>> #include >>> +#include >>> #include >>> >>> int checkboard(void) >>> @@ -34,3 +35,24 @@ void get_sys_info(sys_info_t *sys_info) >>> int get_serial_clock(void){ >>> return XPAR_UARTNS550_0_CLOCK_FREQ_HZ; >>> } >>> + >>> +int board_eth_init(bd_t *bis) >>> +{ >>> + int ret = 0; >>> + >>> + puts("Init xilinx temac\n"); >>> +#ifdef XPAR_LLTEMAC_0_BASEADDR >>> + ret |= xilinx_ll_temac_eth_init(bis, XPAR_LLTEMAC_0_BASEADDR, >>> + XILINX_LL_TEMAC_M_SDMA_DCR | XILINX_LL_TEMAC_M_SDMA_PLB, >>> + XPAR_LLTEMAC_0_LLINK_CONNECTED_BASEADDR); >>> + >>> +#endif >>> + >>> +#ifdef XPAR_LLTEMAC_1_BASEADDR >>> + ret |= xilinx_ll_temac_eth_init(bis, XPAR_LLTEMAC_1_BASEADDR, >>> + XILINX_LL_TEMAC_M_SDMA_DCR | XILINX_LL_TEMAC_M_SDMA_PLB, >>> + XPAR_LLTEMAC_1_LLINK_CONNECTED_BASEADDR); >>> +#endif >> >> No DM ethernet driver for LLTEMAC? > > > Not as far as I know I have removed ll_temac support from Microblaze and as we discussed before we are not going to support ppc platforms. That's why if someone wants to use this driver it has to invest time to move it to DM or will be removed at some point in future. Thanks, Michal -- Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/ Maintainer of Linux kernel - Xilinx Zynq ARM architecture Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: