Add support for XLS 108 chips - update board.c/board.h to setup GMAC
driver parameters correctly. Approved by: rrs (mentor) Obtained from: Sriram Gorti <srgorti@netlogicmicro.com>
This commit is contained in:
parent
2972a649c6
commit
70b0d39bbc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209646
@ -127,7 +127,7 @@ xlr_board_info_setup()
|
||||
|
||||
/* network block 1 */
|
||||
xlr_board_info.gmac_block[1].type = XLR_GMAC;
|
||||
xlr_board_info.gmac_block[1].enabled = 0xf;
|
||||
xlr_board_info.gmac_block[1].enabled = xlr_is_xls1xx() ? 0 : 0xf;
|
||||
if (xlr_is_xls4xx_lite()) {
|
||||
xlr_reg_t *mmio = xlr_io_mmio(XLR_IO_GPIO_OFFSET);
|
||||
uint32_t tmp;
|
||||
|
@ -77,7 +77,8 @@ xlr_is_xls(void)
|
||||
{
|
||||
uint32_t prid = mips_rd_prid();
|
||||
|
||||
return (prid & 0xf000) == 0x8000 || (prid & 0xf000) == 0x4000;
|
||||
return ((prid & 0xf000) == 0x8000 || (prid & 0xf000) == 0x4000 ||
|
||||
(prid & 0xf000) == 0xc000);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -109,6 +110,14 @@ xlr_board_pci(void)
|
||||
(xlr_boot1_info.board_major_version == RMI_XLR_BOARD_ARIZONA_V));
|
||||
}
|
||||
|
||||
static __inline__ int
|
||||
xlr_is_xls1xx(void)
|
||||
{
|
||||
uint32_t chipid = xlr_processor_id();
|
||||
|
||||
return (chipid == 0xce || chipid == 0xcf);
|
||||
}
|
||||
|
||||
static __inline__ int
|
||||
xlr_is_xls2xx(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user