[U-Boot] any value to "#if defined(CONFIG_OXC) || defined(CONFIG_RMU)" test in board_r.c?

Robert P. J. Day rpjday at crashcourse.ca
Fri Dec 30 14:43:23 CET 2016


  still pawing through the flash support code in u-boot for my
personal edification, and ran across this snippet in common/board_r.c:

  #if defined(CONFIG_OXC) || defined(CONFIG_RMU)
        /* flash mapped at end of memory map */
        bd->bi_flashoffset = CONFIG_SYS_TEXT_BASE + flash_size;
  #elif CONFIG_SYS_MONITOR_BASE == CONFIG_SYS_FLASH_BASE
        bd->bi_flashoffset = monitor_flash_len; /* reserved area for monitor */
  #endif

in that first test, the "defined(CONFIG_OXC)" part seems dead as the
OXC board was scrapped some time ago:

  OXC           powerpc     MPC8240        309a292     2011-12-07

and i'm not sure anything needs that second test either, does it? can
that entire first preprocessor test be deleted? or am i missing
something?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



More information about the U-Boot mailing list