Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: dsa: b53: Define EEE register page

In preparation for migrating the EEE code from bcm_sf2 to b53, define the full
EEE register page and offsets within that page.

Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Florian Fainelli and committed by
David S. Miller
909d812a b409a9ef

+41
+41
drivers/net/dsa/b53/b53_regs.h
··· 50 50 /* Jumbo Frame Registers */ 51 51 #define B53_JUMBO_PAGE 0x40 52 52 53 + /* EEE Control Registers Page */ 54 + #define B53_EEE_PAGE 0x92 55 + 53 56 /* CFP Configuration Registers Page */ 54 57 #define B53_CFP_PAGE 0xa1 55 58 ··· 473 470 #define B53_JUMBO_MAX_SIZE_63XX 0x08 474 471 #define JMS_MIN_SIZE 1518 475 472 #define JMS_MAX_SIZE 9724 473 + 474 + /************************************************************************* 475 + * EEE Configuration Page Registers 476 + *************************************************************************/ 477 + 478 + /* EEE Enable control register (16 bit) */ 479 + #define B53_EEE_EN_CTRL 0x00 480 + 481 + /* EEE LPI assert status register (16 bit) */ 482 + #define B53_EEE_LPI_ASSERT_STS 0x02 483 + 484 + /* EEE LPI indicate status register (16 bit) */ 485 + #define B53_EEE_LPI_INDICATE 0x4 486 + 487 + /* EEE Receiving idle symbols status register (16 bit) */ 488 + #define B53_EEE_RX_IDLE_SYM_STS 0x6 489 + 490 + /* EEE Pipeline timer register (32 bit) */ 491 + #define B53_EEE_PIP_TIMER 0xC 492 + 493 + /* EEE Sleep timer Gig register (32 bit) */ 494 + #define B53_EEE_SLEEP_TIMER_GIG(i) (0x10 + 4 * (i)) 495 + 496 + /* EEE Sleep timer FE register (32 bit) */ 497 + #define B53_EEE_SLEEP_TIMER_FE(i) (0x34 + 4 * (i)) 498 + 499 + /* EEE Minimum LP timer Gig register (32 bit) */ 500 + #define B53_EEE_MIN_LP_TIMER_GIG(i) (0x58 + 4 * (i)) 501 + 502 + /* EEE Minimum LP timer FE register (32 bit) */ 503 + #define B53_EEE_MIN_LP_TIMER_FE(i) (0x7c + 4 * (i)) 504 + 505 + /* EEE Wake timer Gig register (16 bit) */ 506 + #define B53_EEE_WAKE_TIMER_GIG(i) (0xa0 + 2 * (i)) 507 + 508 + /* EEE Wake timer FE register (16 bit) */ 509 + #define B53_EEE_WAKE_TIMER_FE(i) (0xb2 + 2 * (i)) 510 + 476 511 477 512 /************************************************************************* 478 513 * CFP Configuration Page Registers