bcm283X: Don't break all non-bcm arm builds, warn.

* Called via arm_mailbox_bcm2835 *and* arm_framebuffer_bcm2835
* This is a bit messy. We really should be getting these
  chipset-centric bases from the provided FDT / DTB.
* I can't think of a way to redo this without undoing
  work towards FDT.
This commit is contained in:
Alexander von Gluck IV 2015-03-13 17:43:35 -05:00
parent 401afabd40
commit af056576ea

View File

@ -39,13 +39,20 @@
*/ */
// Section 1.2.2 // Section 1.2.2
// These board bases should go away when we start using FDT's
// (all loader drivers compiled in, drivers chosen based on FDT)
//
#define BCM283X_SDRAM_BASE 0x00000000 #define BCM283X_SDRAM_BASE 0x00000000
#if defined(BOARD_CPU_BCM2835) #if defined(BOARD_CPU_BCM2835)
#define BCM283X_PERIPHERAL_BASE 0x20000000 #define BCM283X_PERIPHERAL_BASE 0x20000000
#elif defined(BOARD_CPU_BCM2836) #elif defined(BOARD_CPU_BCM2836)
#define BCM283X_PERIPHERAL_BASE 0x3f000000 #define BCM283X_PERIPHERAL_BASE 0x3f000000
#else #else
#error Unknown BCM283X! // This will always trigger on non-BCM arm boards
// Leave in until we use FDT to pick needed board drivers at runtime.
// We can get peripheral base from the DTB long-term
#define BCM283X_PERIPHERAL_BASE 0x0
#warning Unknown BCM283X chipset!
#endif #endif