Hi, > -----Original Message----- > From: u-boot-boun...@lists.denx.de [mailto:u-boot-boun...@lists.denx.de] > On Behalf Of Gupta, Ajay Kumar > Sent: Friday, November 13, 2009 3:31 PM > To: u-boot@lists.denx.de > Cc: Hiremath, Vaibhav > Subject: Re: [U-Boot] [PATCH] omap3evm: Add board revision function
<snip...> > > /* > > * Routine: board_init > > * Description: Early hardware init. > > @@ -45,6 +72,8 @@ int board_init(void) > > { > > DECLARE_GLOBAL_DATA_PTR; > > > > + omap3_evm_get_revision(); > > + This must be called after setup_net_chip() else ethernet id Read statement wouldn't work. I will resubmit this patch. Regards, ajay > > gpmc_init(); /* in SRAM or SDRAM, finish GPMC */ > > /* board id for Linux */ > > gd->bd->bi_arch_number = MACH_TYPE_OMAP3EVM; > > diff --git a/board/ti/evm/evm.h b/board/ti/evm/evm.h > > index 37da29d..e2581f6 100644 > > --- a/board/ti/evm/evm.h > > +++ b/board/ti/evm/evm.h > > @@ -33,6 +33,20 @@ const omap3_sysinfo sysinfo = { > > #endif > > }; > > > > +/* > > + * OMAP35x EVM revision > > + * Run time detection of EVM revision is done by reading Ethernet > > + * PHY ID - > > + * GEN_1 = 0x01150000 > > + * GEN_2 = 0x92200000 > > + */ > > +enum { > > + OMAP3EVM_BOARD_GEN_1 = 0, /* EVM Rev between A - D */ > > + OMAP3EVM_BOARD_GEN_2, /* EVM Rev >= Rev E */ > > +}; > > + > > +u8 get_omap3_evm_rev(void); > > + > > static void setup_net_chip(void); > > > > /* > > -- > > 1.6.2.4 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot