Commit 730e792926ca3fe4dd1b734a3bf44e55afa6f536

Authored by Kim Phillips
1 parent 2eeb3e4fc5

mpc83xx: enable the SATA interface on mpc8315 rdb and mpc837x rdb boards

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>

Showing 2 changed files with 46 additions and 0 deletions Side-by-side Diff

include/configs/MPC8315ERDB.h
... ... @@ -349,6 +349,29 @@
349 349 #define CONFIG_ETHPRIME "eTSEC1"
350 350  
351 351 /*
  352 + * SATA
  353 + */
  354 +#define CONFIG_LIBATA
  355 +#define CONFIG_FSL_SATA
  356 +
  357 +#define CFG_SATA_MAX_DEVICE 2
  358 +#define CONFIG_SATA1
  359 +#define CFG_SATA1_OFFSET 0x18000
  360 +#define CFG_SATA1 (CFG_IMMR + CFG_SATA1_OFFSET)
  361 +#define CFG_SATA1_FLAGS FLAGS_DMA
  362 +#define CONFIG_SATA2
  363 +#define CFG_SATA2_OFFSET 0x19000
  364 +#define CFG_SATA2 (CFG_IMMR + CFG_SATA2_OFFSET)
  365 +#define CFG_SATA2_FLAGS FLAGS_DMA
  366 +
  367 +#ifdef CONFIG_FSL_SATA
  368 +#define CONFIG_LBA48
  369 +#define CONFIG_CMD_SATA
  370 +#define CONFIG_DOS_PARTITION
  371 +#define CONFIG_CMD_EXT2
  372 +#endif
  373 +
  374 +/*
352 375 * Environment
353 376 */
354 377 #ifndef CFG_RAMBOOT
include/configs/MPC837XERDB.h
... ... @@ -416,6 +416,29 @@
416 416 #endif
417 417  
418 418 /*
  419 + * SATA
  420 + */
  421 +#define CONFIG_LIBATA
  422 +#define CONFIG_FSL_SATA
  423 +
  424 +#define CFG_SATA_MAX_DEVICE 2
  425 +#define CONFIG_SATA1
  426 +#define CFG_SATA1_OFFSET 0x18000
  427 +#define CFG_SATA1 (CFG_IMMR + CFG_SATA1_OFFSET)
  428 +#define CFG_SATA1_FLAGS FLAGS_DMA
  429 +#define CONFIG_SATA2
  430 +#define CFG_SATA2_OFFSET 0x19000
  431 +#define CFG_SATA2 (CFG_IMMR + CFG_SATA2_OFFSET)
  432 +#define CFG_SATA2_FLAGS FLAGS_DMA
  433 +
  434 +#ifdef CONFIG_FSL_SATA
  435 +#define CONFIG_LBA48
  436 +#define CONFIG_CMD_SATA
  437 +#define CONFIG_DOS_PARTITION
  438 +#define CONFIG_CMD_EXT2
  439 +#endif
  440 +
  441 +/*
419 442 * Environment
420 443 */
421 444 #ifndef CFG_RAMBOOT