Add the missing AR724x DDR flush routines for if_arge0.

Submitted by: Luiz Otavio O Souza
This commit is contained in:
Adrian Chadd 2011-03-13 08:36:57 +00:00
parent 85a5701186
commit c55baa23d8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=219591
2 changed files with 5 additions and 0 deletions

View File

@ -136,11 +136,13 @@ ar724x_chip_set_pll_ge1(int speed)
static void
ar724x_chip_ddr_flush_ge0(void)
{
ar71xx_ddr_flush(AR724X_DDR_REG_FLUSH_GE0);
}
static void
ar724x_chip_ddr_flush_ge1(void)
{
ar71xx_ddr_flush(AR724X_DDR_REG_FLUSH_GE1);
}
static uint32_t

View File

@ -47,6 +47,9 @@
#define AR724X_BASE_FREQ 5000000
#define AR724X_DDR_REG_FLUSH_GE0 (AR71XX_DDR_CONFIG + 0x7c)
#define AR724X_DDR_REG_FLUSH_GE1 (AR71XX_DDR_CONFIG + 0x80)
#define AR724X_RESET_REG_RESET_MODULE AR71XX_RST_BLOCK_BASE + 0x1c
#define AR724X_RESET_MODULE_USB_OHCI_DLL (1 << 3)