powerpc: keymile: Add a check for the PIGGY debug board
Check the presence of the PIGGY on the keymile boards mgcoge, mgsuvd and kmeter1. If the PIGGY is not present, dont register this Ethernet device. Signed-off-by: Heiko Schocher <hs@denx.de> Acked-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
committed by
Wolfgang Denk
parent
de0443614a
commit
210c8c00aa
@@ -313,6 +313,15 @@
|
||||
#define CONFIG_LOADS_ECHO 1 /* echo on for serial download */
|
||||
#define CONFIG_SYS_LOADS_BAUD_CHANGE 1 /* allow baudrate change */
|
||||
|
||||
/*
|
||||
* How to get access to the slot ID. Put this here to make it easy
|
||||
* to modify in a centralized location. This is used in the HDLC
|
||||
* driver to set the MAC.
|
||||
*/
|
||||
#define CONFIG_SYS_SLOT_ID_BASE CONFIG_SYS_PIGGY_BASE
|
||||
#define CONFIG_SYS_SLOT_ID_OFF (0x07) /* register offset */
|
||||
#define CONFIG_SYS_SLOT_ID_MASK (0x3f) /* mask for slot ID bits */
|
||||
|
||||
/*
|
||||
* BOOTP options
|
||||
*/
|
||||
|
||||
@@ -400,4 +400,14 @@
|
||||
#define OF_TBCLK (bd->bi_busfreq / 4)
|
||||
#define OF_STDOUT_PATH "/soc/cpm/serial@11a90"
|
||||
|
||||
/*
|
||||
* How to get access to the slot ID. Put this here to make it easy
|
||||
* to modify in a centralized location. This is used in the HDLC
|
||||
* driver to set the MAC.
|
||||
*/
|
||||
#define CONFIG_SYS_SLOT_ID_BASE CONFIG_SYS_PIGGY_BASE
|
||||
#define CONFIG_SYS_SLOT_ID_OFF (0x07) /* register offset */
|
||||
#define CONFIG_SYS_SLOT_ID_MASK (0x3f) /* mask for slot ID bits */
|
||||
|
||||
|
||||
#endif /* __CONFIG_H */
|
||||
|
||||
@@ -211,6 +211,15 @@
|
||||
#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET+CONFIG_ENV_SECT_SIZE)
|
||||
#define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
|
||||
|
||||
/*
|
||||
* How to get access to the slot ID. Put this here to make it easy
|
||||
* to modify in a centralized location. This is used in the HDLC
|
||||
* driver to set the MAC.
|
||||
*/
|
||||
#define CONFIG_SYS_SLOT_ID_BASE CONFIG_SYS_PIGGY_BASE
|
||||
#define CONFIG_SYS_SLOT_ID_OFF (0x07) /* register offset */
|
||||
#define CONFIG_SYS_SLOT_ID_MASK (0x3f) /* mask for slot ID bits */
|
||||
|
||||
/*-----------------------------------------------------------------------
|
||||
* Cache Configuration
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user