Restructured mrst.c
authorsathyanarayanan kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
Tue, 7 Feb 2012 01:19:44 +0000 (17:19 -0800)
committerbuildbot <buildbot@intel.com>
Tue, 14 Feb 2012 10:21:36 +0000 (02:21 -0800)
commitf3e8f8c2adc25e35c3abc5c4baea769fdf06768b
tree806fad15c5dd1c1b651c12e6aa4de4347ff766ca
parent6a7327a0e33e7940f595f91241e1242e51ce687d
Restructured mrst.c

BZ: 22780

Mrst.c file contents are divided into soc & board components. Details are,
Platform/intel-mid.c - Common SOC functionalities are part of this file.
       Like SFI parsing, platform device initialization
       routines,etc.
Platform/mrst/mrst.c - Moorestown specific code should go into this file.
Platform/mfld/mfld.c - Medfield specific code should go into this file.
Platform/mfld/board-blackbay.c - Board specific initilizations should be part
 of this file.

Added a new member(device_handler) to devs_id structure. Platform devices
can use this member to define their own device handlers. If the value is
left NULL then default handler will get called.

intel_mid_weak_decls.h contains weak declaration of the functions defined in
intel-mid.c.It will help us to override these functions in SOC specific files.

Change-Id: I7340a5a197af6340b899e8dff0f1a9ca0929fe2b
Signed-off-by: Sathyanarayanan Kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
Reviewed-on: http://android.intel.com:8080/34375
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Tested-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: Wood, Brian J <brian.j.wood@intel.com>
Tested-by: Wood, Brian J <brian.j.wood@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
12 files changed:
arch/x86/Kconfig
arch/x86/include/asm/mrst.h
arch/x86/platform/Makefile
arch/x86/platform/intel-mid.c [new file with mode: 0644]
arch/x86/platform/intel_mid_weak_decls.h [new file with mode: 0644]
arch/x86/platform/mfld/Makefile
arch/x86/platform/mfld/blackbay_pr2.c [deleted file]
arch/x86/platform/mfld/board-blackbay.c [new file with mode: 0644]
arch/x86/platform/mfld/board-redridge.c
arch/x86/platform/mfld/mfld.c [new file with mode: 0644]
arch/x86/platform/mrst/Makefile
arch/x86/platform/mrst/mrst.c