|
| 1 | +// license:BSD-3-Clause |
| 2 | +// copyright-holders: |
| 3 | + |
| 4 | +/* |
| 5 | +Skeleton driver for Sony Clie PDAs running on Motorola Dragonball CPU. |
| 6 | +Later series ran on ARM based SoCs and should go in a separate driver. |
| 7 | +
|
| 8 | +Sony Clie PEG T650C main components (PCB YSX-1230 MP-43): |
| 9 | +- Motorola Super VZ DragonBall MC68SZ328AVH66 |
| 10 | +- MediaQ MQ1100-CBC |
| 11 | +- Sony CXD3523AGG |
| 12 | +- Mosel-Vitelic V54C3128164VAT7 |
| 13 | +- Sony CXD1859GA |
| 14 | +*/ |
| 15 | + |
| 16 | +#include "emu.h" |
| 17 | + |
| 18 | +#include "machine/mc68328.h" |
| 19 | + |
| 20 | +#include "screen.h" |
| 21 | +#include "speaker.h" |
| 22 | + |
| 23 | + |
| 24 | +namespace { |
| 25 | + |
| 26 | +class clie_db_state : public driver_device |
| 27 | +{ |
| 28 | +public: |
| 29 | + clie_db_state(const machine_config &mconfig, device_type type, const char *tag) |
| 30 | + : driver_device(mconfig, type, tag), |
| 31 | + m_maincpu(*this, "maincpu") |
| 32 | + { } |
| 33 | + |
| 34 | + void t650c(machine_config &config); |
| 35 | + |
| 36 | +private: |
| 37 | + required_device<cpu_device> m_maincpu; |
| 38 | + |
| 39 | + void program_map(address_map &map); |
| 40 | + |
| 41 | + uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); |
| 42 | +}; |
| 43 | + |
| 44 | + |
| 45 | +uint32_t clie_db_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) |
| 46 | +{ |
| 47 | + return 0; |
| 48 | +} |
| 49 | + |
| 50 | + |
| 51 | +void clie_db_state::program_map(address_map &map) |
| 52 | +{ |
| 53 | + map(0x00000000, 0x007fffff).rom(); |
| 54 | +} |
| 55 | + |
| 56 | + |
| 57 | +static INPUT_PORTS_START( t650c ) |
| 58 | +INPUT_PORTS_END |
| 59 | + |
| 60 | +void clie_db_state::t650c(machine_config &config) |
| 61 | +{ |
| 62 | + MC68EZ328(config, m_maincpu, 66'000'000); // unknown clock, 66 MHz according to flyer |
| 63 | + m_maincpu->set_addrmap(AS_PROGRAM, &clie_db_state::program_map); |
| 64 | + |
| 65 | + screen_device&screen(SCREEN(config, "screen", SCREEN_TYPE_LCD)); |
| 66 | + screen.set_refresh_hz(60); |
| 67 | + screen.set_size(320, 320); // 320 x 320 according to flyer |
| 68 | + screen.set_visarea(0, 320 - 1, 0, 320 - 1); |
| 69 | + screen.set_screen_update(FUNC(clie_db_state::screen_update)); |
| 70 | + |
| 71 | + // TODO: MediaQ MQ1100-CB LCD controller |
| 72 | + |
| 73 | + SPEAKER(config, "speaker").front_center(); |
| 74 | + // TODO: CXD1859GA audio chip |
| 75 | +} |
| 76 | + |
| 77 | + |
| 78 | +ROM_START( t650c ) |
| 79 | + ROM_REGION16_BE( 0x800000, "maincpu", 0 ) |
| 80 | + ROM_LOAD16_WORD_SWAP( "sony_clie_peg_t650c_flashrom.bin", 0x000000, 0x800000, CRC(60855a64) SHA1(e08350e64438c62401041aaa335def08aa0decb7) ) // TODO: factory-reset |
| 81 | +ROM_END |
| 82 | + |
| 83 | +} // anonymous namespace |
| 84 | + |
| 85 | + |
| 86 | +SYST( 2002, t650c, 0, 0, t650c, t650c, clie_db_state, empty_init, "Sony", "Clie PEG-T650C", MACHINE_IS_SKELETON ) |
0 commit comments